mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-06 22:18:17 -05:00
fix: use @pnpm/graph-sequencer instead of graph-sequencer (#4458)
This commit is contained in:
8
.changeset/eighty-shoes-grow.md
Normal file
8
.changeset/eighty-shoes-grow.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"@pnpm/build-modules": patch
|
||||
"@pnpm/core": patch
|
||||
"@pnpm/plugin-commands-rebuild": patch
|
||||
"@pnpm/sort-packages": patch
|
||||
---
|
||||
|
||||
Use `@pnpm/graph-sequencer` instead of `graph-sequencer`.
|
||||
@@ -40,7 +40,7 @@
|
||||
"@pnpm/read-package-json": "workspace:6.0.0",
|
||||
"@pnpm/store-controller-types": "workspace:13.0.0",
|
||||
"@pnpm/types": "workspace:8.0.0",
|
||||
"graph-sequencer": "2.0.0",
|
||||
"@pnpm/graph-sequencer": "1.0.0",
|
||||
"ramda": "^0.27.1",
|
||||
"run-groups": "^3.0.1"
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@ import { fromDir as readPackageFromDir } from '@pnpm/read-package-json'
|
||||
import { StoreController } from '@pnpm/store-controller-types'
|
||||
import { DependencyManifest, PackageManifest } from '@pnpm/types'
|
||||
import runGroups from 'run-groups'
|
||||
import graphSequencer from 'graph-sequencer'
|
||||
import graphSequencer from '@pnpm/graph-sequencer'
|
||||
import filter from 'ramda/src/filter'
|
||||
|
||||
export { DepsStateCache }
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
"@zkochan/npm-package-arg": "^2.0.1",
|
||||
"@zkochan/rimraf": "^2.1.2",
|
||||
"dependency-path": "workspace:9.0.0",
|
||||
"graph-sequencer": "2.0.0",
|
||||
"@pnpm/graph-sequencer": "1.0.0",
|
||||
"is-inner-link": "^4.0.0",
|
||||
"load-json-file": "^6.2.0",
|
||||
"normalize-path": "^3.0.0",
|
||||
|
||||
@@ -120,7 +120,7 @@ export async function handler (
|
||||
// Check and warn if there are cyclic dependencies
|
||||
if (!sequencedGraph.safe) {
|
||||
const cyclicDependenciesInfo = sequencedGraph.cycles.length > 0
|
||||
? `: ${sequencedGraph.cycles.map(deps => deps.join(', ')).join('; ')}`
|
||||
? `: ${sequencedGraph.cycles.map(deps => deps.join(', ')).join('; ')}` // eslint-disable-line
|
||||
: ''
|
||||
logger.warn({
|
||||
message: `There are cyclic workspace dependencies${cyclicDependenciesInfo}`,
|
||||
|
||||
@@ -134,7 +134,7 @@ when running add/update with the --workspace option')
|
||||
// Check and warn if there are cyclic dependencies
|
||||
if (!sequencedGraph.safe) {
|
||||
const cyclicDependenciesInfo = sequencedGraph.cycles.length > 0
|
||||
? `: ${sequencedGraph.cycles.map(deps => deps.join(', ')).join('; ')}`
|
||||
? `: ${sequencedGraph.cycles.map(deps => deps.join(', ')).join('; ')}` // eslint-disable-line
|
||||
: ''
|
||||
logger.warn({
|
||||
message: `There are cyclic workspace dependencies${cyclicDependenciesInfo}`,
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
"@zkochan/npm-package-arg": "^2.0.1",
|
||||
"camelcase-keys": "^6.2.2",
|
||||
"dependency-path": "workspace:9.0.0",
|
||||
"graph-sequencer": "2.0.0",
|
||||
"@pnpm/graph-sequencer": "1.0.0",
|
||||
"load-json-file": "^6.2.0",
|
||||
"mem": "^8.0.0",
|
||||
"p-limit": "^3.1.0",
|
||||
|
||||
@@ -24,7 +24,7 @@ import { ProjectManifest } from '@pnpm/types'
|
||||
import * as dp from 'dependency-path'
|
||||
import runGroups from 'run-groups'
|
||||
import npa from '@zkochan/npm-package-arg'
|
||||
import graphSequencer from 'graph-sequencer'
|
||||
import graphSequencer from '@pnpm/graph-sequencer'
|
||||
import pLimit from 'p-limit'
|
||||
import semver from 'semver'
|
||||
import extendOptions, {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/sort-packages#readme",
|
||||
"dependencies": {
|
||||
"@pnpm/types": "workspace:8.0.0",
|
||||
"graph-sequencer": "2.0.0"
|
||||
"@pnpm/graph-sequencer": "1.0.0"
|
||||
},
|
||||
"funding": "https://opencollective.com/pnpm",
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ProjectsGraph } from '@pnpm/types'
|
||||
import graphSequencer from 'graph-sequencer'
|
||||
import type { Result as GraphSequencerResult } from 'graph-sequencer'
|
||||
import graphSequencer from '@pnpm/graph-sequencer'
|
||||
import type { Result as GraphSequencerResult } from '@pnpm/graph-sequencer'
|
||||
|
||||
export function sequenceGraph (pkgGraph: ProjectsGraph): GraphSequencerResult<string> {
|
||||
const keys = Object.keys(pkgGraph)
|
||||
|
||||
31
pnpm-lock.yaml
generated
31
pnpm-lock.yaml
generated
@@ -175,6 +175,7 @@ importers:
|
||||
'@pnpm/build-modules': workspace:9.0.0
|
||||
'@pnpm/calc-dep-state': workspace:2.0.0
|
||||
'@pnpm/core-loggers': workspace:7.0.0
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/lifecycle': workspace:13.0.0
|
||||
'@pnpm/link-bins': workspace:7.0.0
|
||||
'@pnpm/logger': ^4.0.0
|
||||
@@ -182,18 +183,17 @@ importers:
|
||||
'@pnpm/store-controller-types': workspace:13.0.0
|
||||
'@pnpm/types': workspace:8.0.0
|
||||
'@types/ramda': 0.27.39
|
||||
graph-sequencer: 2.0.0
|
||||
ramda: ^0.27.1
|
||||
run-groups: ^3.0.1
|
||||
dependencies:
|
||||
'@pnpm/calc-dep-state': link:../calc-dep-state
|
||||
'@pnpm/core-loggers': link:../core-loggers
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/lifecycle': link:../lifecycle
|
||||
'@pnpm/link-bins': link:../link-bins
|
||||
'@pnpm/read-package-json': link:../read-package-json
|
||||
'@pnpm/store-controller-types': link:../store-controller-types
|
||||
'@pnpm/types': link:../types
|
||||
graph-sequencer: 2.0.0
|
||||
ramda: 0.27.2
|
||||
run-groups: 3.0.1
|
||||
devDependencies:
|
||||
@@ -399,6 +399,7 @@ importers:
|
||||
'@pnpm/error': workspace:3.0.0
|
||||
'@pnpm/filter-lockfile': workspace:6.0.0
|
||||
'@pnpm/get-context': workspace:6.0.0
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/headless': workspace:18.0.0
|
||||
'@pnpm/hoist': workspace:6.0.0
|
||||
'@pnpm/lifecycle': workspace:13.0.0
|
||||
@@ -444,7 +445,6 @@ importers:
|
||||
dependency-path: workspace:9.0.0
|
||||
execa: npm:safe-execa@^0.1.1
|
||||
exists-link: 2.0.0
|
||||
graph-sequencer: 2.0.0
|
||||
is-ci: ^3.0.0
|
||||
is-inner-link: ^4.0.0
|
||||
is-windows: ^1.0.2
|
||||
@@ -475,6 +475,7 @@ importers:
|
||||
'@pnpm/error': link:../error
|
||||
'@pnpm/filter-lockfile': link:../filter-lockfile
|
||||
'@pnpm/get-context': link:../get-context
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/headless': link:../headless
|
||||
'@pnpm/hoist': link:../hoist
|
||||
'@pnpm/lifecycle': link:../lifecycle
|
||||
@@ -504,7 +505,6 @@ importers:
|
||||
'@zkochan/npm-package-arg': 2.0.1
|
||||
'@zkochan/rimraf': 2.1.2
|
||||
dependency-path: link:../dependency-path
|
||||
graph-sequencer: 2.0.0
|
||||
is-inner-link: 4.0.0
|
||||
load-json-file: 6.2.0
|
||||
normalize-path: 3.0.0
|
||||
@@ -2467,6 +2467,7 @@ importers:
|
||||
'@pnpm/filter-workspace-packages': workspace:5.0.0
|
||||
'@pnpm/find-workspace-packages': workspace:4.0.0
|
||||
'@pnpm/get-context': workspace:6.0.0
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/lifecycle': workspace:13.0.0
|
||||
'@pnpm/link-bins': workspace:7.0.0
|
||||
'@pnpm/lockfile-utils': workspace:4.0.0
|
||||
@@ -2489,7 +2490,6 @@ importers:
|
||||
camelcase-keys: ^6.2.2
|
||||
dependency-path: workspace:9.0.0
|
||||
execa: npm:safe-execa@^0.1.1
|
||||
graph-sequencer: 2.0.0
|
||||
load-json-file: ^6.2.0
|
||||
mem: ^8.0.0
|
||||
p-limit: ^3.1.0
|
||||
@@ -2509,6 +2509,7 @@ importers:
|
||||
'@pnpm/core-loggers': link:../core-loggers
|
||||
'@pnpm/find-workspace-packages': link:../find-workspace-packages
|
||||
'@pnpm/get-context': link:../get-context
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/lifecycle': link:../lifecycle
|
||||
'@pnpm/link-bins': link:../link-bins
|
||||
'@pnpm/lockfile-utils': link:../lockfile-utils
|
||||
@@ -2522,7 +2523,6 @@ importers:
|
||||
'@zkochan/npm-package-arg': 2.0.1
|
||||
camelcase-keys: 6.2.2
|
||||
dependency-path: link:../dependency-path
|
||||
graph-sequencer: 2.0.0
|
||||
load-json-file: 6.2.0
|
||||
mem: 8.1.1
|
||||
p-limit: 3.1.0
|
||||
@@ -3268,12 +3268,12 @@ importers:
|
||||
|
||||
packages/sort-packages:
|
||||
specifiers:
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/sort-packages': workspace:3.0.0
|
||||
'@pnpm/types': workspace:8.0.0
|
||||
graph-sequencer: 2.0.0
|
||||
dependencies:
|
||||
'@pnpm/graph-sequencer': 1.0.0
|
||||
'@pnpm/types': link:../types
|
||||
graph-sequencer: 2.0.0
|
||||
devDependencies:
|
||||
'@pnpm/sort-packages': 'link:'
|
||||
|
||||
@@ -4934,6 +4934,10 @@ packages:
|
||||
graceful-fs: 4.2.9
|
||||
dev: true
|
||||
|
||||
/@pnpm/graph-sequencer/1.0.0:
|
||||
resolution: {integrity: sha512-iIJhmi7QjmafhijaEkh34Yxhjq3S/eiZnxww9K/SRXuDB5/30QnCyihR4R7vep8ONsGIR29hNPAtaNGd1rC/VA==}
|
||||
dev: false
|
||||
|
||||
/@pnpm/lockfile-types/3.2.0:
|
||||
resolution: {integrity: sha512-2OXP7rpb+jcKlZVa/Mw2NvFqoUuXSmMFWVurtYbwlMdUHxEyhJvPEAEKdV/QnmU//osvHg26G6JVyujQQAmcJQ==}
|
||||
engines: {node: '>=12.17'}
|
||||
@@ -6298,10 +6302,6 @@ packages:
|
||||
/array-flatten/1.1.1:
|
||||
resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=}
|
||||
|
||||
/array-flatten/2.1.2:
|
||||
resolution: {integrity: sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==}
|
||||
dev: false
|
||||
|
||||
/array-ify/1.0.0:
|
||||
resolution: {integrity: sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=}
|
||||
dev: true
|
||||
@@ -9277,13 +9277,6 @@ packages:
|
||||
resolution: {integrity: sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=}
|
||||
dev: true
|
||||
|
||||
/graph-sequencer/2.0.0:
|
||||
resolution: {integrity: sha1-v7gJuK9YT29Sh83OUHow1K6m7nA=}
|
||||
dependencies:
|
||||
array-flatten: 2.1.2
|
||||
array-includes: 3.1.4
|
||||
dev: false
|
||||
|
||||
/grapheme-splitter/1.0.4:
|
||||
resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}
|
||||
|
||||
|
||||
2
typings/local.d.ts
vendored
2
typings/local.d.ts
vendored
@@ -88,7 +88,7 @@ declare module 'graceful-git' {
|
||||
export = anything;
|
||||
}
|
||||
|
||||
declare module 'graph-sequencer' {
|
||||
declare module '@pnpm/graph-sequencer' {
|
||||
namespace graphSequencer {
|
||||
type Graph<T> = Map<T, T[]>;
|
||||
type Groups<T> = Array<T[]>;
|
||||
|
||||
Reference in New Issue
Block a user