@pnpm/installing.commands 1100.0.0 → 1100.1.0
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/installDeps.d.ts +1 -1
- package/lib/installDeps.js +9 -1
- package/package.json +41 -41
package/lib/installDeps.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type UpdateMatchingFunction } from '@pnpm/installing.deps-installer';
|
|
|
4
4
|
import type { LockfileObject } from '@pnpm/lockfile.types';
|
|
5
5
|
import { type CreateStoreControllerOptions } from '@pnpm/store.connection-manager';
|
|
6
6
|
import type { IncludedDependencies, PackageVulnerabilityAudit } from '@pnpm/types';
|
|
7
|
-
export type InstallDepsOptions = Pick<Config, 'autoInstallPeers' | 'bail' | 'bin' | 'catalogs' | 'catalogMode' | 'cleanupUnusedCatalogs' | 'dedupePeerDependents' | 'dedupePeers' | 'depth' | 'dev' | 'enableGlobalVirtualStore' | 'virtualStoreOnly' | 'engineStrict' | 'excludeLinksFromLockfile' | 'global' | 'globalPnpmfile' | 'ignoreCurrentSpecifiers' | 'ignorePnpmfile' | 'ignoreScripts' | 'optimisticRepeatInstall' | 'linkWorkspacePackages' | 'lockfileDir' | 'lockfileOnly' | 'production' | 'preferWorkspacePackages' | 'registries' | 'save' | 'saveDev' | 'saveExact' | 'saveOptional' | 'savePeer' | 'savePrefix' | 'saveProd' | 'saveWorkspaceProtocol' | 'lockfileIncludeTarballUrl' | 'scriptsPrependNodePath' | 'scriptShell' | 'sideEffectsCache' | 'sideEffectsCacheReadonly' | 'sort' | 'sharedWorkspaceLockfile' | 'shellEmulator' | 'tag' | 'allowBuilds' | 'optional' | 'workspaceConcurrency' | 'workspaceDir' | 'workspacePackagePatterns' | 'extraEnv' | 'ignoreWorkspaceCycles' | 'disallowWorkspaceCycles' | 'configDependencies' | 'packageExtensions' | 'updateConfig'> & Pick<ConfigContext, 'allProjects' | 'allProjectsGraph' | 'cliOptions' | 'hooks' | 'rootProjectManifestDir' | 'rootProjectManifest' | 'selectedProjectsGraph'> & CreateStoreControllerOptions & {
|
|
7
|
+
export type InstallDepsOptions = Pick<Config, 'autoInstallPeers' | 'bail' | 'bin' | 'catalogs' | 'catalogMode' | 'cleanupUnusedCatalogs' | 'dedupePeerDependents' | 'dedupePeers' | 'depth' | 'dev' | 'enableGlobalVirtualStore' | 'virtualStoreOnly' | 'engineStrict' | 'excludeLinksFromLockfile' | 'global' | 'globalPnpmfile' | 'ignoreCurrentSpecifiers' | 'ignorePnpmfile' | 'ignoreScripts' | 'optimisticRepeatInstall' | 'linkWorkspacePackages' | 'lockfileDir' | 'lockfileOnly' | 'production' | 'preferWorkspacePackages' | 'registries' | 'runtimeOnFail' | 'save' | 'saveDev' | 'saveExact' | 'saveOptional' | 'savePeer' | 'savePrefix' | 'saveProd' | 'saveWorkspaceProtocol' | 'lockfileIncludeTarballUrl' | 'scriptsPrependNodePath' | 'scriptShell' | 'sideEffectsCache' | 'sideEffectsCacheReadonly' | 'sort' | 'sharedWorkspaceLockfile' | 'shellEmulator' | 'tag' | 'allowBuilds' | 'optional' | 'workspaceConcurrency' | 'workspaceDir' | 'workspacePackagePatterns' | 'extraEnv' | 'ignoreWorkspaceCycles' | 'disallowWorkspaceCycles' | 'configDependencies' | 'packageExtensions' | 'updateConfig'> & Pick<ConfigContext, 'allProjects' | 'allProjectsGraph' | 'cliOptions' | 'hooks' | 'rootProjectManifestDir' | 'rootProjectManifest' | 'selectedProjectsGraph'> & CreateStoreControllerOptions & {
|
|
8
8
|
argv: {
|
|
9
9
|
original: string[];
|
|
10
10
|
};
|
package/lib/installDeps.js
CHANGED
|
@@ -6,7 +6,7 @@ import { PnpmError } from '@pnpm/error';
|
|
|
6
6
|
import { arrayOfWorkspacePackagesToMap } from '@pnpm/installing.context';
|
|
7
7
|
import { install, mutateModulesInSingleProject, } from '@pnpm/installing.deps-installer';
|
|
8
8
|
import { globalInfo, logger } from '@pnpm/logger';
|
|
9
|
-
import { filterDependenciesByType } from '@pnpm/pkg-manifest.utils';
|
|
9
|
+
import { applyRuntimeOnFailOverride, filterDependenciesByType } from '@pnpm/pkg-manifest.utils';
|
|
10
10
|
import { createStoreController } from '@pnpm/store.connection-manager';
|
|
11
11
|
import { filterProjectsBySelectorObjects } from '@pnpm/workspace.projects-filter';
|
|
12
12
|
import { createProjectsGraph } from '@pnpm/workspace.projects-graph';
|
|
@@ -62,6 +62,11 @@ export async function installDeps(opts, params) {
|
|
|
62
62
|
const allProjects = opts.allProjects ?? (opts.workspaceDir
|
|
63
63
|
? await findWorkspaceProjects(opts.workspaceDir, { ...opts, patterns: opts.workspacePackagePatterns })
|
|
64
64
|
: []);
|
|
65
|
+
if (opts.runtimeOnFail) {
|
|
66
|
+
for (const project of allProjects) {
|
|
67
|
+
applyRuntimeOnFailOverride(project.manifest, opts.runtimeOnFail);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
65
70
|
if (opts.workspaceDir) {
|
|
66
71
|
const selectedProjectsGraph = opts.selectedProjectsGraph ?? selectProjectByDir(allProjects, opts.dir);
|
|
67
72
|
if (selectedProjectsGraph != null) {
|
|
@@ -107,6 +112,9 @@ export async function installDeps(opts, params) {
|
|
|
107
112
|
}
|
|
108
113
|
manifest = {};
|
|
109
114
|
}
|
|
115
|
+
else if (opts.runtimeOnFail) {
|
|
116
|
+
applyRuntimeOnFailOverride(manifest, opts.runtimeOnFail);
|
|
117
|
+
}
|
|
110
118
|
const installOpts = {
|
|
111
119
|
...opts,
|
|
112
120
|
// In case installation is done in a multi-package repository
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.commands",
|
|
3
|
-
"version": "1100.
|
|
3
|
+
"version": "1100.1.0",
|
|
4
4
|
"description": "Commands for installation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -44,45 +44,45 @@
|
|
|
44
44
|
"render-help": "^2.0.0",
|
|
45
45
|
"version-selector-type": "^3.0.0",
|
|
46
46
|
"which": "npm:@pnpm/which@^3.0.1",
|
|
47
|
-
"@pnpm/building.after-install": "1100.0.
|
|
47
|
+
"@pnpm/building.after-install": "1100.0.2",
|
|
48
|
+
"@pnpm/catalogs.types": "1100.0.0",
|
|
48
49
|
"@pnpm/cli.command": "1100.0.0",
|
|
49
50
|
"@pnpm/cli.common-cli-options-help": "1100.0.0",
|
|
51
|
+
"@pnpm/config.pick-registry-for-package": "1100.0.1",
|
|
52
|
+
"@pnpm/config.reader": "1101.0.0",
|
|
50
53
|
"@pnpm/config.matcher": "1100.0.0",
|
|
51
|
-
"@pnpm/
|
|
52
|
-
"@pnpm/config.pick-registry-for-package": "1100.0.0",
|
|
53
|
-
"@pnpm/config.reader": "1100.0.0",
|
|
54
|
-
"@pnpm/config.writer": "1100.0.0",
|
|
54
|
+
"@pnpm/config.writer": "1100.0.1",
|
|
55
55
|
"@pnpm/constants": "1100.0.0",
|
|
56
|
-
"@pnpm/deps.
|
|
57
|
-
"@pnpm/
|
|
56
|
+
"@pnpm/deps.path": "1100.0.1",
|
|
57
|
+
"@pnpm/deps.inspection.outdated": "1100.0.2",
|
|
58
|
+
"@pnpm/cli.utils": "1101.0.0",
|
|
59
|
+
"@pnpm/deps.status": "1100.0.2",
|
|
58
60
|
"@pnpm/error": "1100.0.0",
|
|
59
|
-
"@pnpm/deps.status": "1100.0.0",
|
|
60
|
-
"@pnpm/fs.read-modules-dir": "1100.0.0",
|
|
61
|
-
"@pnpm/global.commands": "1100.0.0",
|
|
62
|
-
"@pnpm/deps.path": "1100.0.0",
|
|
63
|
-
"@pnpm/hooks.pnpmfile": "1100.0.0",
|
|
64
61
|
"@pnpm/fs.graceful-fs": "1100.0.0",
|
|
65
|
-
"@pnpm/
|
|
66
|
-
"@pnpm/
|
|
67
|
-
"@pnpm/installing.
|
|
68
|
-
"@pnpm/
|
|
69
|
-
"@pnpm/
|
|
70
|
-
"@pnpm/
|
|
71
|
-
"@pnpm/
|
|
72
|
-
"@pnpm/
|
|
62
|
+
"@pnpm/hooks.pnpmfile": "1100.0.1",
|
|
63
|
+
"@pnpm/fs.read-modules-dir": "1100.0.0",
|
|
64
|
+
"@pnpm/installing.context": "1100.0.1",
|
|
65
|
+
"@pnpm/global.commands": "1100.0.2",
|
|
66
|
+
"@pnpm/installing.dedupe.check": "1100.0.1",
|
|
67
|
+
"@pnpm/installing.deps-installer": "1100.0.2",
|
|
68
|
+
"@pnpm/lockfile.types": "1100.0.1",
|
|
69
|
+
"@pnpm/installing.env-installer": "1100.1.0",
|
|
70
|
+
"@pnpm/pkg-manifest.reader": "1100.0.1",
|
|
71
|
+
"@pnpm/pkg-manifest.utils": "1100.1.0",
|
|
73
72
|
"@pnpm/resolving.parse-wanted-dependency": "1100.0.0",
|
|
74
|
-
"@pnpm/
|
|
75
|
-
"@pnpm/
|
|
76
|
-
"@pnpm/store.controller": "1100.0.
|
|
77
|
-
"@pnpm/workspace.
|
|
78
|
-
"@pnpm/workspace.project-manifest-
|
|
79
|
-
"@pnpm/
|
|
80
|
-
"@pnpm/workspace.projects-
|
|
81
|
-
"@pnpm/workspace.projects-
|
|
82
|
-
"@pnpm/workspace.projects-
|
|
83
|
-
"@pnpm/workspace.
|
|
84
|
-
"@pnpm/workspace.state": "1100.0.
|
|
85
|
-
"@pnpm/workspace.workspace-manifest-writer": "1100.0.
|
|
73
|
+
"@pnpm/resolving.resolver-base": "1100.0.1",
|
|
74
|
+
"@pnpm/store.connection-manager": "1100.0.2",
|
|
75
|
+
"@pnpm/store.controller": "1100.0.1",
|
|
76
|
+
"@pnpm/workspace.project-manifest-reader": "1100.0.2",
|
|
77
|
+
"@pnpm/workspace.project-manifest-writer": "1100.0.1",
|
|
78
|
+
"@pnpm/types": "1101.0.0",
|
|
79
|
+
"@pnpm/workspace.projects-reader": "1101.0.0",
|
|
80
|
+
"@pnpm/workspace.projects-graph": "1100.0.1",
|
|
81
|
+
"@pnpm/workspace.projects-sorter": "1100.0.1",
|
|
82
|
+
"@pnpm/workspace.projects-filter": "1100.0.2",
|
|
83
|
+
"@pnpm/workspace.state": "1100.0.2",
|
|
84
|
+
"@pnpm/workspace.workspace-manifest-writer": "1100.0.1",
|
|
85
|
+
"@pnpm/workspace.root-finder": "1100.0.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
@@ -107,18 +107,18 @@
|
|
|
107
107
|
"write-json-file": "^7.0.0",
|
|
108
108
|
"write-package": "7.2.0",
|
|
109
109
|
"write-yaml-file": "^6.0.0",
|
|
110
|
-
"@pnpm/assert-project": "1100.0.
|
|
111
|
-
"@pnpm/installing.commands": "1100.
|
|
110
|
+
"@pnpm/assert-project": "1100.0.1",
|
|
111
|
+
"@pnpm/installing.commands": "1100.1.0",
|
|
112
|
+
"@pnpm/installing.modules-yaml": "1100.0.1",
|
|
112
113
|
"@pnpm/logger": "1100.0.0",
|
|
113
|
-
"@pnpm/prepare": "1100.0.
|
|
114
|
+
"@pnpm/prepare": "1100.0.1",
|
|
114
115
|
"@pnpm/store.index": "1100.0.0",
|
|
115
116
|
"@pnpm/test-fixtures": "1100.0.0",
|
|
116
|
-
"@pnpm/installing.modules-yaml": "1100.0.0",
|
|
117
|
-
"@pnpm/testing.mock-agent": "1100.0.0",
|
|
118
|
-
"@pnpm/testing.command-defaults": "1100.0.0",
|
|
119
117
|
"@pnpm/test-ipc-server": "1100.0.0",
|
|
120
|
-
"@pnpm/
|
|
121
|
-
"@pnpm/
|
|
118
|
+
"@pnpm/testing.command-defaults": "1100.0.0",
|
|
119
|
+
"@pnpm/testing.mock-agent": "1100.0.1",
|
|
120
|
+
"@pnpm/workspace.projects-filter": "1100.0.2",
|
|
121
|
+
"@pnpm/worker": "1100.0.1"
|
|
122
122
|
},
|
|
123
123
|
"engines": {
|
|
124
124
|
"node": ">=22.13"
|