Skip to content

Commit cc45953

Browse files
authored
fix: 修复 form-data 依赖的缺失;增加 cross-env 以兼容 Windows 和 Linux 的环境变量设置 (#14981)
* fix: 修复 form-data 依赖的缺失;增加 cross-env 以兼容 Windows 和 Linux 的环境变量设置 * fix: fix package.json/pnpm-lock.yaml; add .npmrc * fix: update the pnpm-lock.yaml file and use the locked version * fix: update pnpm-lock.yaml
1 parent 0e7c773 commit cc45953

File tree

3 files changed

+520
-304
lines changed

3 files changed

+520
-304
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=true

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
"scripts": {
2424
"build": "tsx scripts/workflow/build-routes.ts",
2525
"build:docs": "tsx scripts/workflow/build-docs.ts",
26-
"dev": "NODE_ENV=dev tsx watch --no-cache lib/index.ts",
27-
"dev:cache": "NODE_ENV=production tsx watch lib/index.ts",
26+
"dev": "cross-env NODE_ENV=dev tsx watch --no-cache lib/index.ts",
27+
"dev:cache": "cross-env NODE_ENV=production tsx watch lib/index.ts",
2828
"format": "eslint --cache --fix \"**/*.{ts,js,yml}\" && prettier \"**/*.{ts,js,json}\" --write",
2929
"format:check": "eslint --cache \"**/*.{ts,js,yml}\" && prettier \"**/*.{ts,js,json}\" --check",
3030
"format:staged": "lint-staged",
31-
"vitest": "NODE_ENV=test vitest",
32-
"vitest:fullroutes": "NODE_ENV=test FULL_ROUTES_TEST=true vitest --reporter=json --reporter=default --outputFile=\"./assets/build/test-full-routes.json\" routes",
33-
"vitest:coverage": "NODE_ENV=test vitest --coverage.enabled --reporter=junit",
34-
"vitest:watch": "NODE_ENV=test vitest --watch",
31+
"vitest": "cross-env NODE_ENV=test vitest",
32+
"vitest:fullroutes": "cross-env NODE_ENV=test FULL_ROUTES_TEST=true vitest --reporter=json --reporter=default --outputFile=\"./assets/build/test-full-routes.json\" routes",
33+
"vitest:coverage": "cross-env NODE_ENV=test vitest --coverage.enabled --reporter=junit",
34+
"vitest:watch": "cross-env NODE_ENV=test vitest --watch",
3535
"lint": "eslint --cache .",
3636
"prepare": "husky || true",
37-
"profiling": "NODE_ENV=production tsx --prof lib/index.ts",
38-
"start": "NODE_ENV=production tsx lib/index.ts",
37+
"profiling": "cross-env NODE_ENV=production tsx --prof lib/index.ts",
38+
"start": "cross-env NODE_ENV=production tsx lib/index.ts",
3939
"test": "npm run format:check && npm run vitest:coverage"
4040
},
4141
"lint-staged": {
@@ -63,6 +63,7 @@
6363
"cheerio": "1.0.0-rc.12",
6464
"chrono-node": "2.7.5",
6565
"city-timezones": "1.2.1",
66+
"cross-env": "7.0.3",
6667
"crypto-js": "4.2.0",
6768
"currency-symbol-map": "5.1.0",
6869
"dayjs": "1.11.8",
@@ -71,6 +72,7 @@
7172
"entities": "4.5.0",
7273
"etag": "1.8.1",
7374
"fanfou-sdk": "5.0.0",
75+
"form-data": "4.0.0",
7476
"git-rev-sync": "3.0.2",
7577
"googleapis": "134.0.0",
7678
"got": "14.2.1",

0 commit comments

Comments
 (0)