MCPcopy Create free account
hub / github.com/Kong/insomnia / copyFiles

Function copyFiles

packages/insomnia/scripts/build.ts:37–42  ·  view source on GitHub ↗
(relSource: string, relDest: string)

Source from the content-addressed store, hash-verified

35 // Copy necessary files
36 console.log('[build] Copying files');
37 const copyFiles = async (relSource: string, relDest: string) => {
38 const src = path.resolve(__dirname, relSource);
39 const dest = path.resolve(__dirname, relDest);
40 await mkdir(path.dirname(dest), { recursive: true });
41 await cp(src, dest, { recursive: true, verbatimSymlinks: true });
42 };
43 await copyFiles('../bin', buildFolder);
44 await copyFiles('../src/static', path.join(buildFolder, 'static'));
45 await copyFiles('../src/icons', buildFolder);

Callers 1

startFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected