Skip to content

Commit 7d696fe

Browse files
authoredNov 2, 2020
Merge pull request #180 from contentful/fix-rollup-for-types
fix: 🐛 configure rollup copy correctly
2 parents 3299344 + e8bf2ba commit 7d696fe

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
 

‎packages/contentful-slatejs-adapter/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"emitDecoratorMetadata": true,
1313
"declarationDir": "dist/types",
1414
"outDir": "dist/lib",
15+
"skipLibCheck": true,
1516
"typeRoots": [
1617
"node_modules/@types",
1718
"src/typings"

‎packages/rich-text-types/rollup.config.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ const customConfig = () => {
1111
plugins: [
1212
...baseConfig.plugins,
1313
copy({
14-
"src/schemas/generated": "dist/lib/schemas/generated"
15-
})
16-
]
17-
}
18-
}
14+
targets: {
15+
'src/schemas/generated': 'dist/lib/schemas/generated',
16+
},
17+
}),
18+
],
19+
};
20+
};
1921

2022
export default customConfig();

0 commit comments

Comments
 (0)
Please sign in to comment.