diff --git a/build/setup/index.js b/build/setup/index.js index f0b77a4e..67a119f1 100644 --- a/build/setup/index.js +++ b/build/setup/index.js @@ -67043,9 +67043,10 @@ async function resolvePackage(name, range) { } exports.resolvePackage = resolvePackage; /** - * Install a module using a node package manager. - * The installation is executed in a temporary folder. - * After this is complete, it's "installed" into the worker's tool cache. + * Install a module using a node package manager, inside a temporary directory. + * If that's successful, move the module into the worker's tool cache. + * + * Note, we do assume that the packager is globally available AND has the `add ` command. */ async function installPackage(name, version, manager) { const temp = (0, worker_1.tempPath)(name, version); diff --git a/src/packager.ts b/src/packager.ts index 773b9ccf..431f851e 100644 --- a/src/packager.ts +++ b/src/packager.ts @@ -31,9 +31,10 @@ export async function resolvePackage(name: string, range: string): Promise` command. */ export async function installPackage(name: string, version: string, manager: string) { const temp = tempPath(name, version);