From 459b5673d55573b6e620015864c95b6b007f2f5f Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Thu, 17 Mar 2022 18:57:23 +0100 Subject: [PATCH] docs: reword the assumptions on package manager --- build/setup/index.js | 7 ++++--- src/packager.ts | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) 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);