@pnpm/installing.commands 1100.0.1 → 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.
@@ -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
  };
@@ -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.0.1",
3
+ "version": "1100.1.0",
4
4
  "description": "Commands for installation",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -44,43 +44,43 @@
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/cli.command": "1100.0.0",
47
+ "@pnpm/building.after-install": "1100.0.2",
48
48
  "@pnpm/catalogs.types": "1100.0.0",
49
+ "@pnpm/cli.command": "1100.0.0",
49
50
  "@pnpm/cli.common-cli-options-help": "1100.0.0",
50
- "@pnpm/config.matcher": "1100.0.0",
51
- "@pnpm/cli.utils": "1100.0.1",
52
51
  "@pnpm/config.pick-registry-for-package": "1100.0.1",
52
+ "@pnpm/config.reader": "1101.0.0",
53
+ "@pnpm/config.matcher": "1100.0.0",
53
54
  "@pnpm/config.writer": "1100.0.1",
54
- "@pnpm/config.reader": "1100.0.1",
55
55
  "@pnpm/constants": "1100.0.0",
56
- "@pnpm/deps.inspection.outdated": "1100.0.1",
57
- "@pnpm/building.after-install": "1100.0.1",
58
56
  "@pnpm/deps.path": "1100.0.1",
59
- "@pnpm/fs.read-modules-dir": "1100.0.0",
60
- "@pnpm/deps.status": "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",
61
60
  "@pnpm/error": "1100.0.0",
62
- "@pnpm/global.commands": "1100.0.1",
63
61
  "@pnpm/fs.graceful-fs": "1100.0.0",
64
62
  "@pnpm/hooks.pnpmfile": "1100.0.1",
63
+ "@pnpm/fs.read-modules-dir": "1100.0.0",
65
64
  "@pnpm/installing.context": "1100.0.1",
66
- "@pnpm/installing.deps-installer": "1100.0.1",
67
- "@pnpm/installing.env-installer": "1100.0.1",
65
+ "@pnpm/global.commands": "1100.0.2",
68
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",
69
70
  "@pnpm/pkg-manifest.reader": "1100.0.1",
70
- "@pnpm/pkg-manifest.utils": "1100.0.1",
71
- "@pnpm/resolving.resolver-base": "1100.0.1",
71
+ "@pnpm/pkg-manifest.utils": "1100.1.0",
72
72
  "@pnpm/resolving.parse-wanted-dependency": "1100.0.0",
73
- "@pnpm/lockfile.types": "1100.0.1",
74
- "@pnpm/store.connection-manager": "1100.0.1",
73
+ "@pnpm/resolving.resolver-base": "1100.0.1",
74
+ "@pnpm/store.connection-manager": "1100.0.2",
75
75
  "@pnpm/store.controller": "1100.0.1",
76
- "@pnpm/types": "1101.0.0",
77
- "@pnpm/workspace.project-manifest-reader": "1100.0.1",
78
- "@pnpm/workspace.projects-filter": "1100.0.1",
76
+ "@pnpm/workspace.project-manifest-reader": "1100.0.2",
79
77
  "@pnpm/workspace.project-manifest-writer": "1100.0.1",
80
- "@pnpm/workspace.projects-sorter": "1100.0.1",
81
- "@pnpm/workspace.projects-reader": "1100.0.1",
82
- "@pnpm/workspace.state": "1100.0.1",
78
+ "@pnpm/types": "1101.0.0",
79
+ "@pnpm/workspace.projects-reader": "1101.0.0",
83
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
84
  "@pnpm/workspace.workspace-manifest-writer": "1100.0.1",
85
85
  "@pnpm/workspace.root-finder": "1100.0.0"
86
86
  },
@@ -108,17 +108,17 @@
108
108
  "write-package": "7.2.0",
109
109
  "write-yaml-file": "^6.0.0",
110
110
  "@pnpm/assert-project": "1100.0.1",
111
- "@pnpm/installing.commands": "1100.0.1",
111
+ "@pnpm/installing.commands": "1100.1.0",
112
112
  "@pnpm/installing.modules-yaml": "1100.0.1",
113
113
  "@pnpm/logger": "1100.0.0",
114
114
  "@pnpm/prepare": "1100.0.1",
115
115
  "@pnpm/store.index": "1100.0.0",
116
- "@pnpm/test-ipc-server": "1100.0.0",
117
116
  "@pnpm/test-fixtures": "1100.0.0",
117
+ "@pnpm/test-ipc-server": "1100.0.0",
118
118
  "@pnpm/testing.command-defaults": "1100.0.0",
119
119
  "@pnpm/testing.mock-agent": "1100.0.1",
120
- "@pnpm/worker": "1100.0.1",
121
- "@pnpm/workspace.projects-filter": "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"