From d32dd607eede1b5c99592a6465fe3a284942ac02 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Tue, 28 May 2024 18:11:03 +0200 Subject: [PATCH] fix(deps) Temporary fix for broken @swc/types package publishing (#10690) --- .changesets/10690.md | 11 +++++++++++ __fixtures__/fragment-test-project/package.json | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .changesets/10690.md diff --git a/.changesets/10690.md b/.changesets/10690.md new file mode 100644 index 000000000000..19a813f57d93 --- /dev/null +++ b/.changesets/10690.md @@ -0,0 +1,11 @@ +- fix(deps) Temporary fix for broken @swc/types package publishing (#10690) by @Tobbe + +Set yarn package resolutions to get a working version of @swc/types as +recommended by the Storybook team (see link below) + +Ideally we can get rid of this very soon. Resolutions are a pain to deal with +in user's projects because we have to tell them to manually get rid of them +when they're not needed anymore. + +See https://github.com/swc-project/swc/issues/8988 +and https://github.com/storybookjs/storybook/issues/27385 diff --git a/__fixtures__/fragment-test-project/package.json b/__fixtures__/fragment-test-project/package.json index f93f198eeb40..81cd46defa89 100644 --- a/__fixtures__/fragment-test-project/package.json +++ b/__fixtures__/fragment-test-project/package.json @@ -20,5 +20,8 @@ "prisma": { "seed": "yarn rw exec seed" }, - "packageManager": "yarn@4.1.1" + "packageManager": "yarn@4.1.1", + "resolutions": { + "@swc/core": "1.5.7" + } }