|
45 | 45 | }, |
46 | 46 | "scripts": { |
47 | 47 | "build": "npm run clean && run-p -c --aggregate-output build:* && run-p -c --aggregate-output build:clean:*", |
48 | | - "build:cjs": "tsc", |
49 | | - "build:esm": "tsc -p tsconfig.esm.json", |
50 | | - "build:clean:cjs": "node scripts/rename-dist-cjs-files.mjs", |
51 | | - "build:clean:esm": "node scripts/rename-dist-esm-files.mjs", |
| 48 | + "build:cjs": "dotenvx -q run -f .env.local -- tsc", |
| 49 | + "build:esm": "dotenvx -q run -f .env.local -- tsc -p tsconfig.esm.json", |
| 50 | + "build:clean:cjs": "dotenvx -q run -f .env.local -- node scripts/rename-dist-cjs-files.mjs", |
| 51 | + "build:clean:esm": "dotenvx -q run -f .env.local -- node scripts/rename-dist-esm-files.mjs", |
52 | 52 | "check": "run-p -c --aggregate-output check:*", |
53 | | - "check:lint": "eslint --report-unused-disable-directives .", |
| 53 | + "check:lint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives .", |
54 | 54 | "check:lint:fix": "npm run check:lint -- --fix", |
55 | | - "check:tsc": "tsc", |
| 55 | + "check:tsc": "dotenvx -q run -f .env.local -- tsc", |
56 | 56 | "coverage": "run-s coverage:*", |
57 | 57 | "coverage:test": "run-s test:prepare test:unit:coverage", |
58 | | - "coverage:type": "type-coverage --detail", |
| 58 | + "coverage:type": "dotenvx -q run -f .env.local -- type-coverage --detail", |
59 | 59 | "clean": "run-p -c --aggregate-output clean:*", |
60 | 60 | "clean:dist": "del-cli 'dist'", |
61 | 61 | "clean:declarations": "del-cli '*.d.ts' '!api*.d.ts'", |
62 | 62 | "fix": "run-s lint:fix check:lint:fix", |
63 | 63 | "generate-sdk": "run-s generate-sdk:*", |
64 | | - "generate-sdk:01-prettify": "node scripts/prettify-base-json.mjs", |
65 | | - "generate-sdk:02-generate": "node scripts/generate-types.mjs > types/api.d.ts", |
| 64 | + "generate-sdk:01-prettify": "dotenvx -q run -f .env.local -- node scripts/prettify-base-json.mjs", |
| 65 | + "generate-sdk:02-generate": "dotenvx -q run -f .env.local -- node scripts/generate-types.mjs > types/api.d.ts", |
66 | 66 | "generate-sdk:03-clean-api": "npm run fix && npm run fix", |
67 | 67 | "knip:dependencies": "knip --dependencies", |
68 | 68 | "knip:exports": "knip --include exports,duplicates", |
69 | | - "lint": "oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .", |
| 69 | + "lint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .", |
70 | 70 | "lint:fix": "npm run lint -- --fix && npm run lint:fix:fast", |
71 | | - "lint:fix:fast": "biome format --write", |
72 | | - "lint-staged": "lint-staged", |
| 71 | + "lint:fix:fast": "dotenvx -q run -f .env.local -- biome format --write", |
| 72 | + "lint-staged": "dotenvx -q run -f .env.local -- lint-staged", |
73 | 73 | "precommit": "lint-staged", |
74 | | - "prepare": "husky", |
| 74 | + "prepare": "dotenvx -q run -f .env.local -- husky", |
75 | 75 | "prepublishOnly": "run-s build", |
76 | 76 | "test": "run-s check test:*", |
77 | | - "test:prepare": "cross-env VITEST=1 npm run build", |
78 | | - "test:unit": "vitest --run", |
79 | | - "test:unit:update": "vitest --run --update", |
80 | | - "test:unit:coverage": "vitest run --coverage", |
| 77 | + "test:prepare": "dotenvx -q run -f .env.test -- npm run build", |
| 78 | + "test:unit": "dotenvx -q run -f .env.test -- vitest --run", |
| 79 | + "test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update", |
| 80 | + "test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage", |
81 | 81 | "test-ci": "run-s build test:*", |
82 | 82 | "update": "run-p --aggregate-output update:**", |
83 | 83 | "update:deps": "npx --yes npm-check-updates" |
|
87 | 87 | }, |
88 | 88 | "devDependencies": { |
89 | 89 | "@biomejs/biome": "1.9.4", |
| 90 | + "@dotenvx/dotenvx": "1.44.0", |
90 | 91 | "@eslint/compat": "1.2.9", |
91 | 92 | "@eslint/js": "9.26.0", |
92 | 93 | "@types/node": "22.15.17", |
93 | 94 | "@typescript-eslint/parser": "8.32.0", |
94 | 95 | "@vitest/coverage-v8": "3.1.3", |
95 | | - "cross-env": "7.0.3", |
96 | 96 | "del-cli": "6.0.0", |
97 | 97 | "eslint": "9.26.0", |
98 | 98 | "eslint-import-resolver-typescript": "4.3.4", |
|
0 commit comments