Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-08-01 18:50:28 +0300
committernlf <nlf@github.com>2022-08-03 00:57:32 +0300
commitea449954844f21abbf984e09e421f0e03485a535 (patch)
treecd7383c02f176e8f95294c052b3269c6256053d6 /lib
parentd0be9a2bb53e74b30e13751afd1f6924990c8422 (diff)
fix: properly find locally/globally/npxCache packages
Lots of bugfixes here, we properly parse ranges and versions, and we also now work with git repos and gists, and know when they are already installed.
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/exec.js2
-rw-r--r--lib/utils/config/definitions.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/commands/exec.js b/lib/commands/exec.js
index d9a686cc9..0bbf7b3fa 100644
--- a/lib/commands/exec.js
+++ b/lib/commands/exec.js
@@ -49,8 +49,10 @@ class Exec extends BaseCommand {
static isShellout = true
async exec (_args, { locationMsg, runPath } = {}) {
+ // This is where libnpmexec will look for locally installed packages
const path = this.npm.localPrefix
+ // This is where libnpmexec will actually run the scripts from
if (!runPath) {
runPath = process.cwd()
}
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js
index 04576df0a..a132c8456 100644
--- a/lib/utils/config/definitions.js
+++ b/lib/utils/config/definitions.js
@@ -1470,7 +1470,7 @@ define('package', {
hint: '<package-spec>',
type: [String, Array],
description: `
- The package to install for [\`npm exec\`](/commands/npm-exec)
+ The package or packages to install for [\`npm exec\`](/commands/npm-exec)
`,
flatten,
})