fix: set windows env

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-10-26 19:28:40 +08:00
parent 9f72c263a6
commit 1ea103b7ee
3 changed files with 15 additions and 5 deletions
+2 -5
View File
@@ -1,11 +1,8 @@
{
"name": "@follow/server",
"engines": {
"node": "20.x"
},
"scripts": {
"build": "NODE_ENV=production vite build && tsx scripts/prepare-vercel-build.ts && tsup && tsx scripts/cleanup-vercel-build.ts",
"dev": "NODE_ENV=development tsx watch --include \"src/**/*.ts\" --exclude \"./*.ts\" --exclude \"./*.mjs\" index.ts",
"build": "cross-env NODE_ENV=production vite build && tsx scripts/prepare-vercel-build.ts && tsup && tsx scripts/cleanup-vercel-build.ts",
"dev": "cross-env NODE_ENV=development tsx watch --include \"src/**/*.ts\" --exclude \"./*.ts\" --exclude \"./*.mjs\" index.ts",
"start": "tsx index.ts"
},
"dependencies": {
+1
View File
@@ -69,6 +69,7 @@
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-legacy": "5.4.2",
"@vitejs/plugin-react": "^4.3.2",
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"dnum": "^2.14.0",
"dotenv": "16.4.5",
+12
View File
@@ -125,6 +125,9 @@ importers:
'@vitejs/plugin-react':
specifier: ^4.3.2
version: 4.3.2(vite@5.4.9(@types/node@22.7.5)(lightningcss@1.27.0)(terser@5.35.0))
cross-env:
specifier: 7.0.3
version: 7.0.3
cssnano:
specifier: 7.0.6
version: 7.0.6(postcss@8.4.47)
@@ -5309,6 +5312,11 @@ packages:
cross-dirname@0.1.0:
resolution: {integrity: sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==}
cross-env@7.0.3:
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
hasBin: true
cross-spawn@6.0.5:
resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==}
engines: {node: '>=4.8'}
@@ -15442,6 +15450,10 @@ snapshots:
cross-dirname@0.1.0: {}
cross-env@7.0.3:
dependencies:
cross-spawn: 7.0.3
cross-spawn@6.0.5:
dependencies:
nice-try: 1.0.5