pnpm 7.1.6 → 7.1.7

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.1.5
10
+ packageManager: pnpm@7.1.6
11
11
  pendingBuilds:
12
12
  - /node-gyp/8.4.1
13
13
  - /encoding/0.1.13
14
- prunedAt: Fri, 27 May 2022 00:51:55 GMT
14
+ prunedAt: Sun, 29 May 2022 09:14:06 GMT
15
15
  publicHoistPattern:
16
16
  - '*eslint*'
17
17
  - '*prettier*'
@@ -156,7 +156,7 @@ packages:
156
156
  optional: true
157
157
 
158
158
  /console-control-strings/1.1.0:
159
- resolution: {integrity: sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=}
159
+ resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
160
160
  dev: false
161
161
  optional: true
162
162
 
@@ -174,12 +174,12 @@ packages:
174
174
  optional: true
175
175
 
176
176
  /delegates/1.0.0:
177
- resolution: {integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=}
177
+ resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}
178
178
  dev: false
179
179
  optional: true
180
180
 
181
181
  /depd/1.1.2:
182
- resolution: {integrity: sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=}
182
+ resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==}
183
183
  engines: {node: '>= 0.6'}
184
184
  dev: false
185
185
  optional: true
@@ -217,7 +217,7 @@ packages:
217
217
  optional: true
218
218
 
219
219
  /fs.realpath/1.0.0:
220
- resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}
220
+ resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
221
221
  dev: false
222
222
  optional: true
223
223
 
@@ -254,7 +254,7 @@ packages:
254
254
  optional: true
255
255
 
256
256
  /has-unicode/2.0.1:
257
- resolution: {integrity: sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=}
257
+ resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}
258
258
  dev: false
259
259
  optional: true
260
260
 
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.1.6" != null && true ? "7.1.6" : "0.0.0"
3185
+ version: "7.1.7" != null && true ? "7.1.7" : "0.0.0"
3186
3186
  };
3187
3187
  var pkgJson;
3188
3188
  if (require.main == null) {
@@ -109617,6 +109617,49 @@ var require_lib87 = __commonJS({
109617
109617
  }
109618
109618
  });
109619
109619
 
109620
+ // ../build-modules/lib/buildSequence.js
109621
+ var require_buildSequence = __commonJS({
109622
+ "../build-modules/lib/buildSequence.js"(exports2) {
109623
+ "use strict";
109624
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
109625
+ return mod && mod.__esModule ? mod : { "default": mod };
109626
+ };
109627
+ Object.defineProperty(exports2, "__esModule", { value: true });
109628
+ var graph_sequencer_1 = __importDefault(require_graph_sequencer());
109629
+ var filter_1 = __importDefault(require_filter3());
109630
+ function buildSequence(depGraph, rootDepPaths) {
109631
+ const nodesToBuild = /* @__PURE__ */ new Set();
109632
+ getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
109633
+ const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
109634
+ const nodesToBuildArray = Array.from(nodesToBuild);
109635
+ const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
109636
+ const graphSequencerResult = (0, graph_sequencer_1.default)({
109637
+ graph,
109638
+ groups: [nodesToBuildArray]
109639
+ });
109640
+ const chunks = graphSequencerResult.chunks;
109641
+ return chunks;
109642
+ }
109643
+ exports2.default = buildSequence;
109644
+ function getSubgraphToBuild(graph, entryNodes, nodesToBuild, walked) {
109645
+ let currentShouldBeBuilt = false;
109646
+ for (const depPath of entryNodes) {
109647
+ if (!graph[depPath])
109648
+ continue;
109649
+ if (walked.has(depPath))
109650
+ continue;
109651
+ walked.add(depPath);
109652
+ const childShouldBeBuilt = getSubgraphToBuild(graph, Object.values(graph[depPath].children), nodesToBuild, walked) || graph[depPath].requiresBuild;
109653
+ if (childShouldBeBuilt) {
109654
+ nodesToBuild.add(depPath);
109655
+ currentShouldBeBuilt = true;
109656
+ }
109657
+ }
109658
+ return currentShouldBeBuilt;
109659
+ }
109660
+ }
109661
+ });
109662
+
109620
109663
  // ../build-modules/lib/index.js
109621
109664
  var require_lib88 = __commonJS({
109622
109665
  "../build-modules/lib/index.js"(exports2) {
@@ -109666,21 +109709,11 @@ var require_lib88 = __commonJS({
109666
109709
  var logger_1 = __importDefault(require_lib6());
109667
109710
  var read_package_json_1 = require_lib35();
109668
109711
  var run_groups_1 = __importDefault(require_lib78());
109669
- var graph_sequencer_1 = __importDefault(require_graph_sequencer());
109670
- var filter_1 = __importDefault(require_filter3());
109712
+ var buildSequence_1 = __importDefault(require_buildSequence());
109671
109713
  exports2.default = async (depGraph, rootDepPaths, opts) => {
109672
109714
  const warn = (message2) => logger_1.default.warn({ message: message2, prefix: opts.lockfileDir });
109673
- const nodesToBuild = /* @__PURE__ */ new Set();
109674
- getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
109675
- const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
109676
- const nodesToBuildArray = Array.from(nodesToBuild);
109677
- const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
109678
- const graphSequencerResult = (0, graph_sequencer_1.default)({
109679
- graph,
109680
- groups: [nodesToBuildArray]
109681
- });
109682
- const chunks = graphSequencerResult.chunks;
109683
109715
  const buildDepOpts = { ...opts, warn };
109716
+ const chunks = (0, buildSequence_1.default)(depGraph, rootDepPaths);
109684
109717
  const groups = chunks.map((chunk) => {
109685
109718
  chunk = chunk.filter((depPath) => depGraph[depPath].requiresBuild && !depGraph[depPath].isBuilt);
109686
109719
  if (opts.depsToBuild != null) {
@@ -109747,25 +109780,6 @@ var require_lib88 = __commonJS({
109747
109780
  throw err;
109748
109781
  }
109749
109782
  }
109750
- function getSubgraphToBuild(graph, entryNodes, nodesToBuild, walked) {
109751
- let currentShouldBeBuilt = false;
109752
- for (const depPath of entryNodes) {
109753
- if (!graph[depPath])
109754
- continue;
109755
- if (nodesToBuild.has(depPath)) {
109756
- currentShouldBeBuilt = true;
109757
- }
109758
- if (walked.has(depPath))
109759
- continue;
109760
- walked.add(depPath);
109761
- const childShouldBeBuilt = getSubgraphToBuild(graph, Object.values(graph[depPath].children), nodesToBuild, walked) || graph[depPath].requiresBuild;
109762
- if (childShouldBeBuilt) {
109763
- nodesToBuild.add(depPath);
109764
- currentShouldBeBuilt = true;
109765
- }
109766
- }
109767
- return currentShouldBeBuilt;
109768
- }
109769
109783
  async function linkBinsOfDependencies(depNode, depGraph, opts) {
109770
109784
  const childrenToLink = opts.optional ? depNode.children : Object.keys(depNode.children).reduce((nonOptionalChildren, childAlias) => {
109771
109785
  if (!depNode.optionalDependencies.has(childAlias)) {
@@ -115454,8 +115468,8 @@ var require_nodeIdUtils = __commonJS({
115454
115468
  const pkg1Index = pkgIds.indexOf(pkgId1);
115455
115469
  if (pkg1Index === -1)
115456
115470
  return false;
115457
- const pkg2Index = pkgIds.indexOf(pkgId2);
115458
- return pkg2Index > -1 && pkg1Index < pkg2Index;
115471
+ const pkg2Index = pkgIds.lastIndexOf(pkgId2);
115472
+ return pkg1Index < pkg2Index;
115459
115473
  }
115460
115474
  exports2.nodeIdContainsSequence = nodeIdContainsSequence;
115461
115475
  function createNodeId(parentNodeId, pkgId) {
package/dist/pnpx.cjs CHANGED
@@ -104607,6 +104607,49 @@ var require_lib86 = __commonJS({
104607
104607
  }
104608
104608
  });
104609
104609
 
104610
+ // ../build-modules/lib/buildSequence.js
104611
+ var require_buildSequence = __commonJS({
104612
+ "../build-modules/lib/buildSequence.js"(exports2) {
104613
+ "use strict";
104614
+ var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
104615
+ return mod && mod.__esModule ? mod : { "default": mod };
104616
+ };
104617
+ Object.defineProperty(exports2, "__esModule", { value: true });
104618
+ var graph_sequencer_1 = __importDefault2(require_graph_sequencer());
104619
+ var filter_1 = __importDefault2(require_filter3());
104620
+ function buildSequence(depGraph, rootDepPaths) {
104621
+ const nodesToBuild = /* @__PURE__ */ new Set();
104622
+ getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
104623
+ const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
104624
+ const nodesToBuildArray = Array.from(nodesToBuild);
104625
+ const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
104626
+ const graphSequencerResult = (0, graph_sequencer_1.default)({
104627
+ graph,
104628
+ groups: [nodesToBuildArray]
104629
+ });
104630
+ const chunks = graphSequencerResult.chunks;
104631
+ return chunks;
104632
+ }
104633
+ exports2.default = buildSequence;
104634
+ function getSubgraphToBuild(graph, entryNodes, nodesToBuild, walked) {
104635
+ let currentShouldBeBuilt = false;
104636
+ for (const depPath of entryNodes) {
104637
+ if (!graph[depPath])
104638
+ continue;
104639
+ if (walked.has(depPath))
104640
+ continue;
104641
+ walked.add(depPath);
104642
+ const childShouldBeBuilt = getSubgraphToBuild(graph, Object.values(graph[depPath].children), nodesToBuild, walked) || graph[depPath].requiresBuild;
104643
+ if (childShouldBeBuilt) {
104644
+ nodesToBuild.add(depPath);
104645
+ currentShouldBeBuilt = true;
104646
+ }
104647
+ }
104648
+ return currentShouldBeBuilt;
104649
+ }
104650
+ }
104651
+ });
104652
+
104610
104653
  // ../build-modules/lib/index.js
104611
104654
  var require_lib87 = __commonJS({
104612
104655
  "../build-modules/lib/index.js"(exports2) {
@@ -104656,21 +104699,11 @@ var require_lib87 = __commonJS({
104656
104699
  var logger_1 = __importDefault2(require_lib());
104657
104700
  var read_package_json_1 = require_lib34();
104658
104701
  var run_groups_1 = __importDefault2(require_lib77());
104659
- var graph_sequencer_1 = __importDefault2(require_graph_sequencer());
104660
- var filter_1 = __importDefault2(require_filter3());
104702
+ var buildSequence_1 = __importDefault2(require_buildSequence());
104661
104703
  exports2.default = async (depGraph, rootDepPaths, opts) => {
104662
104704
  const warn = (message2) => logger_1.default.warn({ message: message2, prefix: opts.lockfileDir });
104663
- const nodesToBuild = /* @__PURE__ */ new Set();
104664
- getSubgraphToBuild(depGraph, rootDepPaths, nodesToBuild, /* @__PURE__ */ new Set());
104665
- const onlyFromBuildGraph = (0, filter_1.default)((depPath) => nodesToBuild.has(depPath));
104666
- const nodesToBuildArray = Array.from(nodesToBuild);
104667
- const graph = new Map(nodesToBuildArray.map((depPath) => [depPath, onlyFromBuildGraph(Object.values(depGraph[depPath].children))]));
104668
- const graphSequencerResult = (0, graph_sequencer_1.default)({
104669
- graph,
104670
- groups: [nodesToBuildArray]
104671
- });
104672
- const chunks = graphSequencerResult.chunks;
104673
104705
  const buildDepOpts = { ...opts, warn };
104706
+ const chunks = (0, buildSequence_1.default)(depGraph, rootDepPaths);
104674
104707
  const groups = chunks.map((chunk) => {
104675
104708
  chunk = chunk.filter((depPath) => depGraph[depPath].requiresBuild && !depGraph[depPath].isBuilt);
104676
104709
  if (opts.depsToBuild != null) {
@@ -104737,25 +104770,6 @@ var require_lib87 = __commonJS({
104737
104770
  throw err;
104738
104771
  }
104739
104772
  }
104740
- function getSubgraphToBuild(graph, entryNodes, nodesToBuild, walked) {
104741
- let currentShouldBeBuilt = false;
104742
- for (const depPath of entryNodes) {
104743
- if (!graph[depPath])
104744
- continue;
104745
- if (nodesToBuild.has(depPath)) {
104746
- currentShouldBeBuilt = true;
104747
- }
104748
- if (walked.has(depPath))
104749
- continue;
104750
- walked.add(depPath);
104751
- const childShouldBeBuilt = getSubgraphToBuild(graph, Object.values(graph[depPath].children), nodesToBuild, walked) || graph[depPath].requiresBuild;
104752
- if (childShouldBeBuilt) {
104753
- nodesToBuild.add(depPath);
104754
- currentShouldBeBuilt = true;
104755
- }
104756
- }
104757
- return currentShouldBeBuilt;
104758
- }
104759
104773
  async function linkBinsOfDependencies(depNode, depGraph, opts) {
104760
104774
  const childrenToLink = opts.optional ? depNode.children : Object.keys(depNode.children).reduce((nonOptionalChildren, childAlias) => {
104761
104775
  if (!depNode.optionalDependencies.has(childAlias)) {
@@ -110444,8 +110458,8 @@ var require_nodeIdUtils = __commonJS({
110444
110458
  const pkg1Index = pkgIds.indexOf(pkgId1);
110445
110459
  if (pkg1Index === -1)
110446
110460
  return false;
110447
- const pkg2Index = pkgIds.indexOf(pkgId2);
110448
- return pkg2Index > -1 && pkg1Index < pkg2Index;
110461
+ const pkg2Index = pkgIds.lastIndexOf(pkgId2);
110462
+ return pkg1Index < pkg2Index;
110449
110463
  }
110450
110464
  exports2.nodeIdContainsSequence = nodeIdContainsSequence;
110451
110465
  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": "7.1.6",
4
+ "version": "7.1.7",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"
@@ -43,12 +43,12 @@
43
43
  "@pnpm/plugin-commands-audit": "workspace:6.0.9",
44
44
  "@pnpm/plugin-commands-env": "workspace:2.1.8",
45
45
  "@pnpm/plugin-commands-init": "workspace:1.0.9",
46
- "@pnpm/plugin-commands-installation": "workspace:10.0.9",
46
+ "@pnpm/plugin-commands-installation": "workspace:10.0.10",
47
47
  "@pnpm/plugin-commands-listing": "workspace:5.0.9",
48
48
  "@pnpm/plugin-commands-outdated": "workspace:6.0.9",
49
49
  "@pnpm/plugin-commands-publishing": "workspace:5.0.10",
50
50
  "@pnpm/plugin-commands-rebuild": "workspace:6.1.8",
51
- "@pnpm/plugin-commands-script-runners": "workspace:5.0.10",
51
+ "@pnpm/plugin-commands-script-runners": "workspace:5.0.11",
52
52
  "@pnpm/plugin-commands-server": "workspace:4.0.9",
53
53
  "@pnpm/plugin-commands-setup": "workspace:2.0.10",
54
54
  "@pnpm/plugin-commands-store": "workspace:5.1.8",