Skip to content

Commit 607cd73

Browse files
committed
upgrade to sb10 and esm-only
1 parent e094475 commit 607cd73

File tree

10 files changed

+1387
-1455
lines changed

10 files changed

+1387
-1455
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
},
55
"[typescript]": {
66
"editor.defaultFormatter": "biomejs.biome"
7-
}
7+
},
8+
"typescript.tsdk": "node_modules/typescript/lib"
89
}

biome.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
64
"files": {
7-
"include": ["src/**/*.ts"]
5+
"includes": ["src/**/*.ts"]
86
},
97
"formatter": {
10-
"indentStyle": "space"
8+
"indentStyle": "space",
9+
"lineWidth": 120
1110
},
1211
"linter": {
1312
"enabled": true,
1413
"rules": {
1514
"recommended": true
1615
}
16+
},
17+
"assist": {
18+
"actions": {
19+
"source": {
20+
"organizeImports": "on"
21+
}
22+
}
1723
}
1824
}

package.json

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@storybook/addon-webpack5-compiler-babel",
33
"version": "3.0.6",
4-
"type": "module",
54
"description": "Adds babel as a Webpack5 compiler to Storybook",
65
"keywords": [
76
"storybook-addons",
@@ -12,77 +11,72 @@
1211
"type": "git",
1312
"url": "git+https://github.com/storybookjs/addon-webpack5-compiler-babel.git"
1413
},
15-
"scripts": {
16-
"build": "tsup",
17-
"format": "biome format ./src",
18-
"format:write": "pnpm format --write",
19-
"check": "biome check ./src",
20-
"check:apply": "pnpm check --apply",
21-
"check:apply-unsafe": "pnpm check --apply-unsafe",
22-
"check:ci": "biome ci ./src",
23-
"release": "auto shipit"
24-
},
14+
"license": "MIT",
15+
"author": "Storybook Bot <[email protected]>",
16+
"type": "module",
2517
"exports": {
2618
".": {
2719
"require": "./dist/index.cjs",
28-
"import": "./dist/index.js"
20+
"default": "./dist/index.js"
2921
},
3022
"./preset": "./dist/preset.cjs",
3123
"./package.json": "./package.json"
3224
},
33-
"main": "dist/index.cjs",
3425
"files": [
3526
"dist/**/*",
3627
"preset.js",
3728
"src/**/*",
3829
"README.md"
3930
],
40-
"license": "MIT",
41-
"publishConfig": {
42-
"access": "public"
43-
},
44-
"storybook": {
45-
"displayName": "Addon Webpack5 Compiler Babel",
46-
"supportedFrameworks": [
47-
"react",
48-
"preact",
49-
"vue",
50-
"web-components",
51-
"html",
52-
"svelte"
53-
]
31+
"scripts": {
32+
"build": "tsup",
33+
"check": "biome check ./src",
34+
"check:apply": "pnpm check --apply",
35+
"check:apply-unsafe": "pnpm check --apply-unsafe",
36+
"check:ci": "biome ci ./src",
37+
"format": "biome format ./src",
38+
"format:write": "pnpm format --write",
39+
"release": "auto shipit"
5440
},
5541
"dependencies": {
5642
"@babel/core": "^7.26.0",
5743
"babel-loader": "^9.2.1"
5844
},
5945
"devDependencies": {
60-
"@biomejs/biome": "^1.9.4",
61-
"@storybook/manager": "8.4.7",
62-
"@storybook/preview": "8.4.7",
63-
"@storybook/types": "8.4.7",
46+
"@biomejs/biome": "^2.3.4",
6447
"auto": "^11.3.0",
6548
"find-cache-dir": "^5.0.0",
66-
"tsup": "^8.3.5",
67-
"typescript": "^5.7.2",
49+
"storybook": "^10.0.0",
50+
"tsup": "^8.5.0",
51+
"typescript": "^5.9.3",
6852
"webpack": "^5.97.1"
6953
},
70-
"engines": {
71-
"node": ">=18"
54+
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
55+
"publishConfig": {
56+
"access": "public"
7257
},
73-
"author": "Storybook Bot <[email protected]>",
7458
"auto": {
7559
"plugins": [
7660
"npm"
7761
]
7862
},
7963
"bundler": {
80-
"exportEntries": [
64+
"previewEntries": [
8165
"src/index.ts"
8266
],
8367
"nodeEntries": [
8468
"src/preset.ts"
8569
]
8670
},
87-
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
71+
"storybook": {
72+
"displayName": "Addon Webpack5 Compiler Babel",
73+
"supportedFrameworks": [
74+
"react",
75+
"preact",
76+
"vue",
77+
"web-components",
78+
"html",
79+
"svelte"
80+
]
81+
}
8882
}

0 commit comments

Comments
 (0)