Skip to content

Commit

Permalink
Fix copy-ts-default-libs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Sep 23, 2020
1 parent 2b95d23 commit 04fa245
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ function copyTSDefaultLibs() {
return {
name: 'copy-ts-default-libs',
buildEnd() {
const files = fg.sync(getVlsURL('node_modules/typescript/lib/lib*.d.ts'), { unique: true, absolute: true });
const files = fg.sync('node_modules/typescript/lib/lib*.d.ts', {
cwd: getVlsURL(''),
unique: true,
absolute: true
});
files.forEach(file => fs.copySync(file, getVlsURL('dist/' + path.basename(file)), { overwrite: true }));
}
};
Expand Down

0 comments on commit 04fa245

Please sign in to comment.