Skip to content

Commit 0b5ea49

Browse files
committed
fix: require Node.js 22+ for tsdown/rolldown compatibility
- Update engines.node to >=22 (rolldown needs styleText from node:util) - CI matrix: drop Node 18/20, test on 22 only - Deploy site: use Node 22, pass --base via CLI instead of PUBLIC_PATH env
1 parent 2fb19a6 commit 0b5ea49

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18, 20, 22]
15+
node-version: [22]
1616

1717
steps:
1818
- uses: actions/checkout@v4

.github/workflows/deploy-site.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,17 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- name: Use Node.js 20
23+
- name: Use Node.js 22
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
cache: 'npm'
2828

2929
- name: Install dependencies
3030
run: npm ci
3131

3232
- name: Build site
33-
run: npm run site:build
34-
env:
35-
PUBLIC_PATH: /tiny-ui/
33+
run: npx vite build site --base /tiny-ui/
3634

3735
- name: Copy 404.html for SPA routing
3836
run: cp site/build/index.html site/build/404.html

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"es"
4444
],
4545
"engines": {
46-
"node": ">=18"
46+
"node": ">=22"
4747
},
4848
"scripts": {
4949
"build": "npm run clean && tsdown && node scripts/build-styles.js && node scripts/inject-style-imports.js",

0 commit comments

Comments
 (0)