MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / copyPublic

Function copyPublic

packages/vscode-host/scripts/copyPublic.js:5–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3const { chdir, existsSync, rimraf, copySync, log } = require("./util");
4
5function copyPublic() {
6 log.info("============ Copying assets from ./public to ./dist");
7
8 chdir(__dirname, "..");
9
10 if (existsSync("./dist/lib")) rimraf("./dist/lib");
11
12 copySync("./node_modules/semver-umd", "./dist/lib/semver-umd");
13 copySync("./node_modules/vscode-oniguruma", "./dist/lib/vscode-oniguruma");
14 copySync("./node_modules/vscode-textmate", "./dist/lib/vscode-textmate");
15
16 copySync("./public", "./dist", { recursive: true });
17}
18
19module.exports = { copyPublic };
20

Callers 3

rebuild.jsFile · 0.85
build.jsFile · 0.85
copyPublic.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected