Skip to content

[Repo] Remove the stale npm workspaces field from the root package.json #1288

Open

Description

@karinamzalez

Summary

The root package.json still has an npm-style "workspaces": ["lib/**"] field from before the move to pnpm. pnpm ignores it and uses pnpm-workspace.yaml, but npm and npx read it. The lib/** glob also matches the package.json that lib/changelog-emitter's build copies into dist/. So any npx command run inside the repo fails:

npm error code EDUPLICATEWORKSPACE
npm error must not have multiple workspaces with the same name
npm error package 'typespec-versioning-changelog' has conflicts in the following paths:
npm error     .../lib/changelog-emitter
npm error     .../lib/changelog-emitter/dist

Found while running npx @common-grants/cli preview ... during the v0.5.0 release runbook (#1268).

Acceptance criteria

  • Remove the workspaces field from the root package.json.
  • Confirm pnpm install and pnpm run ci behave the same.
  • Confirm npx commands run from the repo root no longer fail with EDUPLICATEWORKSPACE.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency file

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions