pnpm 7.4.0-1 → 7.4.0-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.
@@ -7,11 +7,11 @@ included:
7
7
  injectedDeps: {}
8
8
  layoutVersion: 5
9
9
  nodeLinker: hoisted
10
- packageManager: pnpm@7.4.0-0
10
+ packageManager: pnpm@7.4.0-1
11
11
  pendingBuilds:
12
12
  - /node-gyp/8.4.1
13
13
  - /encoding/0.1.13
14
- prunedAt: Fri, 24 Jun 2022 19:07:29 GMT
14
+ prunedAt: Sun, 26 Jun 2022 22:37:49 GMT
15
15
  publicHoistPattern:
16
16
  - '*eslint*'
17
17
  - '*prettier*'
package/dist/pnpm.cjs CHANGED
@@ -3182,7 +3182,7 @@ var require_lib4 = __commonJS({
3182
3182
  var load_json_file_1 = __importDefault(require_load_json_file());
3183
3183
  var defaultManifest = {
3184
3184
  name: "pnpm" != null && true ? "pnpm" : "pnpm",
3185
- version: "7.4.0-1" != null && true ? "7.4.0-1" : "0.0.0"
3185
+ version: "7.4.0-2" != null && true ? "7.4.0-2" : "0.0.0"
3186
3186
  };
3187
3187
  var pkgJson;
3188
3188
  if (require.main == null) {
@@ -23485,6 +23485,7 @@ var require_lib18 = __commonJS({
23485
23485
  "ignore-pnpmfile": Boolean,
23486
23486
  "ignore-workspace": Boolean,
23487
23487
  "ignore-workspace-root-check": Boolean,
23488
+ "include-workspace-root": Boolean,
23488
23489
  "legacy-dir-filtering": Boolean,
23489
23490
  "link-workspace-packages": [Boolean, "deep"],
23490
23491
  lockfile: Boolean,
@@ -125954,7 +125955,7 @@ var require_install = __commonJS({
125954
125955
  ctx.wantedLockfile.patchedDependencies = patchedDependencies;
125955
125956
  }
125956
125957
  const frozenLockfile = opts.frozenLockfile || opts.frozenLockfileIfExists && ctx.existsWantedLockfile;
125957
- if (!ctx.lockfileHadConflicts && !opts.lockfileOnly && !opts.update && !opts.fixLockfile && installsOnly && (frozenLockfile || opts.ignorePackageManifest || !needsFullResolution && opts.preferFrozenLockfile && (!opts.pruneLockfileImporters || Object.keys(ctx.wantedLockfile.importers).length === ctx.projects.length) && ctx.existsWantedLockfile && ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION && await (0, allProjectsAreUpToDate_1.default)(ctx.projects, {
125958
+ if (!ctx.lockfileHadConflicts && !opts.update && !opts.fixLockfile && installsOnly && (frozenLockfile || opts.ignorePackageManifest || !needsFullResolution && opts.preferFrozenLockfile && (!opts.pruneLockfileImporters || Object.keys(ctx.wantedLockfile.importers).length === ctx.projects.length) && ctx.existsWantedLockfile && ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION && await (0, allProjectsAreUpToDate_1.default)(ctx.projects, {
125958
125959
  linkWorkspacePackages: opts.linkWorkspacePackagesDepth >= 0,
125959
125960
  wantedLockfile: ctx.wantedLockfile,
125960
125961
  workspacePackages: opts.workspacePackages
@@ -125964,6 +125965,9 @@ var require_install = __commonJS({
125964
125965
  hint: 'Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"'
125965
125966
  });
125966
125967
  }
125968
+ if (opts.lockfileOnly) {
125969
+ return projects;
125970
+ }
125967
125971
  if (!ctx.existsWantedLockfile) {
125968
125972
  if (ctx.projects.some((project) => pkgHasDependencies(project.manifest))) {
125969
125973
  throw new Error(`Headless installation requires a ${constants_1.WANTED_LOCKFILE} file`);
@@ -128102,6 +128106,7 @@ var require_lib108 = __commonJS({
128102
128106
  return mod && mod.__esModule ? mod : { "default": mod };
128103
128107
  };
128104
128108
  Object.defineProperty(exports2, "__esModule", { value: true });
128109
+ var fs_1 = __importDefault(require("fs"));
128105
128110
  var path_1 = __importDefault(require("path"));
128106
128111
  var error_1 = __importDefault(require_lib8());
128107
128112
  var find_up_1 = __importDefault(require_find_up());
@@ -128109,13 +128114,20 @@ var require_lib108 = __commonJS({
128109
128114
  var WORKSPACE_MANIFEST_FILENAME = "pnpm-workspace.yaml";
128110
128115
  async function findWorkspaceDir(cwd) {
128111
128116
  const workspaceManifestDirEnvVar = process.env[WORKSPACE_DIR_ENV_VAR] ?? process.env[WORKSPACE_DIR_ENV_VAR.toLowerCase()];
128112
- const workspaceManifestLocation = workspaceManifestDirEnvVar ? path_1.default.join(workspaceManifestDirEnvVar, "pnpm-workspace.yaml") : await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, "pnpm-workspace.yml"], { cwd });
128117
+ const workspaceManifestLocation = workspaceManifestDirEnvVar ? path_1.default.join(workspaceManifestDirEnvVar, "pnpm-workspace.yaml") : await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, "pnpm-workspace.yml"], { cwd: await getRealPath(cwd) });
128113
128118
  if (workspaceManifestLocation?.endsWith(".yml")) {
128114
128119
  throw new error_1.default("BAD_WORKSPACE_MANIFEST_NAME", `The workspace manifest file should be named "pnpm-workspace.yaml". File found: ${workspaceManifestLocation}`);
128115
128120
  }
128116
128121
  return workspaceManifestLocation && path_1.default.dirname(workspaceManifestLocation);
128117
128122
  }
128118
128123
  exports2.default = findWorkspaceDir;
128124
+ async function getRealPath(path2) {
128125
+ return new Promise((resolve) => {
128126
+ fs_1.default.realpath.native(path2, function(err, resolvedPath) {
128127
+ resolve(err !== null ? path2 : resolvedPath);
128128
+ });
128129
+ });
128130
+ }
128119
128131
  }
128120
128132
  });
128121
128133
 
@@ -191772,7 +191784,8 @@ var require_cmd = __commonJS({
191772
191784
  "use-stderr",
191773
191785
  "ignore-workspace",
191774
191786
  "workspace-packages",
191775
- "workspace-root"
191787
+ "workspace-root",
191788
+ "include-workspace-root"
191776
191789
  ], config_1.types);
191777
191790
  var commands = [
191778
191791
  plugin_commands_installation_1.add,
@@ -192241,7 +192254,7 @@ var require_main2 = __commonJS({
192241
192254
  const relativeWSDirPath = () => path_1.default.relative(process.cwd(), wsDir) || ".";
192242
192255
  if (config.workspaceRoot) {
192243
192256
  filters.push({ filter: `{${relativeWSDirPath()}}`, followProdDepsOnly: false });
192244
- } else if (cmd === "run" || cmd === "exec" || cmd === "add" || cmd === "test") {
192257
+ } else if (!config.includeWorkspaceRoot && (cmd === "run" || cmd === "exec" || cmd === "add" || cmd === "test")) {
192245
192258
  filters.push({ filter: `!{${relativeWSDirPath()}}`, followProdDepsOnly: false });
192246
192259
  }
192247
192260
  const filterResults = await (0, filter_workspace_packages_1.filterPackages)(allProjects, filters, {
package/dist/pnpx.cjs CHANGED
@@ -17853,6 +17853,7 @@ var require_lib17 = __commonJS({
17853
17853
  "ignore-pnpmfile": Boolean,
17854
17854
  "ignore-workspace": Boolean,
17855
17855
  "ignore-workspace-root-check": Boolean,
17856
+ "include-workspace-root": Boolean,
17856
17857
  "legacy-dir-filtering": Boolean,
17857
17858
  "link-workspace-packages": [Boolean, "deep"],
17858
17859
  lockfile: Boolean,
@@ -120944,7 +120945,7 @@ var require_install = __commonJS({
120944
120945
  ctx.wantedLockfile.patchedDependencies = patchedDependencies;
120945
120946
  }
120946
120947
  const frozenLockfile = opts.frozenLockfile || opts.frozenLockfileIfExists && ctx.existsWantedLockfile;
120947
- if (!ctx.lockfileHadConflicts && !opts.lockfileOnly && !opts.update && !opts.fixLockfile && installsOnly && (frozenLockfile || opts.ignorePackageManifest || !needsFullResolution && opts.preferFrozenLockfile && (!opts.pruneLockfileImporters || Object.keys(ctx.wantedLockfile.importers).length === ctx.projects.length) && ctx.existsWantedLockfile && ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION && await (0, allProjectsAreUpToDate_1.default)(ctx.projects, {
120948
+ if (!ctx.lockfileHadConflicts && !opts.update && !opts.fixLockfile && installsOnly && (frozenLockfile || opts.ignorePackageManifest || !needsFullResolution && opts.preferFrozenLockfile && (!opts.pruneLockfileImporters || Object.keys(ctx.wantedLockfile.importers).length === ctx.projects.length) && ctx.existsWantedLockfile && ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION && await (0, allProjectsAreUpToDate_1.default)(ctx.projects, {
120948
120949
  linkWorkspacePackages: opts.linkWorkspacePackagesDepth >= 0,
120949
120950
  wantedLockfile: ctx.wantedLockfile,
120950
120951
  workspacePackages: opts.workspacePackages
@@ -120954,6 +120955,9 @@ var require_install = __commonJS({
120954
120955
  hint: 'Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"'
120955
120956
  });
120956
120957
  }
120958
+ if (opts.lockfileOnly) {
120959
+ return projects;
120960
+ }
120957
120961
  if (!ctx.existsWantedLockfile) {
120958
120962
  if (ctx.projects.some((project) => pkgHasDependencies(project.manifest))) {
120959
120963
  throw new Error(`Headless installation requires a ${constants_1.WANTED_LOCKFILE} file`);
@@ -123092,6 +123096,7 @@ var require_lib107 = __commonJS({
123092
123096
  return mod && mod.__esModule ? mod : { "default": mod };
123093
123097
  };
123094
123098
  Object.defineProperty(exports2, "__esModule", { value: true });
123099
+ var fs_1 = __importDefault2(require("fs"));
123095
123100
  var path_1 = __importDefault2(require("path"));
123096
123101
  var error_1 = __importDefault2(require_lib7());
123097
123102
  var find_up_1 = __importDefault2(require_find_up());
@@ -123099,13 +123104,20 @@ var require_lib107 = __commonJS({
123099
123104
  var WORKSPACE_MANIFEST_FILENAME = "pnpm-workspace.yaml";
123100
123105
  async function findWorkspaceDir(cwd) {
123101
123106
  const workspaceManifestDirEnvVar = process.env[WORKSPACE_DIR_ENV_VAR] ?? process.env[WORKSPACE_DIR_ENV_VAR.toLowerCase()];
123102
- const workspaceManifestLocation = workspaceManifestDirEnvVar ? path_1.default.join(workspaceManifestDirEnvVar, "pnpm-workspace.yaml") : await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, "pnpm-workspace.yml"], { cwd });
123107
+ const workspaceManifestLocation = workspaceManifestDirEnvVar ? path_1.default.join(workspaceManifestDirEnvVar, "pnpm-workspace.yaml") : await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, "pnpm-workspace.yml"], { cwd: await getRealPath(cwd) });
123103
123108
  if (workspaceManifestLocation?.endsWith(".yml")) {
123104
123109
  throw new error_1.default("BAD_WORKSPACE_MANIFEST_NAME", `The workspace manifest file should be named "pnpm-workspace.yaml". File found: ${workspaceManifestLocation}`);
123105
123110
  }
123106
123111
  return workspaceManifestLocation && path_1.default.dirname(workspaceManifestLocation);
123107
123112
  }
123108
123113
  exports2.default = findWorkspaceDir;
123114
+ async function getRealPath(path2) {
123115
+ return new Promise((resolve) => {
123116
+ fs_1.default.realpath.native(path2, function(err, resolvedPath) {
123117
+ resolve(err !== null ? path2 : resolvedPath);
123118
+ });
123119
+ });
123120
+ }
123109
123121
  }
123110
123122
  });
123111
123123
 
@@ -191772,7 +191784,8 @@ var require_cmd = __commonJS({
191772
191784
  "use-stderr",
191773
191785
  "ignore-workspace",
191774
191786
  "workspace-packages",
191775
- "workspace-root"
191787
+ "workspace-root",
191788
+ "include-workspace-root"
191776
191789
  ], config_1.types);
191777
191790
  var commands = [
191778
191791
  plugin_commands_installation_1.add,
@@ -192241,7 +192254,7 @@ var require_main2 = __commonJS({
192241
192254
  const relativeWSDirPath = () => path_1.default.relative(process.cwd(), wsDir) || ".";
192242
192255
  if (config.workspaceRoot) {
192243
192256
  filters.push({ filter: `{${relativeWSDirPath()}}`, followProdDepsOnly: false });
192244
- } else if (cmd === "run" || cmd === "exec" || cmd === "add" || cmd === "test") {
192257
+ } else if (!config.includeWorkspaceRoot && (cmd === "run" || cmd === "exec" || cmd === "add" || cmd === "test")) {
192245
192258
  filters.push({ filter: `!{${relativeWSDirPath()}}`, followProdDepsOnly: false });
192246
192259
  }
192247
192260
  const filterResults = await (0, filter_workspace_packages_1.filterPackages)(allProjects, filters, {
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": "7.4.0-1",
4
+ "version": "7.4.0-2",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"
@@ -22,37 +22,37 @@
22
22
  "@pnpm/assert-project": "workspace:*",
23
23
  "@pnpm/byline": "^1.0.0",
24
24
  "@pnpm/cli-meta": "workspace:3.0.5",
25
- "@pnpm/cli-utils": "workspace:0.7.15",
25
+ "@pnpm/cli-utils": "workspace:0.7.16",
26
26
  "@pnpm/client": "workspace:7.1.7",
27
27
  "@pnpm/command": "workspace:3.0.0",
28
28
  "@pnpm/common-cli-options-help": "workspace:0.9.0",
29
- "@pnpm/config": "workspace:15.4.1",
29
+ "@pnpm/config": "workspace:15.5.0",
30
30
  "@pnpm/constants": "workspace:6.1.0",
31
31
  "@pnpm/core-loggers": "workspace:7.0.5",
32
- "@pnpm/default-reporter": "workspace:9.1.5",
32
+ "@pnpm/default-reporter": "workspace:9.1.6",
33
33
  "@pnpm/file-reporter": "workspace:3.0.0",
34
- "@pnpm/filter-workspace-packages": "workspace:5.0.15",
35
- "@pnpm/find-workspace-dir": "workspace:4.0.1",
36
- "@pnpm/find-workspace-packages": "workspace:4.0.15",
34
+ "@pnpm/filter-workspace-packages": "workspace:5.0.16",
35
+ "@pnpm/find-workspace-dir": "workspace:4.0.2",
36
+ "@pnpm/find-workspace-packages": "workspace:4.0.16",
37
37
  "@pnpm/lockfile-types": "workspace:4.2.0",
38
38
  "@pnpm/logger": "^4.0.0",
39
39
  "@pnpm/modules-yaml": "workspace:10.0.5",
40
40
  "@pnpm/nopt": "^0.2.1",
41
- "@pnpm/parse-cli-args": "workspace:5.0.1",
41
+ "@pnpm/parse-cli-args": "workspace:5.0.2",
42
42
  "@pnpm/pick-registry-for-package": "workspace:3.0.5",
43
- "@pnpm/plugin-commands-audit": "workspace:6.0.15",
44
- "@pnpm/plugin-commands-env": "workspace:2.1.14",
45
- "@pnpm/plugin-commands-init": "workspace:1.0.15",
46
- "@pnpm/plugin-commands-installation": "workspace:10.3.1",
47
- "@pnpm/plugin-commands-listing": "workspace:5.0.15",
48
- "@pnpm/plugin-commands-outdated": "workspace:6.0.15",
49
- "@pnpm/plugin-commands-patching": "workspace:1.0.1",
50
- "@pnpm/plugin-commands-publishing": "workspace:5.1.2",
51
- "@pnpm/plugin-commands-rebuild": "workspace:6.1.14",
52
- "@pnpm/plugin-commands-script-runners": "workspace:5.0.18",
53
- "@pnpm/plugin-commands-server": "workspace:4.0.15",
54
- "@pnpm/plugin-commands-setup": "workspace:2.0.16",
55
- "@pnpm/plugin-commands-store": "workspace:5.1.14",
43
+ "@pnpm/plugin-commands-audit": "workspace:6.0.16",
44
+ "@pnpm/plugin-commands-env": "workspace:2.1.15",
45
+ "@pnpm/plugin-commands-init": "workspace:1.0.16",
46
+ "@pnpm/plugin-commands-installation": "workspace:10.3.2",
47
+ "@pnpm/plugin-commands-listing": "workspace:5.0.16",
48
+ "@pnpm/plugin-commands-outdated": "workspace:6.0.16",
49
+ "@pnpm/plugin-commands-patching": "workspace:1.0.2",
50
+ "@pnpm/plugin-commands-publishing": "workspace:5.1.3",
51
+ "@pnpm/plugin-commands-rebuild": "workspace:6.1.15",
52
+ "@pnpm/plugin-commands-script-runners": "workspace:5.0.19",
53
+ "@pnpm/plugin-commands-server": "workspace:4.0.16",
54
+ "@pnpm/plugin-commands-setup": "workspace:2.0.17",
55
+ "@pnpm/plugin-commands-store": "workspace:5.1.15",
56
56
  "@pnpm/prepare": "workspace:*",
57
57
  "@pnpm/read-package-json": "workspace:6.0.6",
58
58
  "@pnpm/read-project-manifest": "workspace:3.0.6",