Skip to content

Commit

Permalink
build: upgrade to node v20
Browse files Browse the repository at this point in the history
Node 20 brings a few cool features
- stable test runner
- recursive readdir
- global crypto.randomUUID()
  • Loading branch information
TrySound committed Apr 21, 2024
1 parent b0a28b8 commit 60f914e
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
- uses: pnpm/[email protected]
- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
cache: pnpm
- run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/vercel/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ runs:
"outputDirectory": null,
"rootDirectory": "apps/builder",
"directoryListing": false,
"nodeVersion": "18.x"
"nodeVersion": "20.x"
}
}
EOF
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli-r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
cache: pnpm

- name: pnpm instal
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"

- name: Copy atrifact via http
run: curl -o cloudflare-template.tar.zst ${{ secrets.ARTEFACT_BUCKET_URL }}/public/cloudflare-template/${{ github.ref_name }}.tar.zst
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vercel-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- uses: pnpm/[email protected]
- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
cache: pnpm

- uses: ./.github/actions/vercel
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-cloudflare-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"author": "",
"license": "AGPL-3.0-or-later",
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"dependencies": {
"@remix-run/react": "^2.8.1",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-custom-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"vite": "^5.2.8"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"size-limit": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"vite": "^5.2.8"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"name": "webstudio-remix-netlify-edge-functions",
"version": "0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-remix-netlify-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"vite": "^5.2.8"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"name": "webstudio-remix-netlify-functions",
"version": "0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/webstudio-remix-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"webstudio": "workspace:*"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"name": "webstudio-remix-vercel",
"version": "0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"vite": "^5.2.8"
},
"engines": {
"node": "18",
"node": "20",
"pnpm": "9.0",
"yarn": "This project is configured to use pnpm"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/cli/templates/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
"vite-tsconfig-paths": "^4.2.1",
"wrangler": "^3.48.0",
"miniflare": "^3.20231030.4"
},
"engines": {
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/cli/templates/defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"vite": "^5.2.8"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
}
}

0 comments on commit 60f914e

Please sign in to comment.