Skip to content

Commit 934d9f9

Browse files
authored
Fix/script (#28)
* fix: 修复build问题 --------- Co-authored-by: zhuminghui2 <[email protected]>
1 parent 1cdc9ab commit 934d9f9

File tree

7 files changed

+1930
-838
lines changed

7 files changed

+1930
-838
lines changed

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build": "pnpm -r --filter=./packages/* run build",
1111
"clear-all": "rimraf **/node_modules",
1212
"version": "run-s version:*",
13-
"version:release": "pnpm --parallel -r --filter=./packages/* exec npm version ${npm_package_version}",
14-
"version:git": "git add . && git commit -m \"chore(release): publish ${npm_package_version}\"",
13+
"version:release": "pnpm --parallel -r --aggregate-output --filter=./packages/* exec npm version ${npm_package_version}",
14+
"version:git": "git add . && git commit -m \"chore(release): publish ${npm_package_version} --tag=beta\"",
1515
"test": "pnpm -r --filter=./tests/* run test"
1616
},
1717
"lint-staged": {
@@ -48,6 +48,7 @@
4848
"@types/node": "^17.0.33",
4949
"@typescript-eslint/eslint-plugin": "^5.40.1",
5050
"@typescript-eslint/parser": "^5.40.1",
51+
"concurrently": "^8.0.1",
5152
"eslint": "^8.25.0",
5253
"eslint-config-prettier": "^8.5.0",
5354
"eslint-plugin-import": "^2.26.0",
@@ -62,4 +63,4 @@
6263
"tslib": "^2.4.1",
6364
"typescript": "^4.8.4"
6465
}
65-
}
66+
}

packages/test-utils-dom/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
"devDependencies": {
2222
"@babel/core": "^7.8.0"
2323
}
24-
}
24+
}

packages/test-utils-react/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"dev:compile": "tsc --project ./tsconfig.json --watch",
1010
"build": "concurrently \"npm run build:runtime\" \"npm run build:compile\"",
1111
"build:runtime": "tsc --project ./tsconfig.runtime.json",
12-
"build:compile": "tsc --project ./tsconfig.json",
13-
"test": "jest"
12+
"build:compile": "tsc --project ./tsconfig.json"
1413
},
1514
"publishConfig": {
1615
"access": "public"
@@ -38,7 +37,6 @@
3837
"@tarojs/shared": "^3.6.0",
3938
"@tarojs/taro": "^3.6.0",
4039
"@tarojs/taro-h5": "^3.6.0",
41-
"concurrently": "^8.0.1",
4240
"react": "^18.0.0",
4341
"react-dom": "^18.0.0"
4442
},
@@ -55,4 +53,4 @@
5553
"react": "^18.0.0",
5654
"react-dom": "^18.0.0"
5755
}
58-
}
56+
}

packages/test-utils-shared/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"@tarojs/taro-h5": "^3.6.0",
2626
"@babel/core": "^7.8.0"
2727
}
28-
}
28+
}

packages/test-utils-vue/package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"main": "dist/index.js",
55
"license": "MIT",
66
"scripts": {
7-
"dev": "tsc -w",
8-
"build": "tsc"
7+
"dev": "concurrently \"npm run dev:runtime\" \"npm run dev:compile\"",
8+
"dev:runtime": "tsc --project ./tsconfig.runtime.json --watch",
9+
"dev:compile": "tsc --project ./tsconfig.json --watch",
10+
"build": "concurrently \"npm run build:runtime\" \"npm run build:compile\"",
11+
"build:runtime": "tsc --project ./tsconfig.runtime.json",
12+
"build:compile": "tsc --project ./tsconfig.json"
913
},
1014
"types": "dist",
1115
"typings": "dist/index.d.ts",
@@ -48,4 +52,4 @@
4852
"@tarojs/runtime": "^3.6.0",
4953
"@tarojs/shared": "^3.6.0"
5054
}
51-
}
55+
}

packages/test-utils-vue3/package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"main": "dist/index.js",
55
"license": "MIT",
66
"scripts": {
7-
"dev": "tsc -w",
8-
"build": "tsc"
7+
"dev": "concurrently \"npm run dev:runtime\" \"npm run dev:compile\"",
8+
"dev:runtime": "tsc --project ./tsconfig.runtime.json --watch",
9+
"dev:compile": "tsc --project ./tsconfig.json --watch",
10+
"build": "concurrently \"npm run build:runtime\" \"npm run build:compile\"",
11+
"build:runtime": "tsc --project ./tsconfig.runtime.json",
12+
"build:compile": "tsc --project ./tsconfig.json"
913
},
1014
"types": "dist",
1115
"typings": "dist/index.d.ts",
@@ -52,4 +56,4 @@
5256
"optional": true
5357
}
5458
}
55-
}
59+
}

0 commit comments

Comments
 (0)