extension/build.js

19 lines
323 B
JavaScript
Raw Permalink Normal View History

const fs = require('fs-extra');
2019-10-16 17:06:45 +00:00
const copyFiles = build_path => {
let dest_dir = `${build_path}/src`
fs.ensureDirSync(dest_dir)
2019-10-16 17:06:45 +00:00
for (let p of ["package.json", "src", "tsconfig.json", "yarn.lock", "public"]) {
fs.copy(p, `${dest_dir}/${p}`)
}
};
if (require.main === module) {
2019-10-16 17:06:45 +00:00
copyFiles("'./build'");
}