2021-05-03 19:29:22 +02:00
|
|
|
import fs from "fs";
|
|
|
|
import path from "path";
|
2021-05-27 15:26:19 +02:00
|
|
|
import {copyRecursively} from "./_functions.js";
|
2021-03-30 11:31:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
'yarn.lock',
|
|
|
|
'README.md',
|
|
|
|
'config/',
|
|
|
|
].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');
|
|
|
|
});
|