Skip to content

Problem with resolving pnpm's workspace:* references #130

Description

@pyncz

Hello there. I have an issue managing packages in pnpm monorepo if they have some references to the other workspace packages through aliases.

Let's say, there's a package called package2, and it has its workspace-peer in the dependencies:

package.json of package2

"dependencies": {
  "package1": "workspace:*",
}

After the publishing via semantic-release-monorepo, I receive following error trying to install package2 in some other project, as a result:
Frame 130(1)

As I understand, the problem is that pnpm converts such "cross-dependency" references into regular deps within its publish command, but semantic-release doesn't.

Now, after the very first release, I replace these "workspace:*" references with actual freshly-released versions, and it works ofc... But it doesn't seem right.

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions