From 4b80a078ea8f45134bbc455c7b7bf4f960b183db Mon Sep 17 00:00:00 2001 From: hzh11012 <43038692+hzh11012@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:38:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20jssdk=E5=AF=BC=E5=87=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=97=B6=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=BC=BA=E5=A4=B1=20(#8182)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: jssdk自定义组件缺失依赖 * fix: 修复 ci 脚本报错 (#8169) --------- Co-authored-by: hezhihang Co-authored-by: liaoxuezhi <2betop.cn@gmail.com> --- examples/loader.ts | 8 +++++++- package.json | 3 ++- packages/amis-core/package.json | 2 +- packages/amis-ui/package.json | 2 +- packages/amis/package.json | 5 ++--- packages/office-viewer/package.json | 4 ++-- 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/examples/loader.ts b/examples/loader.ts index 20e4929aa..ce739972e 100644 --- a/examples/loader.ts +++ b/examples/loader.ts @@ -16,6 +16,7 @@ 'fflate': __moduleId('fflate'), 'moment': __moduleId('moment'), 'mobx': __moduleId('mobx'), + 'mobx-react': __moduleId('mobx-react'), 'mobx-state-tree': __moduleId('mobx-state-tree'), 'react-transition-group': __moduleId('react-transition-group'), 'papaparse': __moduleId('papaparse'), @@ -29,7 +30,12 @@ 'prop-types': __moduleId('prop-types'), 'qs': __moduleId('qs'), 'path-to-regexp': __moduleId('path-to-regexp'), - 'history': __moduleId('history') + 'history': __moduleId('history'), + 'tslib': __moduleId('tslib'), + '@fex/amis': __moduleId('amis'), + '@fex/amis-ui': __moduleId('amis-ui'), + '@fex/amis-core': __moduleId('amis-core'), + '@fex/amis-formula': __moduleId('amis-formula') }; Object.keys(mapping).forEach(key => { diff --git a/package.json b/package.json index 032c87dcb..19021a643 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ }, "dependencies": { "postcss": "^8.4.14", - "qs": "6.9.7" + "qs": "6.9.7", + "path-to-regexp": "^6.2.0" }, "devDependencies": { "@babel/generator": "^7.22.9", diff --git a/packages/amis-core/package.json b/packages/amis-core/package.json index fcd6e9345..9997eaf1e 100644 --- a/packages/amis-core/package.json +++ b/packages/amis-core/package.json @@ -13,7 +13,7 @@ "@rollup/plugin-node-resolve": "^14.1.0", "@rollup/plugin-replace": "^5.0.1", "@rollup/plugin-typescript": "^8.3.4", - "@testing-library/jest-dom": "^5.16.4", + "@testing-library/jest-dom": "^5.17.0", "@types/file-saver": "^2.0.1", "@types/hoist-non-react-statics": "^3.3.1", "@types/jest": "^28.1.0", diff --git a/packages/amis-ui/package.json b/packages/amis-ui/package.json index 6f0f5ea9e..8db330b9b 100644 --- a/packages/amis-ui/package.json +++ b/packages/amis-ui/package.json @@ -79,7 +79,7 @@ "@rollup/plugin-node-resolve": "^14.1.0", "@rollup/plugin-typescript": "^8.3.4", "@svgr/rollup": "^6.2.1", - "@testing-library/jest-dom": "^5.16.4", + "@testing-library/jest-dom": "^5.17.0", "@types/babel__core": "^7.1.19", "@types/jest": "^28.1.0", "@types/react": "^18.0.24", diff --git a/packages/amis/package.json b/packages/amis/package.json index 323c81a7a..1730570ec 100644 --- a/packages/amis/package.json +++ b/packages/amis/package.json @@ -82,7 +82,7 @@ "@rollup/plugin-node-resolve": "^14.1.0", "@rollup/plugin-typescript": "^8.3.4", "@svgr/rollup": "^6.2.1", - "@testing-library/jest-dom": "^5.16.4", + "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@types/async": "^2.0.45", "@types/codemirror": "^5.60.3", @@ -104,7 +104,7 @@ "@types/react-dom": "^18.0.8", "@types/react-onclickoutside": "^6.0.2", "@types/react-router-dom": "^5.3.3", - "@types/react-test-renderer": "^17.0.1", + "@types/react-test-renderer": "^18.0.0", "@types/react-transition-group": "4.4.3", "@types/sortablejs": "^1.3.32", "@types/tinymce": "^4.5.24", @@ -125,7 +125,6 @@ "marked": ">=4.0.12", "mkdirp": "^1.0.4", "moment-timezone": "^0.5.34", - "path-to-regexp": "^6.2.0", "postcss": "^8.4.6", "postcss-cli": "^9.1.0", "postcss-custom-properties": "^12.1.5", diff --git a/packages/office-viewer/package.json b/packages/office-viewer/package.json index be473f3d6..2255f77ad 100644 --- a/packages/office-viewer/package.json +++ b/packages/office-viewer/package.json @@ -50,7 +50,7 @@ "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^14.1.0", "@rollup/plugin-typescript": "^8.3.4", - "@testing-library/jest-dom": "^5.16.4", + "@testing-library/jest-dom": "^5.17.0", "@types/jest": "^28.1.0", "@types/prettier": "^2.7.3", "amis-formula": "^2.7.2", @@ -100,4 +100,4 @@ "printBasicPrototype": false } } -} \ No newline at end of file +}