Skip to content

Commit dbc63e2

Browse files
committed
Update storybook and storybook-src dependencies in package.json and yarn.lock to point to the latest ESM branch, and change TypeScript module resolution to 'esnext' for improved compatibility with modern JavaScript features.
1 parent 5cf9d6b commit dbc63e2

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
"read-pkg-up": "^7.0.1",
161161
"sirv": "^2.0.4",
162162
"slash": "^3.0.0",
163-
"storybook": "^0.0.0-0 || ^8.2.0 || ^9.0.0 || ^9.1.0-0 || ^10.0.0-0",
164-
"storybook-src": "git+https://github.com/storybookjs/storybook.git#norbert/try-fixing-test-runner",
163+
"storybook": "^0.0.0-0 || ^8.2.0 || ^9.0.0 || ^9.1.0-0",
164+
"storybook-src": "git+https://github.com/storybookjs/storybook.git#next",
165165
"strip-ansi": "^7.1.0",
166166
"strip-json-comments": "^5.0.1",
167167
"telejson": "8.0.0",

src/playwright/transformPlaywrightJson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const makeTest = ({
1818
name: t.stringLiteral(entry.name),
1919
title: t.stringLiteral(entry.title),
2020
id: t.stringLiteral(entry.id),
21-
// FIXME
21+
//@ts-expect-error FIXME
2222
storyExport: t.identifier(entry.id),
2323
});
2424
const stmt = (result as Array<t.ExpressionStatement>)[1];

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
"isolatedModules": true,
1010
"jsx": "react",
1111
"lib": ["es2017", "dom"],
12-
"module": "commonjs",
12+
"module": "esnext",
13+
"moduleResolution": "bundler",
1314
"noImplicitAny": true,
1415
"rootDir": "./src",
1516
"skipLibCheck": true,
1617
"target": "es2020",
1718
"types": ["jest", "node"],
18-
"moduleResolution": "node",
1919
"strict": true,
2020
"noEmit": true,
2121
"noUnusedLocals": true,
22-
"noUnusedParameters": true,
22+
"noUnusedParameters": true
2323
},
2424
"include": ["src/**/*.ts"]
2525
}

yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,8 +3142,8 @@ __metadata:
31423142
semver: "npm:^7.6.2"
31433143
sirv: "npm:^2.0.4"
31443144
slash: "npm:^3.0.0"
3145-
storybook: "npm:^0.0.0-0 || ^8.2.0 || ^9.0.0 || ^9.1.0-0 || ^10.0.0-0"
3146-
storybook-src: "git+https://github.com/storybookjs/storybook.git#norbert/try-fixing-test-runner"
3145+
storybook: "npm:^0.0.0-0 || ^8.2.0 || ^9.0.0 || ^9.1.0-0"
3146+
storybook-src: "git+https://github.com/storybookjs/storybook.git#next"
31473147
strip-ansi: "npm:^7.1.0"
31483148
strip-json-comments: "npm:^5.0.1"
31493149
telejson: "npm:8.0.0"
@@ -5633,7 +5633,7 @@ __metadata:
56335633
languageName: node
56345634
linkType: hard
56355635

5636-
"esbuild-register@npm:^3.6.0":
5636+
"esbuild-register@npm:^3.5.0, esbuild-register@npm:^3.6.0":
56375637
version: 3.6.0
56385638
resolution: "esbuild-register@npm:3.6.0"
56395639
dependencies:
@@ -10451,26 +10451,26 @@ __metadata:
1045110451
languageName: node
1045210452
linkType: hard
1045310453

10454-
"storybook-src@git+https://github.com/storybookjs/storybook.git#norbert/try-fixing-test-runner":
10454+
"storybook-src@git+https://github.com/storybookjs/storybook.git#next":
1045510455
version: 0.0.0
10456-
resolution: "storybook-src@https://github.com/storybookjs/storybook.git#commit=3095ad4932c56bb5c98be9d0e85c52ec1c9c2edc"
10457-
checksum: 10/35bab1db690d7c7b429f864e21c1974c679a93fabf4edaf63c5dbbfa932ec5a35e10322713948646b4f2f7f5004d2d806a73afa8c5dc28b3e18ff58b1d325c4e
10456+
resolution: "storybook-src@https://github.com/storybookjs/storybook.git#commit=4236d09d268c741a47e04886286c2ce68418a250"
10457+
checksum: 10/432381f2da64764559da84315df77ee2d2d25ac32779dfc9f6ee48525f7b3202ff67c25ee9dcbcfce13a8041419b8dcc0cc1e4abb4044326fbb4a21b692b4bcd
1045810458
languageName: node
1045910459
linkType: hard
1046010460

10461-
"storybook@npm:^0.0.0-0 || ^8.2.0 || ^9.0.0 || ^9.1.0-0 || ^10.0.0-0":
10462-
version: 10.0.0-beta.0
10463-
resolution: "storybook@npm:10.0.0-beta.0"
10461+
"storybook@npm:^0.0.0-0 || ^8.2.0 || ^9.0.0 || ^9.1.0-0":
10462+
version: 9.1.2
10463+
resolution: "storybook@npm:9.1.2"
1046410464
dependencies:
1046510465
"@storybook/global": "npm:^5.0.0"
10466-
"@storybook/icons": "npm:^1.4.0"
1046710466
"@testing-library/jest-dom": "npm:^6.6.3"
1046810467
"@testing-library/user-event": "npm:^14.6.1"
1046910468
"@vitest/expect": "npm:3.2.4"
1047010469
"@vitest/mocker": "npm:3.2.4"
1047110470
"@vitest/spy": "npm:3.2.4"
1047210471
better-opn: "npm:^3.0.2"
1047310472
esbuild: "npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0"
10473+
esbuild-register: "npm:^3.5.0"
1047410474
recast: "npm:^0.23.5"
1047510475
semver: "npm:^7.6.2"
1047610476
ws: "npm:^8.18.0"
@@ -10480,8 +10480,8 @@ __metadata:
1048010480
prettier:
1048110481
optional: true
1048210482
bin:
10483-
storybook: ./dist/bin/dispatcher.js
10484-
checksum: 10/192654aab822310596fc773532cfc4e362907cfe4ebf67e8e4967022ab0cdaf673931fa2d6ab8df84d76c045eb63ba439d1948ef23c8d78c0b80e26df434bf4c
10483+
storybook: ./bin/index.cjs
10484+
checksum: 10/0d3160b6794addc9a91a7c6581e2d85adf77a7ab09cf7bb039737f62fed9903e542198b86c40c90197e73caee8bd82d364aabd908af4eaa34e4735a554adf06e
1048510485
languageName: node
1048610486
linkType: hard
1048710487

0 commit comments

Comments
 (0)