Skip to content

Commit

Permalink
use node22's ability to run ts files directly, rather than using tsx.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston authored and mcansh committed Oct 22, 2024
1 parent fba6aca commit 2743aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"type": "module",
"scripts": {
"build": "remix vite:build && tsc --project ./tsconfig.server.json",
"dev": "cross-env NODE_ENV=development tsx --watch-path ./server/index.ts ./server/index.ts",
"dev": "cross-env NODE_ENV=development node --no-warnings --experimental-strip-types --experimental-transform-types ./server/index.ts",
"lint": "eslint --ignore-path .gitignore --no-error-on-unmatched-pattern --cache --cache-location node_modules/.cache/eslint --fix .",
"format": "prettier --ignore-path .gitignore --ignore-unknown --cache --cache-location node_modules/.cache/prettiercache --write .",
"start": "cross-env NODE_ENV=production node ./server/index.js",
"start": "cross-env NODE_ENV=production node --no-warnings --experimental-strip-types --experimental-transform-types ./server/index.ts",
"typecheck": "tsc"
},
"dependencies": {
Expand All @@ -35,7 +35,6 @@
"@types/source-map-support": "^0.5.10",
"eslint": "^8.57.0",
"prettier": "^3.3.3",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"vite": "^5.4.9",
"vite-tsconfig-paths": "^5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/tsconfig.server.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"include": ["./server/**/*.ts"],
"exclude": ["node_modules"],
"compilerOptions": {
"noEmit": false,
"noEmit": true,
"outDir": "./server"
}
}

0 comments on commit 2743aef

Please sign in to comment.