@pnpm/releasing.commands 1100.2.3 → 1100.2.5

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,5 +1,6 @@
1
1
  import { type Config, type ConfigContext } from '@pnpm/config.reader';
2
2
  import { type RunLifecycleHookOptions } from '@pnpm/exec.lifecycle';
3
+ import type { ExportedManifest } from '@pnpm/releasing.exportable-manifest';
3
4
  import type { ProjectManifest } from '@pnpm/types';
4
5
  import { type PublishRecursiveOpts } from './recursivePublish.js';
5
6
  export declare function rcOptionsTypes(): Record<string, unknown>;
@@ -19,6 +20,7 @@ export declare function handler(opts: Omit<PublishRecursiveOpts, 'workspaceDir'>
19
20
  export interface PublishResult {
20
21
  exitCode?: number;
21
22
  manifest?: ProjectManifest;
23
+ publishedManifest?: ExportedManifest;
22
24
  }
23
25
  export declare function publish(opts: Omit<PublishRecursiveOpts, 'workspaceDir'> & {
24
26
  argv: {
@@ -186,6 +186,7 @@ Do you want to continue?`,
186
186
  // from the current working directory, ignoring the package.json file
187
187
  // that was generated and packed to the tarball.
188
188
  const packDestination = temporaryDirectory();
189
+ let publishedManifest;
189
190
  try {
190
191
  const packResult = await pack.api({
191
192
  ...opts,
@@ -194,6 +195,7 @@ Do you want to continue?`,
194
195
  dryRun: false,
195
196
  });
196
197
  await publishPackedPkg(packResult, opts);
198
+ publishedManifest = packResult.publishedManifest;
197
199
  }
198
200
  finally {
199
201
  await rimraf(packDestination);
@@ -204,7 +206,7 @@ Do you want to continue?`,
204
206
  'postpublish',
205
207
  ], manifest);
206
208
  }
207
- return { manifest };
209
+ return { manifest, publishedManifest };
208
210
  }
209
211
  export async function runScriptsIfPresent(opts, scriptNames, manifest) {
210
212
  for (const scriptName of scriptNames) {
@@ -83,8 +83,9 @@ export async function recursivePublish(opts) {
83
83
  gitChecks: false,
84
84
  recursive: false,
85
85
  }, [pkg.rootDir]);
86
- if (publishResult?.manifest != null) {
87
- publishedPackages.push(pick(['name', 'version'], publishResult.manifest));
86
+ const publishedManifest = publishResult?.publishedManifest ?? publishResult?.manifest;
87
+ if (publishedManifest != null) {
88
+ publishedPackages.push(pick(['name', 'version'], publishedManifest));
88
89
  }
89
90
  else if (publishResult?.exitCode) {
90
91
  return { exitCode: publishResult.exitCode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/releasing.commands",
3
- "version": "1100.2.3",
3
+ "version": "1100.2.5",
4
4
  "description": "Commands for deploy, pack, and publish",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -47,34 +47,34 @@
47
47
  "validate-npm-package-name": "7.0.2",
48
48
  "write-json-file": "^7.0.0",
49
49
  "write-yaml-file": "^6.0.0",
50
- "@pnpm/bins.resolver": "1100.0.1",
50
+ "@pnpm/bins.resolver": "1100.0.2",
51
51
  "@pnpm/catalogs.types": "1100.0.0",
52
- "@pnpm/cli.utils": "1101.0.0",
53
- "@pnpm/cli.common-cli-options-help": "1100.0.0",
54
- "@pnpm/config.pick-registry-for-package": "1100.0.1",
55
- "@pnpm/config.reader": "1101.1.2",
56
- "@pnpm/deps.path": "1100.0.1",
57
- "@pnpm/engine.runtime.commands": "1100.0.6",
52
+ "@pnpm/cli.utils": "1101.0.2",
53
+ "@pnpm/cli.common-cli-options-help": "1100.0.1",
54
+ "@pnpm/config.pick-registry-for-package": "1100.0.2",
58
55
  "@pnpm/constants": "1100.0.0",
59
- "@pnpm/engine.runtime.node-resolver": "1101.0.1",
56
+ "@pnpm/config.reader": "1101.1.3",
57
+ "@pnpm/deps.path": "1100.0.2",
58
+ "@pnpm/engine.runtime.commands": "1100.0.8",
60
59
  "@pnpm/error": "1100.0.0",
60
+ "@pnpm/engine.runtime.node-resolver": "1101.0.2",
61
+ "@pnpm/exec.lifecycle": "1100.0.5",
61
62
  "@pnpm/exec.pnpm-cli-runner": "1100.0.0",
62
- "@pnpm/exec.lifecycle": "1100.0.4",
63
- "@pnpm/fetching.directory-fetcher": "1100.0.4",
64
- "@pnpm/fs.indexed-pkg-importer": "1100.0.3",
63
+ "@pnpm/fetching.directory-fetcher": "1100.0.5",
64
+ "@pnpm/fs.indexed-pkg-importer": "1100.0.4",
65
65
  "@pnpm/fs.is-empty-dir-or-nothing": "1100.0.0",
66
- "@pnpm/installing.client": "1100.0.6",
67
66
  "@pnpm/fs.packlist": "1100.0.0",
68
- "@pnpm/lockfile.fs": "1100.0.3",
69
- "@pnpm/lockfile.types": "1100.0.2",
70
- "@pnpm/network.fetch": "1100.0.1",
71
- "@pnpm/installing.commands": "1100.1.4",
72
- "@pnpm/network.git-utils": "1100.0.0",
73
- "@pnpm/releasing.exportable-manifest": "1100.0.2",
67
+ "@pnpm/lockfile.fs": "1100.0.4",
68
+ "@pnpm/lockfile.types": "1100.0.3",
69
+ "@pnpm/installing.client": "1100.0.7",
70
+ "@pnpm/installing.commands": "1100.1.6",
71
+ "@pnpm/network.fetch": "1100.0.2",
72
+ "@pnpm/network.git-utils": "1100.0.1",
74
73
  "@pnpm/network.web-auth": "1101.0.0",
74
+ "@pnpm/releasing.exportable-manifest": "1100.0.3",
75
+ "@pnpm/resolving.resolver-base": "1100.1.1",
76
+ "@pnpm/workspace.projects-filter": "1100.0.7",
75
77
  "@pnpm/types": "1101.0.0",
76
- "@pnpm/workspace.projects-filter": "1100.0.5",
77
- "@pnpm/resolving.resolver-base": "1100.1.0",
78
78
  "@pnpm/workspace.projects-sorter": "1100.0.1"
79
79
  },
80
80
  "peerDependencies": {
@@ -98,14 +98,14 @@
98
98
  "load-json-file": "^7.0.1",
99
99
  "tar": "^7.5.10",
100
100
  "write-yaml-file": "^6.0.0",
101
- "@pnpm/assert-project": "1100.0.3",
101
+ "@pnpm/assert-project": "1100.0.4",
102
102
  "@pnpm/catalogs.config": "1100.0.0",
103
103
  "@pnpm/logger": "1100.0.0",
104
- "@pnpm/hooks.pnpmfile": "1100.0.3",
105
- "@pnpm/prepare": "1100.0.3",
106
- "@pnpm/releasing.commands": "1100.2.3",
107
- "@pnpm/test-fixtures": "1100.0.0",
104
+ "@pnpm/prepare": "1100.0.4",
105
+ "@pnpm/releasing.commands": "1100.2.5",
106
+ "@pnpm/hooks.pnpmfile": "1100.0.4",
108
107
  "@pnpm/test-ipc-server": "1100.0.0",
108
+ "@pnpm/test-fixtures": "1100.0.0",
109
109
  "@pnpm/testing.command-defaults": "1100.0.1"
110
110
  },
111
111
  "engines": {