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

Function packageDir

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

Source from the content-addressed store, hash-verified

79);
80
81const packageDir = (name: string): string => {
82 const packageJson = requireFromSelfHost.resolve(`${name}/package.json`, {
83 paths: [join(root, "node_modules/.bun/node_modules")],
84 });
85 return dirname(packageJson);
86};
87
88const copyPackage = (name: string): void => {
89 const destination = join(out, "node_modules", name);

Callers 2

copyPackageFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected