docs: reword the assumptions on package manager

This commit is contained in:
Cedric van Putten committed 2022-03-17 18:57:23 +01:00
1 parent eb1ffb8b23
commit 459b5673d5
2 files changed
+8 -6

No files matched your search

+4 -3
View File
@@ -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 <pkgspec>` command.
*/
async function installPackage(name, version, manager) {
const temp = (0, worker_1.tempPath)(name, version);
+4 -3
View File
@@ -31,9 +31,10 @@ export async function resolvePackage(name: string, range: string): Promise<strin
}
/**
* 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 <pkgspec>` command.
*/
export async function installPackage(name: string, version: string, manager: string) {
const temp = tempPath(name, version);