@pnpm/tools.plugin-commands-self-updater 1000.0.13 → 1000.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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import * as selfUpdate from './selfUpdate';
2
+ export { installPnpmToTools } from './installPnpmToTools';
2
3
  export { selfUpdate };
package/lib/index.js CHANGED
@@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.selfUpdate = void 0;
26
+ exports.selfUpdate = exports.installPnpmToTools = void 0;
27
27
  const selfUpdate = __importStar(require("./selfUpdate"));
28
28
  exports.selfUpdate = selfUpdate;
29
+ var installPnpmToTools_1 = require("./installPnpmToTools");
30
+ Object.defineProperty(exports, "installPnpmToTools", { enumerable: true, get: function () { return installPnpmToTools_1.installPnpmToTools; } });
29
31
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA0C;AAEjC,gCAAU"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA0C;AAGjC,gCAAU;AAFnB,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA"}
@@ -0,0 +1,7 @@
1
+ import { type SelfUpdateCommandOptions } from './selfUpdate';
2
+ export interface InstallPnpmToToolsResult {
3
+ binDir: string;
4
+ baseDir: string;
5
+ alreadyExisted: boolean;
6
+ }
7
+ export declare function installPnpmToTools(pnpmVersion: string, opts: SelfUpdateCommandOptions): Promise<InstallPnpmToToolsResult>;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.installPnpmToTools = installPnpmToTools;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const cli_meta_1 = require("@pnpm/cli-meta");
10
+ const exec_pnpm_cli_runner_1 = require("@pnpm/exec.pnpm-cli-runner");
11
+ const tools_path_1 = require("@pnpm/tools.path");
12
+ const rimraf_1 = require("@zkochan/rimraf");
13
+ const path_temp_1 = require("path-temp");
14
+ const rename_overwrite_1 = __importDefault(require("rename-overwrite"));
15
+ async function installPnpmToTools(pnpmVersion, opts) {
16
+ const currentPkgName = (0, cli_meta_1.getCurrentPackageName)();
17
+ const dir = (0, tools_path_1.getToolDirPath)({
18
+ pnpmHomeDir: opts.pnpmHomeDir,
19
+ tool: {
20
+ name: currentPkgName,
21
+ version: pnpmVersion,
22
+ },
23
+ });
24
+ const binDir = path_1.default.join(dir, 'bin');
25
+ const alreadyExisted = fs_1.default.existsSync(binDir);
26
+ if (alreadyExisted) {
27
+ return {
28
+ alreadyExisted,
29
+ baseDir: dir,
30
+ binDir,
31
+ };
32
+ }
33
+ const stage = (0, path_temp_1.fastPathTemp)(dir);
34
+ fs_1.default.mkdirSync(stage, { recursive: true });
35
+ fs_1.default.writeFileSync(path_1.default.join(stage, 'package.json'), '{}');
36
+ try {
37
+ // The reason we don't just run add.handler is that at this point we might have settings from local config files
38
+ // that we don't want to use while installing the pnpm CLI.
39
+ (0, exec_pnpm_cli_runner_1.runPnpmCli)([
40
+ 'add',
41
+ `${currentPkgName}@${pnpmVersion}`,
42
+ '--loglevel=error',
43
+ '--allow-build=@pnpm/exe',
44
+ // We want to avoid symlinks because of the rename step,
45
+ // which breaks the junctions on Windows.
46
+ '--config.node-linker=hoisted',
47
+ `--config.bin=${path_1.default.join(stage, 'bin')}`,
48
+ ], { cwd: stage });
49
+ rename_overwrite_1.default.sync(stage, dir);
50
+ }
51
+ catch (err) {
52
+ try {
53
+ (0, rimraf_1.sync)(stage);
54
+ }
55
+ catch { } // eslint-disable-line:no-empty
56
+ throw err;
57
+ }
58
+ return {
59
+ alreadyExisted,
60
+ baseDir: dir,
61
+ binDir,
62
+ };
63
+ }
64
+ //# sourceMappingURL=installPnpmToTools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installPnpmToTools.js","sourceRoot":"","sources":["../src/installPnpmToTools.ts"],"names":[],"mappings":";;;;;AAgBA,gDA+CC;AA/DD,4CAAmB;AACnB,gDAAuB;AACvB,6CAAsD;AACtD,qEAAuD;AACvD,iDAAiD;AACjD,4CAAgD;AAChD,yCAAoD;AACpD,wEAA8C;AASvC,KAAK,UAAU,kBAAkB,CAAE,WAAmB,EAAE,IAA8B;IAC3F,MAAM,cAAc,GAAG,IAAA,gCAAqB,GAAE,CAAA;IAC9C,MAAM,GAAG,GAAG,IAAA,2BAAc,EAAC;QACzB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,WAAW;SACrB;KACF,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACpC,MAAM,cAAc,GAAG,YAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5C,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO;YACL,cAAc;YACd,OAAO,EAAE,GAAG;YACZ,MAAM;SACP,CAAA;IACH,CAAC;IACD,MAAM,KAAK,GAAG,IAAA,wBAAQ,EAAC,GAAG,CAAC,CAAA;IAC3B,YAAE,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IACxC,YAAE,CAAC,aAAa,CAAC,cAAI,CAAC,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,CAAA;IACxD,IAAI,CAAC;QACH,gHAAgH;QAChH,2DAA2D;QAC3D,IAAA,iCAAU,EAAC;YACT,KAAK;YACL,GAAG,cAAc,IAAI,WAAW,EAAE;YAClC,kBAAkB;YAClB,yBAAyB;YACzB,wDAAwD;YACxD,yCAAyC;YACzC,8BAA8B;YAC9B,gBAAgB,cAAI,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;SAC1C,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAA;QAClB,0BAAe,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAClC,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,IAAA,aAAM,EAAC,KAAK,CAAC,CAAA;QACf,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC,CAAC,+BAA+B;QAC1C,MAAM,GAAG,CAAA;IACX,CAAC;IACD,OAAO;QACL,cAAc;QACd,OAAO,EAAE,GAAG;QACZ,MAAM;KACP,CAAA;AACH,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { type Config } from '@pnpm/config';
2
- import { type InstallCommandOptions } from '@pnpm/plugin-commands-installation';
3
2
  export declare function rcOptionsTypes(): Record<string, unknown>;
4
3
  export declare function cliOptionsTypes(): Record<string, unknown>;
5
4
  export declare const commandNames: string[];
6
5
  export declare function help(): string;
7
- export type SelfUpdateCommandOptions = InstallCommandOptions & Pick<Config, 'wantedPackageManager' | 'managePackageManagerVersions'>;
6
+ export type SelfUpdateCommandOptions = Pick<Config, 'cacheDir' | 'dir' | 'lockfileDir' | 'managePackageManagerVersions' | 'modulesDir' | 'pnpmHomeDir' | 'rawConfig' | 'registries' | 'rootProjectManifestDir' | 'wantedPackageManager'>;
8
7
  export declare function handler(opts: SelfUpdateCommandOptions, params: string[]): Promise<undefined | string>;
package/lib/selfUpdate.js CHANGED
@@ -8,7 +8,6 @@ exports.rcOptionsTypes = rcOptionsTypes;
8
8
  exports.cliOptionsTypes = cliOptionsTypes;
9
9
  exports.help = help;
10
10
  exports.handler = handler;
11
- const fs_1 = __importDefault(require("fs"));
12
11
  const path_1 = __importDefault(require("path"));
13
12
  const cli_utils_1 = require("@pnpm/cli-utils");
14
13
  const cli_meta_1 = require("@pnpm/cli-meta");
@@ -17,12 +16,11 @@ const pick_registry_for_package_1 = require("@pnpm/pick-registry-for-package");
17
16
  const config_1 = require("@pnpm/config");
18
17
  const error_1 = require("@pnpm/error");
19
18
  const logger_1 = require("@pnpm/logger");
20
- const plugin_commands_installation_1 = require("@pnpm/plugin-commands-installation");
21
19
  const read_project_manifest_1 = require("@pnpm/read-project-manifest");
22
- const tools_path_1 = require("@pnpm/tools.path");
23
20
  const link_bins_1 = require("@pnpm/link-bins");
24
21
  const pick_1 = __importDefault(require("ramda/src/pick"));
25
22
  const render_help_1 = __importDefault(require("render-help"));
23
+ const installPnpmToTools_1 = require("./installPnpmToTools");
26
24
  function rcOptionsTypes() {
27
25
  return (0, pick_1.default)([], config_1.types);
28
26
  }
@@ -70,28 +68,12 @@ async function handler(opts, params) {
70
68
  await writeProjectManifest(manifest);
71
69
  return `The current project has been updated to use pnpm v${resolution.manifest.version}`;
72
70
  }
73
- const currentPkgName = (0, cli_meta_1.getCurrentPackageName)();
74
- const dir = (0, tools_path_1.getToolDirPath)({
75
- pnpmHomeDir: opts.pnpmHomeDir,
76
- tool: {
77
- name: currentPkgName,
78
- version: resolution.manifest.version,
79
- },
71
+ const { baseDir, alreadyExisted } = await (0, installPnpmToTools_1.installPnpmToTools)(resolution.manifest.version, opts);
72
+ await (0, link_bins_1.linkBins)(path_1.default.join(baseDir, opts.modulesDir ?? 'node_modules'), opts.pnpmHomeDir, {
73
+ warn: logger_1.globalWarn,
80
74
  });
81
- if (fs_1.default.existsSync(dir)) {
82
- await (0, link_bins_1.linkBins)(path_1.default.join(dir, opts.modulesDir ?? 'node_modules'), opts.pnpmHomeDir, {
83
- warn: logger_1.globalWarn,
84
- });
85
- return `The ${pref} version, v${resolution.manifest.version}, is already present on the system. It was activated by linking it from ${dir}.`;
86
- }
87
- fs_1.default.mkdirSync(dir, { recursive: true });
88
- fs_1.default.writeFileSync(path_1.default.join(dir, 'package.json'), '{}');
89
- await plugin_commands_installation_1.add.handler({
90
- ...opts,
91
- dir,
92
- lockfileDir: dir,
93
- bin: opts.pnpmHomeDir,
94
- }, [`${currentPkgName}@${resolution.manifest.version}`]);
95
- return undefined;
75
+ return alreadyExisted
76
+ ? `The ${pref} version, v${resolution.manifest.version}, is already present on the system. It was activated by linking it from ${baseDir}.`
77
+ : undefined;
96
78
  }
97
79
  //# sourceMappingURL=selfUpdate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selfUpdate.js","sourceRoot":"","sources":["../src/selfUpdate.ts"],"names":[],"mappings":";;;;;;AAgBA,wCAEC;AAED,0CAIC;AAID,oBAYC;AAID,0BA0DC;AAtGD,4CAAmB;AACnB,gDAAuB;AACvB,+CAAyC;AACzC,6CAA4F;AAC5F,yCAA6C;AAC7C,+EAAwE;AACxE,yCAA6D;AAC7D,uCAAuC;AACvC,yCAAyC;AACzC,qFAAoF;AACpF,uEAAiE;AACjE,iDAAiD;AACjD,+CAA0C;AAC1C,0DAAiC;AACjC,8DAAoC;AAEpC,SAAgB,cAAc;IAC5B,OAAO,IAAA,cAAI,EAAC,EAAE,EAAE,cAAQ,CAAC,CAAA;AAC3B,CAAC;AAED,SAAgB,eAAe;IAC7B,OAAO;QACL,GAAG,cAAc,EAAE;KACpB,CAAA;AACH,CAAC;AAEY,QAAA,YAAY,GAAG,CAAC,aAAa,CAAC,CAAA;AAE3C,SAAgB,IAAI;IAClB,OAAO,IAAA,qBAAU,EAAC;QAChB,WAAW,EAAE,2DAA2D;QACxE,gBAAgB,EAAE,EAAE;QACpB,GAAG,EAAE,IAAA,mBAAO,EAAC,aAAa,CAAC;QAC3B,MAAM,EAAE;YACN,kBAAkB;YAClB,oBAAoB;YACpB,0BAA0B;YAC1B,yBAAyB;SAC1B;KACF,CAAC,CAAA;AACJ,CAA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MAAM,IAAA,oBAAQ,EAAC,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,IAAI,cAAc,CAAC,EAAE,IAAI,CAAC,WAAW,EACpF;QACE,IAAI,EAAE,mBAAU;KACjB,CACF,CAAA;IACD,OAAO,cAAc;QACnB,CAAC,CAAC,OAAO,IAAI,cAAc,UAAU,CAAC,QAAQ,CAAC,OAAO,2EAA2E,OAAO,GAAG;QAC3I,CAAC,CAAC,SAAS,CAAA;AACf,CAAC"}
package/package.json CHANGED
@@ -1,55 +1,58 @@
1
1
  {
2
2
  "name": "@pnpm/tools.plugin-commands-self-updater",
3
- "version": "1000.0.13",
3
+ "version": "1000.1.0",
4
4
  "description": "A command for updating pnpm itself",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "files": [
8
- "lib",
9
- "!*.map"
10
- ],
11
- "repository": "https://github.com/pnpm/pnpm/blob/main/tools/plugin-commands-self-updater",
12
5
  "keywords": [
13
- "pnpm10",
14
- "pnpm"
6
+ "pnpm",
7
+ "pnpm10"
15
8
  ],
16
- "engines": {
17
- "node": ">=18.12"
18
- },
19
9
  "license": "MIT",
10
+ "funding": "https://opencollective.com/pnpm",
11
+ "repository": "https://github.com/pnpm/pnpm/blob/main/tools/plugin-commands-self-updater",
12
+ "homepage": "https://github.com/pnpm/pnpm/blob/main/tools/plugin-commands-self-updater#readme",
20
13
  "bugs": {
21
14
  "url": "https://github.com/pnpm/pnpm/issues"
22
15
  },
23
- "homepage": "https://github.com/pnpm/pnpm/blob/main/tools/plugin-commands-self-updater#readme",
16
+ "main": "lib/index.js",
17
+ "types": "lib/index.d.ts",
18
+ "exports": {
19
+ ".": "./lib/index.js"
20
+ },
21
+ "files": [
22
+ "lib",
23
+ "!*.map"
24
+ ],
24
25
  "dependencies": {
26
+ "@zkochan/rimraf": "^3.0.2",
27
+ "path-temp": "^2.1.0",
25
28
  "ramda": "npm:@pnpm/ramda@0.28.1",
29
+ "rename-overwrite": "^6.0.2",
26
30
  "render-help": "^1.0.3",
27
- "@pnpm/cli-meta": "1000.0.3",
28
- "@pnpm/cli-utils": "1000.0.11",
29
- "@pnpm/config": "1002.4.0",
31
+ "@pnpm/cli-meta": "1000.0.4",
32
+ "@pnpm/cli-utils": "1000.0.13",
33
+ "@pnpm/client": "1000.0.8",
34
+ "@pnpm/config": "1002.5.0",
35
+ "@pnpm/exec.pnpm-cli-runner": "1000.0.0",
36
+ "@pnpm/link-bins": "1000.0.8",
30
37
  "@pnpm/error": "1000.0.2",
31
- "@pnpm/client": "1000.0.7",
32
- "@pnpm/link-bins": "1000.0.7",
33
- "@pnpm/pick-registry-for-package": "1000.0.3",
34
- "@pnpm/plugin-commands-installation": "1002.0.0",
35
- "@pnpm/tools.path": "1000.0.0",
36
- "@pnpm/read-project-manifest": "1000.0.6"
38
+ "@pnpm/pick-registry-for-package": "1000.0.4",
39
+ "@pnpm/read-project-manifest": "1000.0.7",
40
+ "@pnpm/tools.path": "1000.0.0"
41
+ },
42
+ "peerDependencies": {
43
+ "@pnpm/logger": ">=5.1.0 <1001.0.0"
37
44
  },
38
45
  "devDependencies": {
39
46
  "@types/cross-spawn": "^6.0.6",
40
47
  "@types/ramda": "0.29.12",
41
- "cross-spawn": "^7.0.5",
48
+ "cross-spawn": "^7.0.6",
42
49
  "nock": "13.3.4",
43
- "@pnpm/prepare": "0.0.112",
44
- "@pnpm/tools.plugin-commands-self-updater": "1000.0.13",
45
- "@pnpm/env.path": "1000.0.0"
50
+ "@pnpm/env.path": "1000.0.0",
51
+ "@pnpm/tools.plugin-commands-self-updater": "1000.1.0",
52
+ "@pnpm/prepare": "0.0.113"
46
53
  },
47
- "peerDependencies": {
48
- "@pnpm/logger": ">=5.1.0 <1001.0.0"
49
- },
50
- "funding": "https://opencollective.com/pnpm",
51
- "exports": {
52
- ".": "./lib/index.js"
54
+ "engines": {
55
+ "node": ">=18.12"
53
56
  },
54
57
  "jest": {
55
58
  "preset": "@pnpm/jest-config"