MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / copyToDist

Function copyToDist

scripts/make_dist.ts:16–24  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

14}
15
16function copyToDist(file: string) {
17 const dest = path.join(distFolder, file);
18 let parent = path.dirname(dest);
19 while (!fs.existsSync(parent)) {
20 fs.mkdirSync(parent);
21 parent = path.dirname(parent);
22 }
23 fs.writeFileSync(dest, fs.readFileSync(path.join(buildFolder, file)));
24}
25
26rimraf(distFolder, (err) => {
27 if (err) {

Callers 1

make_dist.tsFile · 0.85

Calls 4

existsSyncMethod · 0.65
mkdirSyncMethod · 0.65
writeFileSyncMethod · 0.65
readFileSyncMethod · 0.65

Tested by

no test coverage detected