chore(web): support windows

This commit is contained in:
arkohut 2024-08-20 08:05:10 +08:00
parent a8709ee715
commit 9082407548
2 changed files with 22 additions and 1 deletions

20
web/package-lock.json generated
View File

@ -27,6 +27,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "^10.4.16",
"cross-env": "^7.0.3",
"daisyui": "^4.4.19",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
@ -1547,6 +1548,25 @@
"node": ">= 0.6"
}
},
"node_modules/cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"license": "MIT",
"dependencies": {
"cross-spawn": "^7.0.1"
},
"bin": {
"cross-env": "src/bin/cross-env.js",
"cross-env-shell": "src/bin/cross-env-shell.js"
},
"engines": {
"node": ">=10.14",
"npm": ">=6",
"yarn": ">=1"
}
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "vite dev",
"build": "PUBLIC_API_ENDPOINT= vite build",
"build": "cross-env PUBLIC_API_ENDPOINT= vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
@ -18,6 +18,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "^10.4.16",
"cross-env": "^7.0.3",
"daisyui": "^4.4.19",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",