MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / copyPackage

Function copyPackage

apps/host-selfhost/scripts/package-runtime.ts:88–92  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

86};
87
88const copyPackage = (name: string): void => {
89 const destination = join(out, "node_modules", name);
90 mkdirSync(dirname(destination), { recursive: true });
91 cpSync(packageDir(name), destination, { recursive: true, dereference: true });
92};
93
94// Worker-bundler consumers load `dist/index.bundled.js` from the resolved
95// package, falling back to bundling `dist/index.js` with esbuild at runtime.

Callers 1

package-runtime.tsFile · 0.85

Calls 1

packageDirFunction · 0.85

Tested by

no test coverage detected