@pnpm/engine.pm.commands 1100.0.0 → 1100.0.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.
@@ -1,6 +1,6 @@
1
1
  import { type GlobalAddOptions } from '@pnpm/global.commands';
2
2
  import type { EnvLockfile } from '@pnpm/lockfile.types';
3
- import type { StoreController } from '@pnpm/store.controller';
3
+ import { type StoreController } from '@pnpm/store.controller';
4
4
  import type { Registries } from '@pnpm/types';
5
5
  export interface InstallPnpmResult {
6
6
  binDir: string;
@@ -8,6 +8,7 @@ import { iterateHashedGraphNodes, iteratePkgMeta, lockfileToDepGraph, } from '@p
8
8
  import { installGlobalPackages } from '@pnpm/global.commands';
9
9
  import { cleanOrphanedInstallDirs, createGlobalCacheKey, createInstallDir, findGlobalPackage, getHashLink, } from '@pnpm/global.packages';
10
10
  import { headlessInstall } from '@pnpm/installing.deps-restorer';
11
+ import { registerProject } from '@pnpm/store.controller';
11
12
  import { symlinkDir } from 'symlink-dir';
12
13
  // @pnpm/exe has platform-specific binaries, so its GVS hash must
13
14
  // include ENGINE_NAME for correct per-platform resolution.
@@ -123,6 +124,11 @@ async function installPnpmToGlobalDir(opts, pkgName, version, wantedLockfile) {
123
124
  virtualStoreDirMaxLength: opts.virtualStoreDirMaxLength,
124
125
  packageManager: opts.packageManager,
125
126
  });
127
+ // headlessInstall does not register the project, so we must do it
128
+ // explicitly. Without this, `pnpm store prune` would not know about
129
+ // this install directory and would remove its packages from the
130
+ // global virtual store.
131
+ await registerProject(opts.storeDir, installDir);
126
132
  }
127
133
  else {
128
134
  await installFromResolution(installDir, opts, [`${pkgName}@${version}`]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/engine.pm.commands",
3
- "version": "1100.0.0",
3
+ "version": "1100.0.1",
4
4
  "description": "pnpm commands for self-updating and setting up pnpm",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -30,24 +30,24 @@
30
30
  "render-help": "^2.0.0",
31
31
  "semver": "^7.7.2",
32
32
  "symlink-dir": "^10.0.1",
33
- "@pnpm/bins.linker": "1100.0.0",
34
- "@pnpm/building.policy": "1100.0.0",
35
- "@pnpm/cli.meta": "1100.0.0",
36
- "@pnpm/cli.utils": "1100.0.0",
37
- "@pnpm/config.reader": "1100.0.0",
38
- "@pnpm/deps.graph-hasher": "1100.0.0",
39
- "@pnpm/global.commands": "1100.0.0",
33
+ "@pnpm/bins.linker": "1100.0.1",
34
+ "@pnpm/building.policy": "1100.0.1",
35
+ "@pnpm/config.reader": "1100.0.1",
36
+ "@pnpm/cli.meta": "1100.0.1",
37
+ "@pnpm/cli.utils": "1100.0.1",
40
38
  "@pnpm/error": "1100.0.0",
41
- "@pnpm/installing.client": "1100.0.0",
42
- "@pnpm/installing.deps-restorer": "1100.0.0",
43
- "@pnpm/installing.env-installer": "1100.0.0",
44
- "@pnpm/global.packages": "1100.0.0",
45
- "@pnpm/lockfile.types": "1100.0.0",
46
- "@pnpm/store.connection-manager": "1100.0.0",
47
- "@pnpm/types": "1100.0.0",
48
- "@pnpm/store.controller": "1100.0.0",
49
- "@pnpm/workspace.project-manifest-reader": "1100.0.0",
50
- "@pnpm/resolving.npm-resolver": "1100.0.0"
39
+ "@pnpm/deps.graph-hasher": "1100.0.1",
40
+ "@pnpm/global.commands": "1100.0.1",
41
+ "@pnpm/global.packages": "1100.0.1",
42
+ "@pnpm/installing.client": "1100.0.1",
43
+ "@pnpm/installing.env-installer": "1100.0.1",
44
+ "@pnpm/installing.deps-restorer": "1100.0.1",
45
+ "@pnpm/lockfile.types": "1100.0.1",
46
+ "@pnpm/store.connection-manager": "1100.0.1",
47
+ "@pnpm/resolving.npm-resolver": "1100.0.1",
48
+ "@pnpm/types": "1101.0.0",
49
+ "@pnpm/store.controller": "1100.0.1",
50
+ "@pnpm/workspace.project-manifest-reader": "1100.0.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@pnpm/logger": ">=1001.0.0 <1002.0.0"
@@ -58,12 +58,13 @@
58
58
  "@types/ramda": "0.31.1",
59
59
  "@types/semver": "7.7.1",
60
60
  "cross-spawn": "^7.0.6",
61
- "@pnpm/logger": "1100.0.0",
62
- "@pnpm/engine.pm.commands": "1100.0.0",
63
- "@pnpm/prepare": "1100.0.0",
61
+ "@pnpm/constants": "1100.0.0",
64
62
  "@pnpm/error": "1100.0.0",
63
+ "@pnpm/logger": "1100.0.0",
64
+ "@pnpm/prepare": "1100.0.1",
65
+ "@pnpm/engine.pm.commands": "1100.0.1",
65
66
  "@pnpm/shell.path": "1100.0.0",
66
- "@pnpm/testing.mock-agent": "1100.0.0"
67
+ "@pnpm/testing.mock-agent": "1100.0.1"
67
68
  },
68
69
  "engines": {
69
70
  "node": ">=22.13"