generator-kodly-react-app 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from '@hey-api/openapi-ts';
|
|
2
2
|
import { loadEnv } from 'vite';
|
|
3
3
|
|
|
4
|
-
// Get the mode from environment variable (set by
|
|
4
|
+
// Get the mode from environment variable (set by pnpm scripts)
|
|
5
5
|
const mode = process.env.MODE || 'development';
|
|
6
6
|
|
|
7
7
|
// Load environment variables from .env files
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"version": "0.0.1",
|
|
6
|
+
"packageManager": "pnpm@10.28.0",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"generate-routes": "tsr generate",
|
|
8
9
|
"watch-routes": "tsr watch",
|
|
@@ -11,8 +12,8 @@
|
|
|
11
12
|
"vite:sandbox": "vite --mode sandbox",
|
|
12
13
|
"dev": "npm-run-all --parallel watch-routes vite:dev",
|
|
13
14
|
"dev:sandbox": "npm-run-all --parallel watch-routes vite:sandbox",
|
|
14
|
-
"build": "
|
|
15
|
-
"build:sandbox": "
|
|
15
|
+
"build": "pnpm run generate-routes && vite build --mode dev && tsc",
|
|
16
|
+
"build:sandbox": "pnpm run generate-routes && vite build --mode sandbox && tsc",
|
|
16
17
|
"serve": "vite preview",
|
|
17
18
|
"openapi-ts:dev": "MODE=dev openapi-ts",
|
|
18
19
|
"openapi-ts:sandbox": "MODE=sandbox openapi-ts"
|
|
@@ -57,5 +58,10 @@
|
|
|
57
58
|
"tailwindcss": "^4.1.18",
|
|
58
59
|
"typescript": "^5.9.3",
|
|
59
60
|
"vite": "^7.3.1"
|
|
61
|
+
},
|
|
62
|
+
"pnpm": {
|
|
63
|
+
"onlyBuiltDependencies": [
|
|
64
|
+
"esbuild"
|
|
65
|
+
]
|
|
60
66
|
}
|
|
61
67
|
}
|
package/package.json
CHANGED