Skip to content

Commit

Permalink
feat!: remove -W option (#4308)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Feb 8, 2022
1 parent 25a0b58 commit 49f24c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-dolls-itch.md
@@ -0,0 +1,5 @@
---
"pnpm": major
---

`-W` is not an alias of `--ignore-workspace-root-check` anymore. Just use `-w` or `--workspace-root` instead, which will also allow to install dependencies in the root of the workspace.
1 change: 0 additions & 1 deletion packages/pnpm/src/shorthands.ts
Expand Up @@ -33,7 +33,6 @@ export default {
'shared-workspace-shrinkwrap': '--shared-workspace-lockfile',
'frozen-shrinkwrap': '--frozen-lockfile',
'prefer-frozen-shrinkwrap': '--prefer-frozen-lockfile',
W: '--ignore-workspace-root-check',
w: '--workspace-root',
i: '--interactive',
}
Expand Down
7 changes: 0 additions & 7 deletions packages/pnpm/test/recursive/misc.ts
Expand Up @@ -382,13 +382,6 @@ test('adding new dependency in the root should fail if neither --workspace-root
await project.has('is-positive')
}

{
const { status } = execPnpmSync(['add', 'is-negative', '-W'])

expect(status).toBe(0)
await project.has('is-negative')
}

{
const { status } = execPnpmSync(['add', 'is-odd', '--workspace-root'])

Expand Down

0 comments on commit 49f24c6

Please sign in to comment.