Skip to content

Commit 94c0f89

Browse files
committed
fix(build): resolve tslib export error by pinning rollup-plugin-typescript2
Fix: - Add resolutions field to force rollup-plugin-typescript2@^0.31.0 - This version has compatible tslib exports configuration
1 parent a4c98d2 commit 94c0f89

File tree

2 files changed

+11
-47
lines changed

2 files changed

+11
-47
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"workspaces": [
88
"packages/*"
99
],
10+
"resolutions": {
11+
"**/rollup-plugin-typescript2": "^0.31.0"
12+
},
1013
"scripts": {
1114
"start": "vuepress dev docs",
1215
"build": "formily-tpl build",
@@ -105,5 +108,6 @@
105108
},
106109
"peerDependencies": {
107110
"vue": "^3.2.24"
108-
}
111+
},
112+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
109113
}

yarn.lock

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@
21912191
estree-walker "^1.0.1"
21922192
picomatch "^2.2.2"
21932193

2194-
"@rollup/pluginutils@^4.0.0", "@rollup/pluginutils@^4.1.0", "@rollup/pluginutils@^4.1.2", "@rollup/pluginutils@^4.2.0":
2194+
"@rollup/pluginutils@^4.0.0", "@rollup/pluginutils@^4.1.2", "@rollup/pluginutils@^4.2.0":
21952195
version "4.2.1"
21962196
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d"
21972197
integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==
@@ -6729,7 +6729,7 @@ find-cache-dir@^2.1.0:
67296729
make-dir "^2.0.0"
67306730
pkg-dir "^3.0.0"
67316731

6732-
find-cache-dir@^3.3.1, find-cache-dir@^3.3.2:
6732+
find-cache-dir@^3.3.2:
67336733
version "3.3.2"
67346734
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b"
67356735
integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==
@@ -6908,15 +6908,6 @@ fs-exists-sync@^0.1.0:
69086908
resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add"
69096909
integrity sha512-cR/vflFyPZtrN6b38ZyWxpWdhlXrzZEBawlpBQMq7033xVY7/kg0GDMBK5jg8lDYQckdJ5x/YC88lM3C7VMsLg==
69106910

6911-
fs-extra@8.1.0:
6912-
version "8.1.0"
6913-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
6914-
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
6915-
dependencies:
6916-
graceful-fs "^4.2.0"
6917-
jsonfile "^4.0.0"
6918-
universalify "^0.1.0"
6919-
69206911
fs-extra@^10.0.0:
69216912
version "10.1.0"
69226913
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
@@ -8134,7 +8125,7 @@ is-ci@^2.0.0:
81348125
dependencies:
81358126
ci-info "^2.0.0"
81368127

8137-
is-core-module@^2.13.0, is-core-module@^2.13.1, is-core-module@^2.2.0, is-core-module@^2.5.0:
8128+
is-core-module@^2.13.0, is-core-module@^2.13.1, is-core-module@^2.5.0:
81388129
version "2.14.0"
81398130
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.14.0.tgz#43b8ef9f46a6a08888db67b1ffd4ec9e3dfd59d1"
81408131
integrity sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==
@@ -9283,13 +9274,6 @@ jsonfile@^3.0.0:
92839274
optionalDependencies:
92849275
graceful-fs "^4.1.6"
92859276

9286-
jsonfile@^4.0.0:
9287-
version "4.0.0"
9288-
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
9289-
integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==
9290-
optionalDependencies:
9291-
graceful-fs "^4.1.6"
9292-
92939277
jsonfile@^6.0.1:
92949278
version "6.1.0"
92959279
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
@@ -11472,7 +11456,7 @@ path-key@^4.0.0:
1147211456
resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18"
1147311457
integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==
1147411458

11475-
path-parse@^1.0.6, path-parse@^1.0.7:
11459+
path-parse@^1.0.7:
1147611460
version "1.0.7"
1147711461
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
1147811462
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
@@ -12596,14 +12580,6 @@ resolve.exports@^1.1.0:
1259612580
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.1.tgz#05cfd5b3edf641571fd46fa608b610dda9ead999"
1259712581
integrity sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==
1259812582

12599-
resolve@1.20.0:
12600-
version "1.20.0"
12601-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
12602-
integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
12603-
dependencies:
12604-
is-core-module "^2.2.0"
12605-
path-parse "^1.0.6"
12606-
1260712583
resolve@>=1.9.0, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.11.1, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.4:
1260812584
version "1.22.8"
1260912585
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
@@ -12763,20 +12739,9 @@ rollup-plugin-terser@^7.0.2:
1276312739
serialize-javascript "^4.0.0"
1276412740
terser "^5.0.0"
1276512741

12766-
rollup-plugin-typescript2@^0.30.0:
12767-
version "0.30.0"
12768-
resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.30.0.tgz#1cc99ac2309bf4b9d0a3ebdbc2002aecd56083d3"
12769-
integrity sha512-NUFszIQyhgDdhRS9ya/VEmsnpTe+GERDMmFo0Y+kf8ds51Xy57nPNGglJY+W6x1vcouA7Au7nsTgsLFj2I0PxQ==
12770-
dependencies:
12771-
"@rollup/pluginutils" "^4.1.0"
12772-
find-cache-dir "^3.3.1"
12773-
fs-extra "8.1.0"
12774-
resolve "1.20.0"
12775-
tslib "2.1.0"
12776-
12777-
rollup-plugin-typescript2@^0.31.2:
12742+
rollup-plugin-typescript2@^0.30.0, rollup-plugin-typescript2@^0.31.0, rollup-plugin-typescript2@^0.31.2:
1277812743
version "0.31.2"
12779-
resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.31.2.tgz#463aa713a7e2bf85b92860094b9f7fb274c5a4d8"
12744+
resolved "https://registry.npmmirror.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.31.2.tgz#463aa713a7e2bf85b92860094b9f7fb274c5a4d8"
1278012745
integrity sha512-hRwEYR1C8xDGVVMFJQdEVnNAeWRvpaY97g5mp3IeLnzhNXzSVq78Ye/BJ9PAaUfN4DXa/uDnqerifMOaMFY54Q==
1278112746
dependencies:
1278212747
"@rollup/pluginutils" "^4.1.2"
@@ -14235,11 +14200,6 @@ tsconfig-paths@^3.15.0:
1423514200
minimist "^1.2.6"
1423614201
strip-bom "^3.0.0"
1423714202

14238-
tslib@2.1.0:
14239-
version "2.1.0"
14240-
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"
14241-
integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==
14242-
1424314203
tslib@^1.8.1, tslib@^1.9.0:
1424414204
version "1.14.1"
1424514205
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"

0 commit comments

Comments
 (0)