@pnpm/releasing.commands 1100.5.0 → 1100.5.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.
@@ -287,12 +287,6 @@ function preventBundledDependenciesWithoutHoistedNodeLinker(nodeLinker, manifest
287
287
  }
288
288
  }
289
289
  }
290
- async function readReadmeFile(projectDir) {
291
- const files = await fs.promises.readdir(projectDir);
292
- const readmePath = files.find(name => /readme\.md$/i.test(name));
293
- const readmeFile = readmePath ? await fs.promises.readFile(path.join(projectDir, readmePath), 'utf8') : undefined;
294
- return readmeFile;
295
- }
296
290
  async function packPkg(opts) {
297
291
  const { destFile, filesMap, bins, manifest, } = opts;
298
292
  const mtime = new Date('1985-10-26T08:15:00.000Z');
@@ -317,11 +311,10 @@ async function packPkg(opts) {
317
311
  }
318
312
  async function createPublishManifest(opts) {
319
313
  const { projectDir, embedReadme, modulesDir, manifest, catalogs, hooks, skipManifestObfuscation } = opts;
320
- const readmeFile = embedReadme ? await readReadmeFile(projectDir) : undefined;
321
314
  return createExportableManifest(projectDir, manifest, {
322
315
  catalogs,
323
316
  hooks,
324
- readmeFile,
317
+ embedReadme,
325
318
  modulesDir,
326
319
  skipManifestObfuscation,
327
320
  });
@@ -1,4 +1,5 @@
1
1
  import { type Config } from '@pnpm/config.reader';
2
+ import type { ProjectsGraph } from '@pnpm/types';
2
3
  export declare function rcOptionsTypes(): Record<string, unknown>;
3
4
  export declare function cliOptionsTypes(): Record<string, unknown>;
4
5
  export declare const commandNames: string[];
@@ -12,6 +13,7 @@ interface VersionHandlerOptions extends Config {
12
13
  message?: string;
13
14
  preid?: string;
14
15
  recursive?: boolean;
16
+ selectedProjectsGraph?: ProjectsGraph;
15
17
  signGitTag?: boolean;
16
18
  tagVersionPrefix?: string;
17
19
  }
@@ -4,7 +4,6 @@ import { types as allTypes } from '@pnpm/config.reader';
4
4
  import { PnpmError } from '@pnpm/error';
5
5
  import { runLifecycleHook } from '@pnpm/exec.lifecycle';
6
6
  import { isGitRepo, isWorkingTreeClean } from '@pnpm/network.git-utils';
7
- import { filterProjectsFromDir } from '@pnpm/workspace.projects-filter';
8
7
  import { safeExeca as execa } from 'execa';
9
8
  import { pick } from 'ramda';
10
9
  import { renderHelp } from 'render-help';
@@ -110,21 +109,7 @@ export async function handler(opts, params) {
110
109
  }
111
110
  const changes = [];
112
111
  if (opts.recursive) {
113
- const workspaceDir = opts.workspaceDir || opts.dir;
114
- const filters = [];
115
- if (opts.filter && opts.filter.length > 0) {
116
- opts.filter.forEach(filterPattern => {
117
- filters.push({
118
- filter: filterPattern,
119
- followProdDepsOnly: !!opts.filterProd && opts.filterProd.length > 0,
120
- });
121
- });
122
- }
123
- const result = await filterProjectsFromDir(workspaceDir, filters, {
124
- workspaceDir,
125
- prefix: opts.dir,
126
- });
127
- const pkgDirs = Object.keys(result.selectedProjectsGraph);
112
+ const pkgDirs = Object.keys(opts.selectedProjectsGraph ?? {});
128
113
  const bumpResults = await Promise.all(pkgDirs.map(pkgDir => bumpPackageVersion(pkgDir, rawBump, explicitVersion, opts)));
129
114
  for (const change of bumpResults) {
130
115
  if (change) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/releasing.commands",
3
- "version": "1100.5.0",
3
+ "version": "1100.5.2",
4
4
  "description": "Commands for deploy, pack, and publish",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -10,9 +10,9 @@
10
10
  "funding": "https://opencollective.com/pnpm",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/pnpm/pnpm/tree/main/releasing/commands"
13
+ "url": "https://github.com/pnpm/pnpm/tree/main/pnpm11/releasing/commands"
14
14
  },
15
- "homepage": "https://github.com/pnpm/pnpm/tree/main/releasing/commands#readme",
15
+ "homepage": "https://github.com/pnpm/pnpm/tree/main/pnpm11/releasing/commands#readme",
16
16
  "bugs": {
17
17
  "url": "https://github.com/pnpm/pnpm/issues"
18
18
  },
@@ -53,33 +53,32 @@
53
53
  "write-yaml-file": "^6.0.0",
54
54
  "@pnpm/bins.resolver": "1100.0.8",
55
55
  "@pnpm/catalogs.types": "1100.0.0",
56
- "@pnpm/config.pick-registry-for-package": "1100.0.9",
57
- "@pnpm/config.reader": "1101.9.0",
58
- "@pnpm/engine.runtime.commands": "1100.1.5",
56
+ "@pnpm/cli.utils": "1101.0.13",
57
+ "@pnpm/cli.common-cli-options-help": "1100.0.2",
58
+ "@pnpm/config.reader": "1101.10.1",
59
59
  "@pnpm/deps.path": "1100.0.8",
60
+ "@pnpm/engine.runtime.commands": "1100.1.7",
61
+ "@pnpm/engine.runtime.node-resolver": "1101.1.9",
62
+ "@pnpm/error": "1100.0.1",
63
+ "@pnpm/exec.lifecycle": "1100.1.1",
64
+ "@pnpm/config.pick-registry-for-package": "1100.0.9",
65
+ "@pnpm/exec.pnpm-cli-runner": "1100.0.1",
66
+ "@pnpm/fetching.directory-fetcher": "1100.0.18",
60
67
  "@pnpm/constants": "1100.0.0",
61
- "@pnpm/engine.runtime.node-resolver": "1101.1.7",
62
- "@pnpm/error": "1100.0.0",
63
- "@pnpm/cli.utils": "1101.0.12",
64
- "@pnpm/fs.indexed-pkg-importer": "1100.0.14",
65
- "@pnpm/cli.common-cli-options-help": "1100.0.2",
66
68
  "@pnpm/fs.is-empty-dir-or-nothing": "1100.0.0",
67
- "@pnpm/installing.commands": "1100.9.0",
68
- "@pnpm/exec.lifecycle": "1100.0.18",
69
- "@pnpm/exec.pnpm-cli-runner": "1100.0.1",
70
- "@pnpm/fetching.directory-fetcher": "1100.0.17",
71
- "@pnpm/installing.client": "1100.2.8",
72
- "@pnpm/lockfile.types": "1100.0.11",
73
- "@pnpm/lockfile.fs": "1100.1.5",
74
- "@pnpm/network.web-auth": "1101.1.1",
75
- "@pnpm/releasing.exportable-manifest": "1100.1.6",
76
- "@pnpm/resolving.resolver-base": "1100.4.2",
77
- "@pnpm/network.fetch": "1100.1.3",
78
- "@pnpm/workspace.projects-filter": "1100.0.21",
79
- "@pnpm/network.auth-header": "1101.1.2",
80
- "@pnpm/types": "1101.3.2",
81
- "@pnpm/network.git-utils": "1100.0.1",
69
+ "@pnpm/fs.indexed-pkg-importer": "1100.0.16",
82
70
  "@pnpm/fs.packlist": "1100.0.1",
71
+ "@pnpm/lockfile.fs": "1100.1.7",
72
+ "@pnpm/installing.client": "1100.2.10",
73
+ "@pnpm/installing.commands": "1100.10.1",
74
+ "@pnpm/network.auth-header": "1101.1.3",
75
+ "@pnpm/network.fetch": "1100.1.4",
76
+ "@pnpm/network.web-auth": "1101.1.2",
77
+ "@pnpm/lockfile.types": "1100.0.12",
78
+ "@pnpm/network.git-utils": "1100.0.2",
79
+ "@pnpm/releasing.exportable-manifest": "1100.1.8",
80
+ "@pnpm/resolving.resolver-base": "1100.5.0",
81
+ "@pnpm/types": "1101.3.2",
83
82
  "@pnpm/workspace.projects-sorter": "1100.0.7"
84
83
  },
85
84
  "peerDependencies": {
@@ -103,16 +102,17 @@
103
102
  "tar": "^7.5.15",
104
103
  "undici": "^7.27.2",
105
104
  "write-yaml-file": "^6.0.0",
105
+ "@pnpm/assert-project": "1100.0.17",
106
+ "@pnpm/catalogs.config": "1100.0.2",
106
107
  "@pnpm/logger": "1100.0.0",
107
- "@pnpm/hooks.pnpmfile": "1100.0.15",
108
- "@pnpm/assert-project": "1100.0.16",
109
- "@pnpm/prepare": "1100.0.16",
108
+ "@pnpm/releasing.commands": "1100.5.2",
109
+ "@pnpm/hooks.pnpmfile": "1100.0.16",
110
+ "@pnpm/prepare": "1100.0.17",
110
111
  "@pnpm/test-fixtures": "1100.0.0",
111
- "@pnpm/releasing.commands": "1100.5.0",
112
112
  "@pnpm/test-ipc-server": "1100.0.0",
113
- "@pnpm/testing.command-defaults": "1100.0.6",
114
- "@pnpm/testing.registry-mock": "1100.0.6",
115
- "@pnpm/catalogs.config": "1100.0.0"
113
+ "@pnpm/workspace.projects-filter": "1100.0.23",
114
+ "@pnpm/testing.registry-mock": "1100.0.7",
115
+ "@pnpm/testing.command-defaults": "1100.0.7"
116
116
  },
117
117
  "engines": {
118
118
  "node": ">=22.13"