@pnpm/plugin-commands-installation 13.0.9 → 13.0.10
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/import/index.js +2 -2
- package/lib/installDeps.js +3 -3
- package/lib/link.js +4 -4
- package/lib/recursive.js +2 -2
- package/lib/remove.js +2 -2
- package/package.json +21 -21
package/lib/import/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const read_project_manifest_1 = require("@pnpm/read-project-manifest");
|
|
|
35
35
|
const store_connection_manager_1 = require("@pnpm/store-connection-manager");
|
|
36
36
|
const graceful_fs_1 = __importDefault(require("@pnpm/graceful-fs"));
|
|
37
37
|
const core_1 = require("@pnpm/core");
|
|
38
|
-
const
|
|
38
|
+
const workspace_find_packages_1 = require("@pnpm/workspace.find-packages");
|
|
39
39
|
const logger_1 = require("@pnpm/logger");
|
|
40
40
|
const sort_packages_1 = require("@pnpm/sort-packages");
|
|
41
41
|
const rimraf_1 = __importDefault(require("@zkochan/rimraf"));
|
|
@@ -91,7 +91,7 @@ async function handler(opts, params) {
|
|
|
91
91
|
preferredVersions = getPreferredVersions(versionsByPackageNames);
|
|
92
92
|
// For a workspace with shared lockfile
|
|
93
93
|
if (opts.workspaceDir) {
|
|
94
|
-
const allProjects = opts.allProjects ?? await (0,
|
|
94
|
+
const allProjects = opts.allProjects ?? await (0, workspace_find_packages_1.findWorkspacePackages)(opts.workspaceDir, opts);
|
|
95
95
|
const selectedProjectsGraph = opts.selectedProjectsGraph ?? selectProjectByDir(allProjects, opts.dir);
|
|
96
96
|
if (selectedProjectsGraph != null) {
|
|
97
97
|
const sequencedGraph = (0, sort_packages_1.sequenceGraph)(selectedProjectsGraph);
|
package/lib/installDeps.js
CHANGED
|
@@ -8,7 +8,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
8
8
|
const cli_utils_1 = require("@pnpm/cli-utils");
|
|
9
9
|
const error_1 = require("@pnpm/error");
|
|
10
10
|
const filter_workspace_packages_1 = require("@pnpm/filter-workspace-packages");
|
|
11
|
-
const
|
|
11
|
+
const workspace_find_packages_1 = require("@pnpm/workspace.find-packages");
|
|
12
12
|
const plugin_commands_rebuild_1 = require("@pnpm/plugin-commands-rebuild");
|
|
13
13
|
const store_connection_manager_1 = require("@pnpm/store-connection-manager");
|
|
14
14
|
const core_1 = require("@pnpm/core");
|
|
@@ -58,7 +58,7 @@ when running add/update with the --workspace option');
|
|
|
58
58
|
typeof opts.rawLocalConfig['hoist'] !== 'undefined';
|
|
59
59
|
const forcePublicHoistPattern = typeof opts.rawLocalConfig['shamefully-hoist'] !== 'undefined' ||
|
|
60
60
|
typeof opts.rawLocalConfig['public-hoist-pattern'] !== 'undefined';
|
|
61
|
-
const allProjects = opts.allProjects ?? (opts.workspaceDir ? await (0,
|
|
61
|
+
const allProjects = opts.allProjects ?? (opts.workspaceDir ? await (0, workspace_find_packages_1.findWorkspacePackages)(opts.workspaceDir, opts) : []);
|
|
62
62
|
if (opts.workspaceDir) {
|
|
63
63
|
const selectedProjectsGraph = opts.selectedProjectsGraph ?? selectProjectByDir(allProjects, opts.dir);
|
|
64
64
|
if (selectedProjectsGraph != null) {
|
|
@@ -104,7 +104,7 @@ when running add/update with the --workspace option');
|
|
|
104
104
|
const dir = opts.dir || process.cwd();
|
|
105
105
|
let workspacePackages;
|
|
106
106
|
if (opts.workspaceDir) {
|
|
107
|
-
workspacePackages = (0,
|
|
107
|
+
workspacePackages = (0, workspace_find_packages_1.arrayOfWorkspacePackagesToMap)(allProjects);
|
|
108
108
|
}
|
|
109
109
|
let { manifest, writeProjectManifest } = await (0, cli_utils_1.tryReadProjectManifest)(opts.dir, opts);
|
|
110
110
|
if (manifest === null) {
|
package/lib/link.js
CHANGED
|
@@ -33,7 +33,7 @@ const common_cli_options_help_1 = require("@pnpm/common-cli-options-help");
|
|
|
33
33
|
const config_1 = require("@pnpm/config");
|
|
34
34
|
const error_1 = require("@pnpm/error");
|
|
35
35
|
const find_workspace_dir_1 = require("@pnpm/find-workspace-dir");
|
|
36
|
-
const
|
|
36
|
+
const workspace_find_packages_1 = require("@pnpm/workspace.find-packages");
|
|
37
37
|
const store_connection_manager_1 = require("@pnpm/store-connection-manager");
|
|
38
38
|
const core_1 = require("@pnpm/core");
|
|
39
39
|
const p_limit_1 = __importDefault(require("p-limit"));
|
|
@@ -98,8 +98,8 @@ async function handler(opts, params) {
|
|
|
98
98
|
let workspacePackagesArr;
|
|
99
99
|
let workspacePackages;
|
|
100
100
|
if (opts.workspaceDir) {
|
|
101
|
-
workspacePackagesArr = await (0,
|
|
102
|
-
workspacePackages = (0,
|
|
101
|
+
workspacePackagesArr = await (0, workspace_find_packages_1.findWorkspacePackages)(opts.workspaceDir, opts);
|
|
102
|
+
workspacePackages = (0, workspace_find_packages_1.arrayOfWorkspacePackagesToMap)(workspacePackagesArr);
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
105
|
workspacePackages = {};
|
|
@@ -146,7 +146,7 @@ async function handler(opts, params) {
|
|
|
146
146
|
if (pkgNames.length > 0) {
|
|
147
147
|
let globalPkgNames;
|
|
148
148
|
if (opts.workspaceDir) {
|
|
149
|
-
workspacePackagesArr = await (0,
|
|
149
|
+
workspacePackagesArr = await (0, workspace_find_packages_1.findWorkspacePackages)(opts.workspaceDir, opts);
|
|
150
150
|
const pkgsFoundInWorkspace = workspacePackagesArr
|
|
151
151
|
.filter(({ manifest }) => manifest.name && pkgNames.includes(manifest.name));
|
|
152
152
|
pkgsFoundInWorkspace.forEach((pkgFromWorkspace) => pkgPaths.push(pkgFromWorkspace.dir));
|
package/lib/recursive.js
CHANGED
|
@@ -9,7 +9,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const cli_utils_1 = require("@pnpm/cli-utils");
|
|
10
10
|
const config_1 = require("@pnpm/config");
|
|
11
11
|
const error_1 = require("@pnpm/error");
|
|
12
|
-
const
|
|
12
|
+
const workspace_find_packages_1 = require("@pnpm/workspace.find-packages");
|
|
13
13
|
const logger_1 = require("@pnpm/logger");
|
|
14
14
|
const manifest_utils_1 = require("@pnpm/manifest-utils");
|
|
15
15
|
const matcher_1 = require("@pnpm/matcher");
|
|
@@ -40,7 +40,7 @@ async function recursive(allProjects, params, opts, cmdFullName) {
|
|
|
40
40
|
const throwOnFail = cli_utils_1.throwOnCommandFail.bind(null, `pnpm recursive ${cmdFullName}`);
|
|
41
41
|
const store = await (0, store_connection_manager_1.createOrConnectStoreController)(opts);
|
|
42
42
|
const workspacePackages = cmdFullName !== 'unlink'
|
|
43
|
-
? (0,
|
|
43
|
+
? (0, workspace_find_packages_1.arrayOfWorkspacePackagesToMap)(allProjects)
|
|
44
44
|
: {};
|
|
45
45
|
const targetDependenciesField = (0, getSaveType_1.getSaveType)(opts);
|
|
46
46
|
const installOpts = Object.assign(opts, {
|
package/lib/remove.js
CHANGED
|
@@ -8,7 +8,7 @@ const cli_utils_1 = require("@pnpm/cli-utils");
|
|
|
8
8
|
const common_cli_options_help_1 = require("@pnpm/common-cli-options-help");
|
|
9
9
|
const config_1 = require("@pnpm/config");
|
|
10
10
|
const error_1 = require("@pnpm/error");
|
|
11
|
-
const
|
|
11
|
+
const workspace_find_packages_1 = require("@pnpm/workspace.find-packages");
|
|
12
12
|
const manifest_utils_1 = require("@pnpm/manifest-utils");
|
|
13
13
|
const store_connection_manager_1 = require("@pnpm/store-connection-manager");
|
|
14
14
|
const core_1 = require("@pnpm/core");
|
|
@@ -141,7 +141,7 @@ async function handler(opts, params) {
|
|
|
141
141
|
});
|
|
142
142
|
// @ts-expect-error
|
|
143
143
|
removeOpts['workspacePackages'] = opts.workspaceDir
|
|
144
|
-
? (0,
|
|
144
|
+
? (0, workspace_find_packages_1.arrayOfWorkspacePackagesToMap)(await (0, workspace_find_packages_1.findWorkspacePackages)(opts.workspaceDir, opts))
|
|
145
145
|
: undefined;
|
|
146
146
|
const targetDependenciesField = (0, getSaveType_1.getSaveType)(opts);
|
|
147
147
|
const { manifest: currentManifest, writeProjectManifest, } = await (0, cli_utils_1.readProjectManifest)(opts.dir, opts);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-installation",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.10",
|
|
4
4
|
"description": "Commands for installation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"write-json-file": "^4.3.0",
|
|
40
40
|
"write-pkg": "4.0.0",
|
|
41
41
|
"write-yaml-file": "^5.0.0",
|
|
42
|
-
"@pnpm/assert-project": "2.3.
|
|
42
|
+
"@pnpm/assert-project": "2.3.26",
|
|
43
43
|
"@pnpm/modules-yaml": "12.1.1",
|
|
44
|
-
"@pnpm/plugin-commands-installation": "13.0.
|
|
45
|
-
"@pnpm/prepare": "0.0.
|
|
46
|
-
"@pnpm/test-fixtures": "0.0.
|
|
44
|
+
"@pnpm/plugin-commands-installation": "13.0.10",
|
|
45
|
+
"@pnpm/prepare": "0.0.69",
|
|
46
|
+
"@pnpm/test-fixtures": "0.0.38"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@pnpm/colorize-semver-diff": "^1.0.1",
|
|
@@ -67,31 +67,31 @@
|
|
|
67
67
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
68
68
|
"render-help": "^1.0.3",
|
|
69
69
|
"version-selector-type": "^3.0.0",
|
|
70
|
-
"@pnpm/cli-utils": "2.0.
|
|
70
|
+
"@pnpm/cli-utils": "2.0.10",
|
|
71
71
|
"@pnpm/command": "4.0.0",
|
|
72
72
|
"@pnpm/common-cli-options-help": "1.0.0",
|
|
73
|
-
"@pnpm/config": "18.4.
|
|
74
|
-
"@pnpm/constants": "7.1.
|
|
75
|
-
"@pnpm/core": "10.2.
|
|
76
|
-
"@pnpm/dedupe.check": "1.0.
|
|
77
|
-
"@pnpm/error": "5.0.
|
|
78
|
-
"@pnpm/filter-workspace-packages": "7.0.
|
|
79
|
-
"@pnpm/find-workspace-
|
|
80
|
-
"@pnpm/find-workspace-dir": "6.0.1",
|
|
73
|
+
"@pnpm/config": "18.4.1",
|
|
74
|
+
"@pnpm/constants": "7.1.1",
|
|
75
|
+
"@pnpm/core": "10.2.2",
|
|
76
|
+
"@pnpm/dedupe.check": "1.0.2",
|
|
77
|
+
"@pnpm/error": "5.0.2",
|
|
78
|
+
"@pnpm/filter-workspace-packages": "7.0.10",
|
|
79
|
+
"@pnpm/find-workspace-dir": "6.0.2",
|
|
81
80
|
"@pnpm/graceful-fs": "3.0.0",
|
|
82
81
|
"@pnpm/lockfile-types": "5.1.0",
|
|
83
|
-
"@pnpm/manifest-utils": "5.0.
|
|
82
|
+
"@pnpm/manifest-utils": "5.0.2",
|
|
84
83
|
"@pnpm/matcher": "5.0.0",
|
|
85
|
-
"@pnpm/outdated": "13.0.
|
|
86
|
-
"@pnpm/package-store": "16.0.
|
|
84
|
+
"@pnpm/outdated": "13.0.2",
|
|
85
|
+
"@pnpm/package-store": "16.0.5",
|
|
87
86
|
"@pnpm/parse-wanted-dependency": "5.0.0",
|
|
88
|
-
"@pnpm/plugin-commands-rebuild": "9.0.
|
|
89
|
-
"@pnpm/pnpmfile": "5.0.
|
|
90
|
-
"@pnpm/read-project-manifest": "5.0.
|
|
87
|
+
"@pnpm/plugin-commands-rebuild": "9.0.2",
|
|
88
|
+
"@pnpm/pnpmfile": "5.0.8",
|
|
89
|
+
"@pnpm/read-project-manifest": "5.0.2",
|
|
91
90
|
"@pnpm/resolver-base": "10.0.1",
|
|
92
91
|
"@pnpm/sort-packages": "5.0.3",
|
|
93
|
-
"@pnpm/store-connection-manager": "6.0.
|
|
92
|
+
"@pnpm/store-connection-manager": "6.0.12",
|
|
94
93
|
"@pnpm/types": "9.1.0",
|
|
94
|
+
"@pnpm/workspace.find-packages": "1.0.0",
|
|
95
95
|
"@pnpm/workspace.pkgs-graph": "2.0.4"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|