Skip to content

Commit

Permalink
feat: replace vite-node with tsx
Browse files Browse the repository at this point in the history
Vite-Node is already used underneath of vitest to transform
tsx files to run testing. Using this will just cleanup dependencies from
tsx.
  • Loading branch information
samhwang committed Dec 11, 2024
1 parent c0a0f9e commit 63214b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 167 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"prisma:migrate": "prisma migrate dev --skip-generate",
"prisma:gen": "prisma generate",
"prisma:studio": "prisma studio",
"deploy:command": "tsx scripts/deploy-guild-commands.ts",
"delete:command": "tsx scripts/delete-guild-commands.ts",
"delete:command-global": "tsx scripts/delete-global-commands.ts",
"start:only": "tsx watch --clear-screen=false ./bin/main.ts",
"deploy:command": "vite-node scripts/deploy-guild-commands.ts",
"delete:command": "vite-node scripts/delete-guild-commands.ts",
"delete:command-global": "vite-node scripts/delete-global-commands.ts",
"start:only": "vite-node --watch ./bin/main.ts",
"start": "pnpm prisma:migrate && pnpm prisma:gen && pnpm start:only",
"build:referrals": "tsx scripts/build-referral-list.ts"
"build:referrals": "vite-node scripts/build-referral-list.ts"
},
"dependencies": {
"@axiomhq/winston": "^1.3.0",
Expand Down Expand Up @@ -73,6 +73,7 @@
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vite-node": "^2.1.8",
"vitest": "^2.1.8",
"vitest-mock-extended": "^2.0.2"
}
Expand Down
167 changes: 5 additions & 162 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63214b9

Please sign in to comment.