Skip to content

Commit 099954b

Browse files
Copilotphryneasjerelmiller
authored
Fix warning about workspaces in public projects (#13203)
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com> Co-authored-by: Jerel Miller <jerelmiller@gmail.com>
1 parent de25273 commit 099954b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/fair-comics-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": patch
3+
---
4+
5+
Remove the `workspaces` field from the published `package.json` in `dist` to avoid Yarn v1 warnings about workspaces requiring private packages.

config/prepareDist.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const prepareDist: BuildStep = async (options) => {
3939
delete packageJson.devEngines;
4040
delete packageJson.devDependencies;
4141
delete packageJson.overrides;
42+
delete packageJson.workspaces;
4243

4344
packageJson.exports = {
4445
"./package.json": "./package.json",

0 commit comments

Comments
 (0)