Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmis committed Nov 26, 2023
1 parent 255f38e commit 4fce00b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion create-vite-express/templates/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"express": "^4.18.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tsx": "^4.3.0",
"typescript": "^5.3.2",
"vite-express": "*"
},
Expand All @@ -22,7 +23,6 @@
"@types/react-dom": "^18.2.16",
"@vitejs/plugin-react": "^4.2.0",
"nodemon": "^3.0.1",
"tsx": "^4.3.0",
"vite": "^5.0.2"
}
}
5 changes: 3 additions & 2 deletions create-vite-express/templates/vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "nodemon src/server/main.ts -w src/server",
"start": "NODE_ENV=production ts-node src/server/main.ts",
"dev": "nodemon -w src/server -x tsx src/server/main.ts",
"start": "NODE_ENV=production tsx src/server/main.ts",
"build": "vite build"
},
"devDependencies": {
Expand All @@ -15,6 +15,7 @@
},
"dependencies": {
"express": "^4.18.2",
"tsx": "^4.5.0",
"typescript": "^5.3.2",
"vite-express": "*"
}
Expand Down
1 change: 1 addition & 0 deletions create-vite-express/templates/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "vite-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "nodemon src/server/main.js -w src/server",
"start": "NODE_ENV=production node src/server/main.js",
Expand Down
4 changes: 2 additions & 2 deletions create-vite-express/templates/vanilla/src/server/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require("express");
const ViteExpress = require("vite-express");
import express from "express";
import ViteExpress from "vite-express";

const app = express();

Expand Down

0 comments on commit 4fce00b

Please sign in to comment.