|
5 | 5 | "preinstall": "npx only-allow pnpm",
|
6 | 6 | "prepare": "husky install",
|
7 | 7 | "build": "npm run build:github",
|
8 |
| - "build:docs-api": "ts-node --project ./scripts/tsconfig.json ./scripts/docs", |
| 8 | + "build:docs-api": "pnpm run tsx ./scripts/docs", |
9 | 9 | "build:github": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=taro docusaurus build --out-dir build/taro-docs",
|
10 | 10 | "build:independent": "cross-env NODE_OPTIONS=--max-old-space-size=20480 docusaurus build --out-dir dist",
|
11 | 11 | "build:zone": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=zone docusaurus build --out-dir dist",
|
|
15 | 15 | "docusaurus": "docusaurus",
|
16 | 16 | "lint": "eslint ./ --ext js,ts,tsx,md,mdx",
|
17 | 17 | "lint:style": "stylelint ./**/*.{css,scss}",
|
18 |
| - "notion": "ts-node -r tsconfig-paths/register --project ./scripts/tsconfig.json --files ./scripts/notion/sync", |
19 |
| - "notion:update": "ts-node -r tsconfig-paths/register --project ./scripts/tsconfig.json --files ./scripts/notion/update", |
| 18 | + "notion": "pnpm run tsx --files ./scripts/notion/sync", |
| 19 | + "notion:update": "pnpm run tsx --files ./scripts/notion/update", |
20 | 20 | "serve": "docusaurus serve",
|
21 | 21 | "start": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=taro docusaurus start",
|
22 | 22 | "start:en": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=taro docusaurus start --locale en",
|
23 | 23 | "swizzle": "docusaurus swizzle",
|
24 |
| - "trans:en": "docusaurus write-translations --locale en" |
| 24 | + "trans:en": "docusaurus write-translations --locale en", |
| 25 | + "tsx": "ts-node --skipIgnore --project ./scripts/tsconfig.json" |
25 | 26 | },
|
26 | 27 | "dependencies": {
|
27 | 28 | "@docusaurus/core": "^2.4.3",
|
|
36 | 37 | "miniapp-types": "^1.1.18",
|
37 | 38 | "prism-react-renderer": "^1.3.1",
|
38 | 39 | "react": "^17.0.2",
|
39 |
| - "react-dom": "^17.0.2", |
40 |
| - "tsconfig-paths": "^3.14.1" |
| 40 | + "react-dom": "^17.0.2" |
41 | 41 | },
|
42 | 42 | "devDependencies": {
|
43 | 43 | "@algolia/client-search": "^4.13.0",
|
44 | 44 | "@babel/core": "^7.19.1",
|
45 |
| - "@commitlint/cli": "^16.3.0", |
46 |
| - "@commitlint/config-conventional": "^16.2.4", |
| 45 | + "@commitlint/cli": "^17.6.6", |
| 46 | + "@commitlint/config-conventional": "^17.6.6", |
47 | 47 | "@tarojs/components": "latest",
|
48 | 48 | "@tarojs/runtime": "latest",
|
49 | 49 | "@tsconfig/docusaurus": "^1.0.5",
|
| 50 | + "@tsconfig/node18": "^18.2.2", |
50 | 51 | "@types/lodash": "^4.14.182",
|
51 | 52 | "@types/node": "^17.0.30",
|
52 | 53 | "@types/react": "^17.0.44",
|
|
84 | 85 | "stylelint-config-standard-scss": "^3.0.0",
|
85 | 86 | "stylelint-order": "^5.0.0",
|
86 | 87 | "swc-loader": "^0.1.16",
|
87 |
| - "ts-node": "^10.7.0", |
88 |
| - "typescript": "^5.2.2", |
| 88 | + "ts-node": "^10.9.1", |
| 89 | + "tsconfig-paths": "^3.14.1", |
| 90 | + "typescript": "^5.3.3", |
89 | 91 | "unique-commit-id": "^1.0.0",
|
90 | 92 | "vue": "^3.2.39",
|
91 | 93 | "webpack": "^5.88.2",
|
|
0 commit comments