|
3 | 3 | "version": "0.0.18",
|
4 | 4 | "description": "",
|
5 | 5 | "scripts": {
|
6 |
| - "setup": "yarn build:ts", |
| 6 | + "setup": "scripts/setup", |
7 | 7 | "clean:setup": "yarn cache clean && rm -f .yarn/install-state.gz && rm -rf node_modules && find . -type f -name '*.tsbuildinfo' -delete && find packages -type d -name 'build' -exec rm -rf '{}' + -depth",
|
8 | 8 | "build": "concurrently \"yarn:build:*\"",
|
9 |
| - "build:ts": "tsc --build", |
10 |
| - "build:server": "vite build", |
| 9 | + "build:ts": "dotenv -- tsc --build", |
| 10 | + "build:server": "dotenv -- vite build", |
11 | 11 | "clean:build": "rm -rf dist && rm -rf src-tauri/target",
|
12 |
| - "dev": "tauri dev", |
| 12 | + "dev": "dotenv -- tauri dev", |
13 | 13 | "=== TEST ===": "",
|
14 | 14 | "test": "yarn lint && yarn test:unit",
|
15 |
| - "test:unit": "vitest run", |
16 |
| - "watch:test": "vitest watch", |
| 15 | + "test:unit": "dotenv -- vitest run", |
| 16 | + "watch:test": "dotenv -- vitest watch", |
17 | 17 | "=== LINT ===": "",
|
18 | 18 | "lint": "concurrently \"yarn:lint:*\"",
|
19 | 19 | "lint:format": "prettier --check --cache --cache-strategy content \"./src/**/*.{js,jsx,ts,tsx,json,less,html}\"",
|
20 | 20 | "lint:static": "eslint . --cache --cache-strategy content --ext .js,.jsx,.ts,.tsx",
|
21 | 21 | "lint:ts": "yarn build:ts",
|
22 | 22 | "=== STORYBOOK ===": "",
|
23 |
| - "storybook": "storybook dev -p 6006", |
24 |
| - "storybook:build": "storybook build", |
| 23 | + "storybook": "dotenv -- storybook dev -p 6006", |
| 24 | + "storybook:build": "dotenv -- storybook build", |
25 | 25 | "storybook:test": "npx chromatic --project-token=af98efe0a6a9",
|
26 | 26 | "=== UTILITIES ===": "",
|
27 | 27 | "clean": "concurrently \"yarn:clean:*\"",
|
28 |
| - "dev:server": "vite", |
29 |
| - "dev:preview": "vite preview", |
| 28 | + "dev:server": "dotenv -- vite", |
| 29 | + "dev:preview": "dotenv -- vite preview", |
30 | 30 | "=== LIFE CYCLE HOOKS ===": "",
|
31 |
| - "postinstall": "yarn setup" |
| 31 | + "postinstall": "SKIP_INSTALL=true yarn setup" |
32 | 32 | },
|
33 | 33 | "license": "MIT",
|
34 | 34 | "resolutions": {
|
|
88 | 88 | "@vitejs/plugin-react": "^3.0.0",
|
89 | 89 | "chromatic": "^6.17.0",
|
90 | 90 | "concurrently": "^8.0.1",
|
| 91 | + "dotenv-cli": "^7.2.1", |
91 | 92 | "eslint": "^8.34.0",
|
92 | 93 | "eslint-import-resolver-typescript": "^3.5.3",
|
93 | 94 | "eslint-plugin-import": "^2.27.5",
|
|
0 commit comments