Skip to content

Commit e8ca956

Browse files
authored
chore: migrate to tsdown and upgrade packages (#56)
1 parent 9ac8a5e commit e8ca956

27 files changed

+2679
-3218
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,29 @@ on:
77
branches: [ main ]
88

99
env:
10-
NODE_VER: 22.5
10+
NODE_VERSION: 24.10.0
11+
PNPM_VERSION: 10.7.1
1112

1213
jobs:
1314
testCodebase:
1415
runs-on: ubuntu-latest
1516
steps:
1617
- uses: actions/checkout@v4
1718

18-
- uses: pnpm/action-setup@v4
19-
name: Install pnpm
19+
- name: Use pnpm ${{ env.PNPM_VERSION }}
20+
uses: pnpm/action-setup@v4
2021
with:
22+
version: ${{ env.PNPM_VERSION }}
2123
run_install: false
2224

23-
- name: Use Node.js ${{ env.NODE_VER }}
25+
- name: Use Node.js ${{ env.NODE_VERSION }}
2426
uses: actions/setup-node@v4
2527
with:
26-
node-version: ${{ env.NODE_VER }}
27-
cache: 'pnpm'
28+
node-version: ${{ env.NODE_VERSION }}
29+
cache: pnpm
2830

2931
- name: Install deps
30-
run: pnpm i
32+
run: pnpm install
3133

3234
- name: Check linting
3335
run: pnpm lint
@@ -52,24 +54,25 @@ jobs:
5254
env:
5355
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432'
5456
DIRECT_DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432'
55-
AUTH_ORIGIN: http://localhost:3000
57+
AUTH_ORIGIN: http://localhost:3000/api/auth
5658
AUTH_SECRET: test123
5759
steps:
5860
- uses: actions/checkout@v4
5961

60-
- uses: pnpm/action-setup@v4
61-
name: Install pnpm
62+
- name: Use pnpm ${{ env.PNPM_VERSION }}
63+
uses: pnpm/action-setup@v4
6264
with:
65+
version: ${{ env.PNPM_VERSION }}
6366
run_install: false
6467

65-
- name: Use Node.js ${{ env.NODE_VER }}
68+
- name: Use Node.js ${{ env.NODE_VERSION }}
6669
uses: actions/setup-node@v4
6770
with:
68-
node-version: ${{ env.NODE_VER }}
69-
cache: 'pnpm'
71+
node-version: ${{ env.NODE_VERSION }}
72+
cache: pnpm
7073

7174
- name: Install deps
72-
run: pnpm i
75+
run: pnpm install
7376

7477
- name: Run the CI with default options
7578
run: pnpm dev:ci
@@ -91,12 +94,8 @@ jobs:
9194

9295
# start prod-app
9396
- name: app:run in prod
94-
env:
95-
AUTH_ORIGIN: http://localhost:3000/api/auth
9697
run: "cd my-sidebase-app && npm run build && timeout 30 npm run preview || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"
9798

9899
# start dev-app and curl from it
99100
- name: app:test in prod
100-
env:
101-
AUTH_ORIGIN: http://localhost:3000/api/auth
102101
run: "cd my-sidebase-app && timeout 30 npm run dev & (sleep 20 && curl --fail localhost:3000) || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"recommendations": [
33
"editorconfig.editorconfig",
4+
"dbaeumer.vscode-eslint"
45
]
56
}

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Enable the ESlint flat config support
3-
"eslint.experimental.useFlatConfig": true,
4-
52
// Disable the default formatter, use eslint instead
63
"prettier.enable": false,
74
"editor.formatOnSave": false,

eslint.config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import antfu from '@antfu/eslint-config'
22

33
const ignores = [
4-
'.nuxt',
5-
'**/.nuxt/**',
6-
'.output',
7-
'**/.output/**',
8-
'node_modules',
9-
'**/node_modules/**',
10-
'public',
11-
'**/public/**',
4+
'node_modules/',
5+
'dist/',
6+
'my-sidebase-*/',
7+
'coverage/',
128
]
139

1410
export default antfu({

package.json

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"type": "module",
44
"version": "0.9.0",
55
"description": "The productive way to build fullstack Nuxt 3 applications, like create-t3-app but for Nuxt.",
6+
"packageManager": "pnpm@10.7.1",
7+
"engines": {
8+
"pnpm": ">=10.7.0",
9+
"node": ">=24.2.0"
10+
},
611
"scripts": {
712
"dev": "vite-node src/ -- --nocounting",
813
"dev:ci": "vite-node src/ -- --ci",
914
"lint": "oxlint --deny-warnings -D correctness -D suspicious -D perf && eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0",
1015
"lint:fix": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0 --fix",
1116
"typecheck": "tsc --noEmit",
12-
"build": "rm -rf dist && tsup src/ --format esm",
17+
"build": "rm -rf dist && tsdown src/ --format esm",
1318
"start": "npx",
1419
"prepack": "npm run build"
1520
},
@@ -40,27 +45,26 @@
4045
},
4146
"homepage": "https://sidebase.io",
4247
"devDependencies": {
43-
"@antfu/eslint-config": "^2.11.5",
44-
"@types/node": "^18.11.16",
45-
"@types/prompts": "^2.4.2",
46-
"eslint": "^8.57.0",
47-
"oxlint": "^0.7.2",
48-
"tsup": "^6.2.3",
49-
"typescript": "^4.8.2",
50-
"vite-node": "^0.25.8"
48+
"@antfu/eslint-config": "^6.0.0",
49+
"@types/node": "^24.7.2",
50+
"@types/prompts": "^2.4.9",
51+
"eslint": "^9.37.0",
52+
"oxlint": "^1.23.0",
53+
"tsdown": "^0.15.7",
54+
"typescript": "^5.9.3",
55+
"vite-node": "^3.2.4"
5156
},
5257
"dependencies": {
53-
"@nuxt/schema": "^3.12.4",
54-
"chalk": "^5.2.0",
55-
"commander": "^9.4.1",
56-
"consola": "^3.2.3",
57-
"defu": "^6.1.1",
58-
"execa": "^6.1.0",
59-
"giget": "^1.0.0",
58+
"@nuxt/schema": "^4.1.3",
59+
"chalk": "^5.6.2",
60+
"commander": "^14.0.1",
61+
"consola": "^3.4.2",
62+
"defu": "^6.1.4",
63+
"execa": "^9.6.0",
64+
"giget": "^2.0.0",
6065
"node-fetch": "^3.3.0",
61-
"ora": "^6.1.2",
62-
"pkg-types": "^1.0.1",
66+
"ora": "^9.0.0",
67+
"pkg-types": "^2.3.0",
6368
"prompts": "^2.4.2"
64-
},
65-
"packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e"
69+
}
6670
}

0 commit comments

Comments
 (0)