pnpm 9.14.0 → 9.14.2

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.
@@ -16,9 +16,9 @@ hoistedLocations:
16
16
  aggregate-error@3.1.0:
17
17
  - node_modules/aggregate-error
18
18
  ansi-regex@5.0.1:
19
- - node_modules/wrap-ansi-cjs/node_modules/ansi-regex
20
19
  - node_modules/strip-ansi-cjs/node_modules/ansi-regex
21
20
  - node_modules/string-width-cjs/node_modules/ansi-regex
21
+ - node_modules/wrap-ansi-cjs/node_modules/ansi-regex
22
22
  ansi-regex@6.0.1:
23
23
  - node_modules/ansi-regex
24
24
  ansi-styles@4.3.0:
@@ -46,8 +46,8 @@ hoistedLocations:
46
46
  eastasianwidth@0.2.0:
47
47
  - node_modules/eastasianwidth
48
48
  emoji-regex@8.0.0:
49
- - node_modules/wrap-ansi-cjs/node_modules/emoji-regex
50
49
  - node_modules/string-width-cjs/node_modules/emoji-regex
50
+ - node_modules/wrap-ansi-cjs/node_modules/emoji-regex
51
51
  emoji-regex@9.2.2:
52
52
  - node_modules/emoji-regex
53
53
  encoding@0.1.13:
@@ -111,10 +111,10 @@ hoistedLocations:
111
111
  minipass-sized@1.0.3:
112
112
  - node_modules/minipass-sized
113
113
  minipass@3.3.6:
114
+ - node_modules/fs-minipass/node_modules/minipass
115
+ - node_modules/minizlib/node_modules/minipass
114
116
  - node_modules/minipass-flush/node_modules/minipass
115
117
  - node_modules/minipass-pipeline/node_modules/minipass
116
- - node_modules/minizlib/node_modules/minipass
117
- - node_modules/fs-minipass/node_modules/minipass
118
118
  - node_modules/minipass-sized/node_modules/minipass
119
119
  minipass@5.0.0:
120
120
  - node_modules/tar/node_modules/minipass
@@ -172,8 +172,8 @@ hoistedLocations:
172
172
  string-width@5.1.2:
173
173
  - node_modules/string-width
174
174
  strip-ansi@6.0.1:
175
- - node_modules/wrap-ansi-cjs/node_modules/strip-ansi
176
175
  - node_modules/string-width-cjs/node_modules/strip-ansi
176
+ - node_modules/wrap-ansi-cjs/node_modules/strip-ansi
177
177
  - node_modules/strip-ansi-cjs
178
178
  strip-ansi@7.1.0:
179
179
  - node_modules/strip-ansi
@@ -204,7 +204,7 @@ layoutVersion: 5
204
204
  nodeLinker: hoisted
205
205
  packageManager: pnpm@10.0.0-alpha.2
206
206
  pendingBuilds: []
207
- prunedAt: Wed, 20 Nov 2024 00:04:44 GMT
207
+ prunedAt: Wed, 20 Nov 2024 11:06:39 GMT
208
208
  publicHoistPattern: []
209
209
  registries:
210
210
  default: https://registry.npmjs.org/
package/dist/pnpm.cjs CHANGED
@@ -7645,7 +7645,7 @@ var require_lib5 = __commonJS({
7645
7645
  var load_json_file_1 = __importDefault2(require_load_json_file());
7646
7646
  var defaultManifest = {
7647
7647
  name: true ? "pnpm" : "pnpm",
7648
- version: true ? "9.14.0" : "0.0.0"
7648
+ version: true ? "9.14.2" : "0.0.0"
7649
7649
  };
7650
7650
  var pkgJson;
7651
7651
  if (require.main == null) {
@@ -223784,13 +223784,13 @@ var require_publish2 = __commonJS({
223784
223784
  ], manifest);
223785
223785
  }
223786
223786
  const packDestination = tempy_1.default.directory();
223787
- const tarballName = await pack.handler({
223787
+ const { tarballPath } = await pack.api({
223788
223788
  ...opts,
223789
223789
  dir,
223790
223790
  packDestination
223791
223791
  });
223792
223792
  await copyNpmrc({ dir, workspaceDir: opts.workspaceDir, packDestination });
223793
- const { status } = (0, run_npm_1.runNpm)(opts.npmPath, ["publish", "--ignore-scripts", path_1.default.basename(tarballName), ...args2], {
223793
+ const { status } = (0, run_npm_1.runNpm)(opts.npmPath, ["publish", "--ignore-scripts", path_1.default.basename(tarballPath), ...args2], {
223794
223794
  cwd: packDestination,
223795
223795
  env: getEnvWithTokens(opts)
223796
223796
  });
@@ -223854,6 +223854,7 @@ var require_pack3 = __commonJS({
223854
223854
  exports2.cliOptionsTypes = cliOptionsTypes;
223855
223855
  exports2.help = help;
223856
223856
  exports2.handler = handler;
223857
+ exports2.api = api;
223857
223858
  var fs_1 = __importDefault2(require("fs"));
223858
223859
  var path_1 = __importDefault2(require("path"));
223859
223860
  var zlib_1 = require("zlib");
@@ -223912,6 +223913,22 @@ var require_pack3 = __commonJS({
223912
223913
  });
223913
223914
  }
223914
223915
  async function handler(opts) {
223916
+ const { publishedManifest, tarballPath, contents } = await api(opts);
223917
+ if (opts.json) {
223918
+ return JSON.stringify({
223919
+ name: publishedManifest.name,
223920
+ version: publishedManifest.version,
223921
+ filename: tarballPath,
223922
+ files: contents.map((path2) => ({ path: path2 }))
223923
+ }, null, 2);
223924
+ }
223925
+ return `${chalk_1.default.blueBright("Tarball Contents")}
223926
+ ${contents.join("\n")}
223927
+
223928
+ ${chalk_1.default.blueBright("Tarball Details")}
223929
+ ${tarballPath}`;
223930
+ }
223931
+ async function api(opts) {
223915
223932
  const { manifest: entryManifest, fileName: manifestFileName } = await (0, cli_utils_1.readProjectManifest)(opts.dir, opts);
223916
223933
  preventBundledDependenciesWithoutHoistedNodeLinker(opts.nodeLinker, entryManifest);
223917
223934
  const _runScriptsIfPresent = publish_1.runScriptsIfPresent.bind(null, {
@@ -223983,19 +224000,11 @@ var require_pack3 = __commonJS({
223983
224000
  packedTarballPath = path_1.default.relative(opts.dir, path_1.default.join(dir, tarballName));
223984
224001
  }
223985
224002
  const packedContents = files.sort((a, b) => a.localeCompare(b, "en"));
223986
- if (opts.json) {
223987
- return JSON.stringify({
223988
- name: publishManifest.name,
223989
- version: publishManifest.version,
223990
- filename: packedTarballPath,
223991
- files: packedContents.map((path2) => ({ path: path2 }))
223992
- }, null, 2);
223993
- }
223994
- return `${chalk_1.default.blueBright("Tarball Contents")}
223995
- ${packedContents.join("\n")}
223996
-
223997
- ${chalk_1.default.blueBright("Tarball Details")}
223998
- ${packedTarballPath}`;
224003
+ return {
224004
+ publishedManifest: publishManifest,
224005
+ contents: packedContents,
224006
+ tarballPath: packedTarballPath
224007
+ };
223999
224008
  }
224000
224009
  function preventBundledDependenciesWithoutHoistedNodeLinker(nodeLinker, manifest) {
224001
224010
  if (nodeLinker === "hoisted")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pnpm",
3
3
  "description": "Fast, disk space efficient package manager",
4
- "version": "9.14.0",
4
+ "version": "9.14.2",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"