Skip to content

Commit 79d9030

Browse files
ggazzoclaude
andcommitted
fix(fuselage): Fix CI — Jest ESM transforms + build-storybook scripts
1. Jest: Add transformIgnorePatterns to allow transforming ESM modules from @rocket.chat/fuselage-box, tamagui, and @tamagui/* packages. 2. build-storybook: Revert to original scripts without inline storybook-dark-mode build. Turbo's ^build dependency handles this automatically via the dependency graph. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7b7b62a commit 79d9030

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

packages/fuselage-toastbar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"test": "jest --runInBand",
4040
"docs": "typedoc",
4141
"storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && storybook dev -p 6006",
42-
"build-storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && storybook build"
42+
"build-storybook": "storybook build"
4343
},
4444
"dependencies": {
4545
"react-timing-hooks": "~4.0.2"

packages/fuselage/jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ export default {
1010
moduleNameMapper: {
1111
'\\.scss$': 'testing-utils/lazySingletonStyleTagModule',
1212
},
13+
transformIgnorePatterns: [
14+
'node_modules/(?!(@rocket\\.chat/fuselage-box|tamagui|@tamagui)/)',
15+
],
1316
} satisfies Config;

packages/fuselage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"test": "jest --runInBand",
3636
"watch": "jest --watch",
3737
"docs": "yarn workspace @rocket.chat/storybook-dark-mode run build && cross-env NODE_ENV=production storybook build -o ../../static/fuselage",
38-
"build-storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && cross-env NODE_ENV=production storybook build"
38+
"build-storybook": "cross-env NODE_ENV=production storybook build"
3939
},
4040
"dependencies": {
4141
"@rocket.chat/css-in-js": "workspace:~",

packages/layout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"test": "jest --runInBand",
3333
"docs": "typedoc",
3434
"storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && storybook dev -p 6006 --no-version-updates",
35-
"build-storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && storybook build"
35+
"build-storybook": "storybook build"
3636
},
3737
"devDependencies": {
3838
"@rocket.chat/fuselage": "workspace:~",

packages/onboarding-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"test": "jest --runInBand",
3636
"docs": "typedoc",
3737
"storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && storybook dev -p 6006 --no-version-updates",
38-
"build-storybook": "yarn workspace @rocket.chat/storybook-dark-mode run build && storybook build"
38+
"build-storybook": "storybook build"
3939
},
4040
"dependencies": {
4141
"i18next": "~23.4.9",

0 commit comments

Comments
 (0)