From 66f206ec4dd3b01a79c2b6a67ccf4c93e18262ba Mon Sep 17 00:00:00 2001 From: Tane Morgan <464864+tanem@users.noreply.github.com> Date: Mon, 16 Sep 2019 10:37:26 +1200 Subject: [PATCH] Use tslib to dedupe TypeScript helper functions --- package.json | 3 ++- tsconfig.json | 3 ++- yarn.lock | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index efc6f667..7e5f9d34 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ "screenfull": "^4.1.0", "set-harmonic-interval": "^1.0.0", "throttle-debounce": "^2.0.1", - "ts-easing": "^0.2.0" + "ts-easing": "^0.2.0", + "tslib": "^1.10.0" }, "peerDependencies": { "react": "^16.8.0", diff --git a/tsconfig.json b/tsconfig.json index b24d6137..135d602b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,8 @@ "noImplicitAny": false, "noFallthroughCasesInSwitch": true, "outDir": "lib", - "lib": ["es2018", "dom"] + "lib": ["es2018", "dom"], + "importHelpers": true }, "exclude": [ "node_modules", diff --git a/yarn.lock b/yarn.lock index c8bab952..6ca09a66 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12342,6 +12342,11 @@ tslib@1.9.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" integrity sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ== +tslib@^1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" + integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== + tslint-config-prettier@1.18.0: version "1.18.0" resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37"