Skip to content

Commit 459b567

Browse files
committed
docs: reword the assumptions on package manager
1 parent eb1ffb8 commit 459b567

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

build/setup/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67043,9 +67043,10 @@ async function resolvePackage(name, range) {
6704367043
}
6704467044
exports.resolvePackage = resolvePackage;
6704567045
/**
67046-
* Install a module using a node package manager.
67047-
* The installation is executed in a temporary folder.
67048-
* After this is complete, it's "installed" into the worker's tool cache.
67046+
* Install a module using a node package manager, inside a temporary directory.
67047+
* If that's successful, move the module into the worker's tool cache.
67048+
*
67049+
* Note, we do assume that the packager is globally available AND has the `add <pkgspec>` command.
6704967050
*/
6705067051
async function installPackage(name, version, manager) {
6705167052
const temp = (0, worker_1.tempPath)(name, version);

src/packager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ export async function resolvePackage(name: string, range: string): Promise<strin
3131
}
3232

3333
/**
34-
* Install a module using a node package manager.
35-
* The installation is executed in a temporary folder.
36-
* After this is complete, it's "installed" into the worker's tool cache.
34+
* Install a module using a node package manager, inside a temporary directory.
35+
* If that's successful, move the module into the worker's tool cache.
36+
*
37+
* Note, we do assume that the packager is globally available AND has the `add <pkgspec>` command.
3738
*/
3839
export async function installPackage(name: string, version: string, manager: string) {
3940
const temp = tempPath(name, version);

0 commit comments

Comments
 (0)