|
5 | 5 | "type": "commonjs", |
6 | 6 | "scripts": { |
7 | 7 | "build": "tsc && vite build", |
8 | | - "build:local": "yarn build", |
| 8 | + "build:local": "env-cmd -e local yarn build", |
| 9 | + "build:staging": "env-cmd -e staging yarn build", |
| 10 | + "build:production": "env-cmd -e production yarn build", |
9 | 11 | "check-types": "tsc -p tsconfig.json --noEmit", |
10 | 12 | "cy:open": "cypress open", |
11 | 13 | "cy:run": "cypress run", |
12 | | - "dev": "vite", |
| 14 | + "dev": "env-cmd -e devLocal vite", |
| 15 | + "staging": "env-cmd -e devStaging vite", |
| 16 | + "production": "env-cmd -e devProduction vite", |
13 | 17 | "eslint:fix": "yarn eslint:strict --fix", |
14 | 18 | "eslint:staged": "STRICT=1 eslint", |
15 | 19 | "eslint:strict": "STRICT=1 eslint '*.{js,ts,tsx}' 'src/**/*.ts?(x)' 'cypress/**/*.ts'", |
|
64 | 68 | "@vitejs/plugin-react": "2.0.1", |
65 | 69 | "babel-loader": "^8.2.5", |
66 | 70 | "cypress": "10.4.0", |
| 71 | + "env-cmd": "^10.1.0", |
67 | 72 | "eslint": "8.21.0", |
68 | 73 | "eslint-config-airbnb": "19.0.4", |
69 | 74 | "eslint-config-prettier": "8.5.0", |
|
87 | 92 | "typescript": "^4.6.4", |
88 | 93 | "vite": "^3.0.0", |
89 | 94 | "vite-plugin-checker": "^0.4.9", |
| 95 | + "vite-plugin-env-compatible": "^1.1.1", |
90 | 96 | "vite-tsconfig-paths": "^3.5.0" |
91 | 97 | }, |
92 | 98 | "resolutions": { |
|
0 commit comments