2021-11-20 15:30:02 +01:00
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
|
|
|
const {copyRecursively} = require('./_functions.js');
|
2021-03-30 11:31:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
'yarn.lock',
|
|
|
|
'README.md',
|
|
|
|
'config/',
|
2021-11-20 19:52:44 +01:00
|
|
|
'rollup.config.js',
|
2021-03-30 11:31:17 +02:00
|
|
|
].forEach(file => {
|
|
|
|
copyRecursively(file, 'dist');
|
|
|
|
});
|
|
|
|
|
|
|
|
fs.mkdirSync('dist/types', {recursive: true});
|
|
|
|
|
|
|
|
fs.readdirSync('src/types').forEach(file => {
|
|
|
|
copyRecursively(path.join('src/types', file), 'dist/types');
|
|
|
|
});
|
2021-11-20 15:43:20 +01:00
|
|
|
|
|
|
|
fs.readdirSync('src/assets').forEach(file => {
|
|
|
|
copyRecursively(path.join('src/assets', file), 'dist/assets');
|
|
|
|
});
|