@pnpm/exec.commands 1100.1.13 → 1100.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/runDepsStatusCheck.js +9 -10
- package/package.json +16 -17
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { confirm } from '@inquirer/prompts';
|
|
1
2
|
import { checkDepsStatus } from '@pnpm/deps.status';
|
|
2
3
|
import { PnpmError } from '@pnpm/error';
|
|
3
4
|
import { runPnpmCli } from '@pnpm/exec.pnpm-cli-runner';
|
|
4
5
|
import { globalWarn } from '@pnpm/logger';
|
|
5
|
-
import enquirer from 'enquirer';
|
|
6
6
|
export async function runDepsStatusCheck(opts) {
|
|
7
7
|
// the following flags are always the default values during `pnpm run` and `pnpm exec`,
|
|
8
8
|
// so they may not match the workspace state after `pnpm install --production|--no-optional`
|
|
@@ -27,21 +27,20 @@ export async function runDepsStatusCheck(opts) {
|
|
|
27
27
|
}
|
|
28
28
|
let confirmed;
|
|
29
29
|
try {
|
|
30
|
-
confirmed = await
|
|
31
|
-
type: 'confirm',
|
|
32
|
-
name: 'runInstall',
|
|
30
|
+
confirmed = await confirm({
|
|
33
31
|
message: `Your "node_modules" directory is out of sync with the "pnpm-lock.yaml" file. This can lead to issues during scripts execution.
|
|
34
32
|
|
|
35
33
|
Would you like to run "pnpm ${command.join(' ')}" to update your "node_modules"?`,
|
|
36
|
-
|
|
34
|
+
default: true,
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
|
-
catch {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
catch (err) {
|
|
38
|
+
if (err instanceof Error && err.name === 'ExitPromptError') {
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
throw err;
|
|
43
42
|
}
|
|
44
|
-
if (confirmed
|
|
43
|
+
if (confirmed) {
|
|
45
44
|
install();
|
|
46
45
|
}
|
|
47
46
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/exec.commands",
|
|
3
|
-
"version": "1100.1
|
|
3
|
+
"version": "1100.2.1",
|
|
4
4
|
"description": "Commands for running scripts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"!*.map"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@inquirer/prompts": "^8.4.3",
|
|
28
29
|
"@pnpm/log.group": "3.0.2",
|
|
29
30
|
"@pnpm/util.lex-comparator": "^3.0.2",
|
|
30
31
|
"@zkochan/rimraf": "^4.0.0",
|
|
31
32
|
"didyoumean2": "^7.0.4",
|
|
32
|
-
"enquirer": "^2.4.1",
|
|
33
33
|
"execa": "npm:safe-execa@0.3.0",
|
|
34
34
|
"p-limit": "^7.3.0",
|
|
35
35
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
@@ -38,50 +38,49 @@
|
|
|
38
38
|
"symlink-dir": "^10.0.1",
|
|
39
39
|
"which": "npm:@pnpm/which@^3.0.1",
|
|
40
40
|
"write-json-file": "^7.0.0",
|
|
41
|
+
"@pnpm/building.commands": "1100.1.1",
|
|
41
42
|
"@pnpm/bins.resolver": "1100.0.5",
|
|
42
43
|
"@pnpm/catalogs.resolver": "1100.0.0",
|
|
43
|
-
"@pnpm/building.commands": "1100.0.23",
|
|
44
44
|
"@pnpm/cli.command": "1100.0.1",
|
|
45
45
|
"@pnpm/cli.common-cli-options-help": "1100.0.1",
|
|
46
46
|
"@pnpm/cli.utils": "1101.0.8",
|
|
47
|
-
"@pnpm/config.reader": "1101.
|
|
47
|
+
"@pnpm/config.reader": "1101.5.0",
|
|
48
48
|
"@pnpm/config.version-policy": "1100.1.2",
|
|
49
49
|
"@pnpm/core-loggers": "1100.1.2",
|
|
50
50
|
"@pnpm/crypto.hash": "1100.0.1",
|
|
51
|
-
"@pnpm/deps.status": "1100.0.
|
|
52
|
-
"@pnpm/engine.runtime.commands": "1100.1.0",
|
|
51
|
+
"@pnpm/deps.status": "1100.0.21",
|
|
53
52
|
"@pnpm/error": "1100.0.0",
|
|
54
|
-
"@pnpm/
|
|
53
|
+
"@pnpm/engine.runtime.commands": "1100.1.1",
|
|
55
54
|
"@pnpm/exec.lifecycle": "1100.0.14",
|
|
56
|
-
"@pnpm/
|
|
57
|
-
"@pnpm/installing.
|
|
55
|
+
"@pnpm/exec.pnpm-cli-runner": "1100.0.1",
|
|
56
|
+
"@pnpm/installing.commands": "1100.7.1",
|
|
57
|
+
"@pnpm/installing.client": "1100.2.4",
|
|
58
58
|
"@pnpm/pkg-manifest.reader": "1100.0.5",
|
|
59
59
|
"@pnpm/resolving.parse-wanted-dependency": "1100.0.1",
|
|
60
60
|
"@pnpm/shell.path": "1100.0.1",
|
|
61
|
-
"@pnpm/store.path": "1100.0.1",
|
|
62
61
|
"@pnpm/types": "1101.2.0",
|
|
63
62
|
"@pnpm/workspace.injected-deps-syncer": "1100.0.15",
|
|
64
63
|
"@pnpm/workspace.project-manifest-reader": "1100.0.9",
|
|
65
|
-
"@pnpm/workspace.projects-sorter": "1100.0.4"
|
|
64
|
+
"@pnpm/workspace.projects-sorter": "1100.0.4",
|
|
65
|
+
"@pnpm/store.path": "1100.0.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@pnpm/logger": "^1001.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@jest/globals": "30.3.0",
|
|
72
|
-
"@pnpm/registry-mock": "6.0.0",
|
|
73
72
|
"@types/is-windows": "^1.0.2",
|
|
74
73
|
"@types/ramda": "0.31.1",
|
|
75
74
|
"@types/which": "^3.0.4",
|
|
76
75
|
"is-windows": "^1.0.2",
|
|
77
76
|
"write-yaml-file": "^6.0.0",
|
|
78
|
-
"@pnpm/exec.commands": "1100.1
|
|
77
|
+
"@pnpm/exec.commands": "1100.2.1",
|
|
79
78
|
"@pnpm/logger": "1100.0.0",
|
|
80
79
|
"@pnpm/engine.runtime.system-version": "1100.0.0",
|
|
81
|
-
"@pnpm/
|
|
82
|
-
"@pnpm/
|
|
83
|
-
"@pnpm/
|
|
84
|
-
"@pnpm/
|
|
80
|
+
"@pnpm/testing.command-defaults": "1100.0.2",
|
|
81
|
+
"@pnpm/workspace.projects-filter": "1100.0.17",
|
|
82
|
+
"@pnpm/prepare": "1100.0.12",
|
|
83
|
+
"@pnpm/test-ipc-server": "1100.0.0"
|
|
85
84
|
},
|
|
86
85
|
"engines": {
|
|
87
86
|
"node": ">=22.13"
|