Skip to content

Support for the PNPM (9.5) catalog: package.json dependency resolution #4055

@JulianCataldo

Description

@JulianCataldo

Hello!

Not sure if it's a feat. or a fix.

Current Behavior

Run pnpm lerna publish --conventional-commits --exact --conventional-prerelease --canary --dist-tag=next --preid=next --yes
lerna-lite notice cli v3.5.1
lerna-lite info versioning independent
lerna-lite info ci enabled
lerna-lite ERR! Error: Unsupported URL Type "catalog:": catalog:
lerna-lite ERR!     at unsupportedURLType (/home/runner/work/gracile/gracile/node_modules/.pnpm/npm-package-arg@[11](https://github.com/gracile-web/gracile/actions/runs/10124756135/job/27999461862#step:19:12).0.2/node_modules/npm-package-arg/lib/npa.js:310:15)
lerna-lite ERR!     at fromURL (/home/runner/work/gracile/gracile/node_modules/.pnpm/[email protected]/node_modules/npm-package-arg/lib/npa.js:367:13)
lerna-lite ERR!     at Function.resolve (/home/runner/work/gracile/gracile/node_modules/.pnpm/[email protected]/node_modules/npm-package-arg/lib/npa.js:83:[12](https://github.com/gracile-web/gracile/actions/runs/10124756135/job/27999461862#step:19:13))
lerna-lite ERR!     at file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:45:38
lerna-lite ERR!     at Array.forEach (<anonymous>)
lerna-lite ERR!     at file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:30:44
lerna-lite ERR!     at PackageGraph.forEach (<anonymous>)
lerna-lite ERR!     at new PackageGraph (file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:26:14)
node:internal/process/promises:391
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: Unsupported URL Type "catalog:": catalog:
    at unsupportedURLType (/home/runner/work/gracile/gracile/node_modules/.pnpm/[email protected]/node_modules/npm-package-arg/lib/npa.js:310:15)
    at fromURL (/home/runner/work/gracile/gracile/node_modules/.pnpm/[email protected]/node_modules/npm-package-arg/lib/npa.js:367:[13](https://github.com/gracile-web/gracile/actions/runs/10124756135/job/27999461862#step:19:14))
    at Function.resolve (/home/runner/work/gracile/gracile/node_modules/.pnpm/[email protected]/node_modules/npm-package-arg/lib/npa.js:83:12)
    at file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:45:38
    at Array.forEach (<anonymous>)
    at file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:30:44
    at PackageGraph.forEach (<anonymous>)
    at new PackageGraph (file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:26:[14](https://github.com/gracile-web/gracile/actions/runs/10124756135/job/27999461862#step:19:15))
    at file:///home/runner/work/gracile/gracile/node_modules/.pnpm/@[email protected][email protected]/node_modules/@lerna-lite/core/dist/command.js:187:37 {
  code: 'EUNSUPPORTEDPROTOCOL'
}

Node.js v22.2.0
Error: Process completed with exit code 1.

Expected Behavior

Should handle catalog: in a similar fashion as workspace:.

Environment

PNPM Catalogs (added in v9.5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions