Skip to content

feat(versions): support workspace:* versions #95

@LudovicSterlin

Description

@LudovicSterlin

Description

pnpm support workspace protocol (workspace:).
I'm using it in my monnorepo with a shared package and other packages that depend on it. When I try to use syncpack in my monorepo it raises erro on the workspace:* version.

This repo LudovicSterlin/pnpm-syncpack is a minimal working example for this issue.

When running

syncpack list-mismatches

You get the error below:

- @pnpm-syncpack/shared: 1.0.0 is developed in this repo at packages/shared/package.json
  workspace:* in dependencies of packages/api/package.json
  workspace:* in devDependencies of packages/app/package.json
  1.0.0 in version of packages/shared/package.json

Versions

Softwares

syncpack --version                                                                                                                                                                      12:59
8.2.4
pnpm --version                                                                                                                                                                          13:01
7.12.0

Machine informations

Model Name:	MacBook Pro
Model Identifier:	MacBookPro16,3
Processor Name:	Quad-Core Intel Core i5
Processor Speed:	1,4 GHz
Number of Processors:	1
Total Number of Cores:	4
Memory:	8 GB
System Firmware Version:	1731.140.2.0.0 (iBridge: 19.16.16066.0.0,0)
OS Loader Version:	540.120.3~19

Suggested Solution

If the version is specified in the local package and everywhere in the monorepo workspace:* is used as the version, just let pnpm handle this and don't raise error or make correction when running fix-mismatches.

Help Needed

Don't really now if this is a bug or if I missed an options or configurations to make pnpm workspace protocol and syncpack run smoothly together.

If this is indeed a feature request, I'll be glad to have some hints on where to start/search to implement it in a PR.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions