Copy assets to dist folder at dist step

This commit is contained in:
Alice Gaudon 2021-11-20 15:43:20 +01:00
parent 876d509f10
commit 575de5ebb1
2 changed files with 4 additions and 5 deletions

View File

@ -16,3 +16,7 @@ fs.mkdirSync('dist/types', {recursive: true});
fs.readdirSync('src/types').forEach(file => {
copyRecursively(path.join('src/types', file), 'dist/types');
});
fs.readdirSync('src/assets').forEach(file => {
copyRecursively(path.join('src/assets', file), 'dist/assets');
});

View File

@ -18,10 +18,5 @@ if (!fs.existsSync(symlink)) {
fs.symlinkSync(path.resolve('dist/common'), symlink);
}
// Copy assets
fs.readdirSync('src/assets').forEach(file => {
copyRecursively(path.join('src/assets', file), 'dist/assets');
});
// Copy package.json
fs.copyFileSync('package.json', 'dist/package.json');