Skip to content

Commit 51cc33e

Browse files
authored
chore: 修复 yarn workspace 把本地的 s2-core 隐射到 esm 目录的问题 (#1301)
1 parent 766864a commit 51cc33e

File tree

6 files changed

+288
-223
lines changed

6 files changed

+288
-223
lines changed

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"vue:build": "yarn workspace @antv/s2-vue build",
3434
"vue:test": "yarn workspace @antv/s2-vue test",
3535
"vue:watch": " yarn workspace @antv/s2-vue watch",
36-
"build": "lerna run build --include-dependencies --stream --concurrency 1",
37-
"build:esm": "lerna run build:esm --include-dependencies --stream --concurrency 1",
38-
"build:umd": "lerna run build:umd --include-dependencies --stream --concurrency 1",
36+
"build": "lerna run build --include-dependencies --stream",
37+
"build:esm": "lerna run build:esm --include-dependencies --stream",
38+
"build:umd": "lerna run build:umd --include-dependencies --stream",
3939
"bundle:size": "lerna run bundle:size --stream",
4040
"release": "lerna exec --concurrency 1 --ignore @antv/s2-vue -- npx --no-install semantic-release",
4141
"prepublish:manual": "yarn build",
@@ -91,26 +91,26 @@
9191
"@babel/core": "^7.17.9",
9292
"@commitlint/cli": "^16.2.3",
9393
"@commitlint/config-conventional": "^16.2.1",
94-
"@originjs/vite-plugin-commonjs": "^1.0.1",
95-
"@rollup/plugin-alias": "^3.1.5",
96-
"@rollup/plugin-commonjs": "^21.0.0",
97-
"@rollup/plugin-node-resolve": "^13.0.5",
94+
"@originjs/vite-plugin-commonjs": "^1.0.3",
95+
"@rollup/plugin-alias": "^3.1.9",
96+
"@rollup/plugin-commonjs": "^21.1.0",
97+
"@rollup/plugin-node-resolve": "^13.2.1",
9898
"@rollup/plugin-replace": "^3.0.0",
9999
"@rollup/plugin-typescript": "^8.2.5",
100-
"@rushstack/eslint-patch": "^1.1.0",
100+
"@rushstack/eslint-patch": "^1.1.3",
101101
"@semantic-release/changelog": "^6.0.1",
102102
"@semantic-release/git": "^10.0.1",
103-
"@swc/core": "^1.2.159",
103+
"@swc/core": "^1.2.171",
104104
"@swc/jest": "^0.2.20",
105-
"@types/jest": "^27.0.2",
106-
"@types/lodash": "^4.14.175",
107-
"@types/node": "^16.10.4",
105+
"@types/jest": "^27.4.1",
106+
"@types/lodash": "^4.14.182",
107+
"@types/node": "^17.0.26",
108108
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
109109
"@typescript-eslint/eslint-plugin": "^5.0.0",
110110
"@typescript-eslint/parser": "^5.0.0",
111-
"@vitejs/plugin-react": "^1.0.6",
112-
"@vitejs/plugin-vue": "^2.2.4",
113-
"@vitejs/plugin-vue-jsx": "^1.3.8",
111+
"@vitejs/plugin-react": "^1.3.1",
112+
"@vitejs/plugin-vue": "^2.3.1",
113+
"@vitejs/plugin-vue-jsx": "^1.3.10",
114114
"@vue/eslint-config-prettier": "^7.0.0",
115115
"@vue/eslint-config-typescript": "^10.0.0",
116116
"@vue/vue3-jest": "^27.0.0-alpha.4",
@@ -120,7 +120,7 @@
120120
"bundlesize": "^0.18.1",
121121
"case-police": "^0.5.3",
122122
"concurrently": "^7.1.0",
123-
"conventional-changelog-cli": "^2.1.1",
123+
"conventional-changelog-cli": "^2.2.2",
124124
"cpx": "^1.5.0",
125125
"cross-env": "^7.0.3",
126126
"eslint": "^7.32.0",
@@ -143,30 +143,30 @@
143143
"jest-url-loader": "^0.1.0",
144144
"lerna": "^4.0.0",
145145
"less": "^4.1.2",
146-
"lint-staged": "^12.3.6",
146+
"lint-staged": "^12.4.0",
147147
"lodash-es": "^4.17.21",
148148
"markdownlint-cli": "^0.31.1",
149149
"npm-run-all": "^4.1.5",
150150
"ora": "^6.1.0",
151-
"postcss": "^8.4.7",
152-
"prettier": "2.6.0",
151+
"postcss": "^8.4.12",
152+
"prettier": "2.6.2",
153153
"rimraf": "^3.0.2",
154-
"rollup": "^2.58.0",
154+
"rollup": "^2.70.2",
155155
"rollup-plugin-peer-deps-external": "^2.2.4",
156-
"rollup-plugin-postcss": "^4.0.1",
156+
"rollup-plugin-postcss": "^4.0.2",
157157
"rollup-plugin-terser": "^7.0.2",
158-
"rollup-plugin-typescript2": "^0.30.0",
159-
"rollup-plugin-visualizer": "^5.5.2",
158+
"rollup-plugin-typescript2": "^0.31.2",
159+
"rollup-plugin-visualizer": "^5.6.0",
160160
"semantic-release": "^18.0.1",
161161
"semantic-release-monorepo": "^7.0.5",
162162
"stylelint": "^13.13.1",
163163
"stylelint-config-standard": "^22.0.0",
164164
"ts-jest": "^26.5.6",
165-
"tslib": "^2.3.1",
165+
"tslib": "^2.4.0",
166166
"ttypescript": "^1.5.13",
167-
"typescript": "^4.6.2",
168-
"vite": "^2.8.6",
169-
"vite-plugin-imp": "^2.1.6",
167+
"typescript": "^4.6.3",
168+
"vite": "^2.9.5",
169+
"vite-plugin-imp": "^2.1.8",
170170
"vue-jest": "^5.0.0-alpha.10"
171171
},
172172
"license": "MIT"

packages/s2-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"react-beautiful-dnd": "^13.1.0"
6767
},
6868
"devDependencies": {
69-
"@antv/s2": "^1.15.0-alpha.1",
69+
"@antv/s2": "*",
7070
"@ant-design/icons": "^4.7.0",
7171
"@testing-library/react": "^12.1.4",
7272
"@testing-library/react-hooks": "^7.0.2",

packages/s2-react/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ export default defineConfig({
4242
isDevMode ? 'development' : 'production',
4343
),
4444
},
45+
4546
plugins: [
4647
peerDepsExternal(),
47-
viteCommonjs(),
48+
!isDevMode && viteCommonjs(),
4849
react({
4950
jsxRuntime: 'classic',
5051
}),
5152
isAnalysisMode && visualizer({ gzipSize: true }),
5253
].filter(Boolean) as PluginOption[],
54+
5355
css: {
5456
preprocessorOptions: {
5557
less: {

packages/s2-vue/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353
},
5454
"peerDependencies": {
5555
"@antv/s2": ">=1.0.0",
56-
"vue": "^3.2.31"
56+
"vue": ">=3.x"
5757
},
5858
"dependencies": {
5959
"@vueuse/core": "^8.2.4"
6060
},
6161
"devDependencies": {
62+
"@antv/s2": "*",
6263
"@testing-library/vue": "^6.5.1",
6364
"@vue/tsconfig": "^0.1.3",
6465
"vue": "^3.2.31",

packages/s2-vue/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default defineConfig({
4545
},
4646
plugins: [
4747
peerDepsExternal(),
48-
viteCommonjs(),
48+
!isDevMode && viteCommonjs(),
4949
vue(),
5050
vueJsx(),
5151
isAnalysisMode && visualizer({ gzipSize: true }),

0 commit comments

Comments
 (0)