Skip to content

Commit e98909f

Browse files
authored
Merge pull request #31 from storybookjs/sidnioulz/sb9
feat: Port to Storybook 9
2 parents 2f26ef2 + 6935319 commit e98909f

File tree

9 files changed

+3263
-2775
lines changed

9 files changed

+3263
-2775
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
99
steps:
10-
- uses: actions/checkout@v2
11-
12-
- name: Prepare repository
13-
run: git fetch --unshallow --tags
14-
15-
- name: Use Node.js 18.x
16-
uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
1711
with:
18-
node-version: 18.x
12+
fetch-depth: 0
1913

20-
- uses: pnpm/action-setup@v2
21-
name: Install pnpm
14+
- name: Use Node.js 20.x
15+
uses: actions/setup-node@v3
2216
with:
23-
version: 8
24-
run_install: false
17+
node-version: 20.x
2518

26-
- name: Get pnpm store directory
27-
shell: bash
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
33-
with:
34-
path: ${{ env.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
19+
- uses: pnpm/action-setup@v4
3820

3921
- name: Install dependencies
4022
run: pnpm install
4123

42-
- name: Create Release
24+
- name: Build
25+
run: |
26+
pnpm build
27+
28+
- name: Release
4329
env:
4430
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4531
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

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

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
},
2121
"exports": {
2222
".": {
23+
"types": "./dist/index.d.ts",
2324
"require": "./dist/index.js",
24-
"import": "./dist/index.mjs",
25-
"types": "./dist/index.d.ts"
25+
"import": "./dist/index.mjs"
2626
},
2727
"./preset": {
28+
"types": "./dist/preset.d.ts",
2829
"require": "./dist/preset.js",
29-
"import": "./dist/preset.mjs",
30-
"types": "./dist/preset.d.ts"
30+
"import": "./dist/preset.mjs"
3131
},
3232
"./package.json": "./package.json",
3333
"./postinstall": "./postinstall.js"
@@ -45,24 +45,23 @@
4545
"scripts": {
4646
"build": "tsup",
4747
"build:watch": "pnpm build --watch",
48-
"clean": "rimraf dist && rimraf bin",
49-
"release": "pnpm build && auto shipit"
50-
},
51-
"dependencies": {
52-
"@storybook/node-logger": "^8.0.0-alpha.10"
48+
"release": "auto shipit"
5349
},
5450
"devDependencies": {
55-
"@types/node": "^18.0.0",
56-
"auto": "^11.1.1",
57-
"prettier": "^3.2.0",
58-
"rimraf": "^3.0.2",
59-
"tsup": "^6.7.0",
60-
"typescript": "^5.3.0",
61-
"webpack": "^5.0.0"
51+
"@types/node": "^22.15.29",
52+
"auto": "^11.3.0",
53+
"prettier": "^3.5.3",
54+
"rimraf": "^6.0.1",
55+
"storybook": "^9.0.4",
56+
"tsup": "^8.5.0",
57+
"typescript": "^5.8.3",
58+
"webpack": "^5.99.9"
6259
},
6360
"peerDependencies": {
61+
"storybook": "^9.0.0",
6462
"webpack": "^5.0.0"
6563
},
64+
"packageManager": "pnpm@10.7.0+sha512.6b865ad4b62a1d9842b61d674a393903b871d9244954f652b8842c2b553c72176b278f64c463e52d40fff8aba385c235c8c9ecf5cc7de4fd78b8bb6d49633ab6",
6665
"publishConfig": {
6766
"access": "public"
6867
},

0 commit comments

Comments
 (0)