pnpm 6.32.18 → 6.32.19

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.
@@ -11,7 +11,7 @@ packageManager: pnpm@7.0.0-alpha.2
11
11
  pendingBuilds:
12
12
  - /node-gyp/8.4.1
13
13
  - /encoding/0.1.13
14
- prunedAt: Fri, 27 May 2022 01:19:59 GMT
14
+ prunedAt: Sun, 29 May 2022 09:09:01 GMT
15
15
  publicHoistPattern:
16
16
  - '*types*'
17
17
  - '*eslint*'
@@ -154,7 +154,7 @@ packages:
154
154
  optional: true
155
155
 
156
156
  /console-control-strings/1.1.0:
157
- resolution: {integrity: sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=}
157
+ resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
158
158
  dev: false
159
159
  optional: true
160
160
 
@@ -172,12 +172,12 @@ packages:
172
172
  optional: true
173
173
 
174
174
  /delegates/1.0.0:
175
- resolution: {integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=}
175
+ resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}
176
176
  dev: false
177
177
  optional: true
178
178
 
179
179
  /depd/1.1.2:
180
- resolution: {integrity: sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=}
180
+ resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==}
181
181
  engines: {node: '>= 0.6'}
182
182
  dev: false
183
183
  optional: true
@@ -215,7 +215,7 @@ packages:
215
215
  optional: true
216
216
 
217
217
  /fs.realpath/1.0.0:
218
- resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}
218
+ resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
219
219
  dev: false
220
220
  optional: true
221
221
 
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: "6.32.18" != null && true ? "6.32.18" : "0.0.0"
3185
+ version: "6.32.19" != null && true ? "6.32.19" : "0.0.0"
3186
3186
  };
3187
3187
  var pkgJson;
3188
3188
  if (require.main == null) {
@@ -110913,6 +110913,49 @@ var require_lib87 = __commonJS({
110913
110913
  }
110914
110914
  });
110915
110915
 
110916
+ // ../build-modules/lib/buildSequence.js
110917
+ var require_buildSequence = __commonJS({
110918
+ "../build-modules/lib/buildSequence.js"(exports2) {
110919
+ "use strict";
110920
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
110921
+ return mod && mod.__esModule ? mod : { "default": mod };
110922
+ };
110923
+ Object.defineProperty(exports2, "__esModule", { value: true });
110924
+ var graph_sequencer_1 = __importDefault(require_graph_sequencer());
110925
+ var filter_1 = __importDefault(require_filter3());
110926
+ function buildSequence(depGraph, rootDepPaths) {
110927
+ const nodesToBuild = /* @__PURE__ */ new Set();
110928
+ getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
110929
+ const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
110930
+ const nodesToBuildArray = Array.from(nodesToBuild);
110931
+ const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
110932
+ const graphSequencerResult = (0, graph_sequencer_1.default)({
110933
+ graph,
110934
+ groups: [nodesToBuildArray]
110935
+ });
110936
+ const chunks = graphSequencerResult.chunks;
110937
+ return chunks;
110938
+ }
110939
+ exports2.default = buildSequence;
110940
+ function getSubgraphToBuild(graph, entryNodes, nodesToBuild, walked) {
110941
+ let currentShouldBeBuilt = false;
110942
+ for (const depPath of entryNodes) {
110943
+ if (!graph[depPath])
110944
+ continue;
110945
+ if (walked.has(depPath))
110946
+ continue;
110947
+ walked.add(depPath);
110948
+ const childShouldBeBuilt = getSubgraphToBuild(graph, Object.values(graph[depPath].children), nodesToBuild, walked) || graph[depPath].requiresBuild;
110949
+ if (childShouldBeBuilt) {
110950
+ nodesToBuild.add(depPath);
110951
+ currentShouldBeBuilt = true;
110952
+ }
110953
+ }
110954
+ return currentShouldBeBuilt;
110955
+ }
110956
+ }
110957
+ });
110958
+
110916
110959
  // ../build-modules/lib/index.js
110917
110960
  var require_lib88 = __commonJS({
110918
110961
  "../build-modules/lib/index.js"(exports2) {
@@ -110962,22 +111005,12 @@ var require_lib88 = __commonJS({
110962
111005
  var logger_1 = __importDefault(require_lib6());
110963
111006
  var read_package_json_1 = require_lib34();
110964
111007
  var run_groups_1 = __importDefault(require_lib72());
110965
- var graph_sequencer_1 = __importDefault(require_graph_sequencer());
110966
- var filter_1 = __importDefault(require_filter3());
111008
+ var buildSequence_1 = __importDefault(require_buildSequence());
110967
111009
  exports2.default = async (depGraph, rootDepPaths, opts) => {
110968
111010
  var _a;
110969
111011
  const warn = (message2) => logger_1.default.warn({ message: message2, prefix: opts.lockfileDir });
110970
- const nodesToBuild = /* @__PURE__ */ new Set();
110971
- getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
110972
- const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
110973
- const nodesToBuildArray = Array.from(nodesToBuild);
110974
- const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
110975
- const graphSequencerResult = (0, graph_sequencer_1.default)({
110976
- graph,
110977
- groups: [nodesToBuildArray]
110978
- });
110979
- const chunks = graphSequencerResult.chunks;
110980
111012
  const buildDepOpts = { ...opts, warn };
111013
+ const chunks = (0, buildSequence_1.default)(depGraph, rootDepPaths);
110981
111014
  const groups = chunks.map((chunk) => {
110982
111015
  chunk = chunk.filter((depPath) => depGraph[depPath].requiresBuild && !depGraph[depPath].isBuilt);
110983
111016
  if (opts.depsToBuild != null) {
@@ -111044,25 +111077,6 @@ var require_lib88 = __commonJS({
111044
111077
  throw err;
111045
111078
  }
111046
111079
  }
111047
- function getSubgraphToBuild(graph, entryNodes, nodesToBuild, walked) {
111048
- let currentShouldBeBuilt = false;
111049
- for (const depPath of entryNodes) {
111050
- if (!graph[depPath])
111051
- continue;
111052
- if (nodesToBuild.has(depPath)) {
111053
- currentShouldBeBuilt = true;
111054
- }
111055
- if (walked.has(depPath))
111056
- continue;
111057
- walked.add(depPath);
111058
- const childShouldBeBuilt = getSubgraphToBuild(graph, Object.values(graph[depPath].children), nodesToBuild, walked) || graph[depPath].requiresBuild;
111059
- if (childShouldBeBuilt) {
111060
- nodesToBuild.add(depPath);
111061
- currentShouldBeBuilt = true;
111062
- }
111063
- }
111064
- return currentShouldBeBuilt;
111065
- }
111066
111080
  async function linkBinsOfDependencies(depNode, depGraph, opts) {
111067
111081
  const childrenToLink = opts.optional ? depNode.children : Object.keys(depNode.children).reduce((nonOptionalChildren, childAlias) => {
111068
111082
  if (!depNode.optionalDependencies.has(childAlias)) {
@@ -115780,8 +115794,8 @@ var require_nodeIdUtils = __commonJS({
115780
115794
  const pkg1Index = pkgIds.indexOf(pkgId1);
115781
115795
  if (pkg1Index === -1)
115782
115796
  return false;
115783
- const pkg2Index = pkgIds.indexOf(pkgId2);
115784
- return pkg2Index > -1 && pkg1Index < pkg2Index;
115797
+ const pkg2Index = pkgIds.lastIndexOf(pkgId2);
115798
+ return pkg1Index < pkg2Index;
115785
115799
  }
115786
115800
  exports2.nodeIdContainsSequence = nodeIdContainsSequence;
115787
115801
  function createNodeId(parentNodeId, pkgId) {
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": "6.32.18",
4
+ "version": "6.32.19",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"
@@ -42,12 +42,12 @@
42
42
  "@pnpm/pick-registry-for-package": "workspace:2.0.11",
43
43
  "@pnpm/plugin-commands-audit": "workspace:5.1.50",
44
44
  "@pnpm/plugin-commands-env": "workspace:1.4.24",
45
- "@pnpm/plugin-commands-installation": "workspace:8.4.19",
45
+ "@pnpm/plugin-commands-installation": "workspace:8.4.20",
46
46
  "@pnpm/plugin-commands-listing": "workspace:4.1.19",
47
47
  "@pnpm/plugin-commands-outdated": "workspace:5.1.18",
48
48
  "@pnpm/plugin-commands-publishing": "workspace:4.5.12",
49
49
  "@pnpm/plugin-commands-rebuild": "workspace:5.4.25",
50
- "@pnpm/plugin-commands-script-runners": "workspace:4.6.13",
50
+ "@pnpm/plugin-commands-script-runners": "workspace:4.6.14",
51
51
  "@pnpm/plugin-commands-server": "workspace:3.0.80",
52
52
  "@pnpm/plugin-commands-setup": "workspace:1.1.44",
53
53
  "@pnpm/plugin-commands-store": "workspace:4.1.23",