Skip to content

Commit

Permalink
perf: use imported TypeScript helpers instead of inlining them
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Oct 10, 2019
1 parent ec1d79c commit cc2bd0a
Show file tree
Hide file tree
Showing 32 changed files with 76 additions and 17 deletions.
3 changes: 2 additions & 1 deletion packages/action-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"dependencies": {
"@spectrum-web-components/dropdown": "^0.1.3",
"@spectrum-web-components/menu": "^0.1.3",
"@spectrum-web-components/menu-item": "^0.1.3"
"@spectrum-web-components/menu-item": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@spectrum-web-components/tab-list": "^0.1.3",
"@spectrum-web-components/textfield": "^0.1.3",
"@spectrum-web-components/themes": "^0.1.3",
"@spectrum-web-components/tooltip": "^0.1.0"
"@spectrum-web-components/tooltip": "^0.1.0",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"dependencies": {
"@spectrum-web-components/icon": "^0.1.3",
"@spectrum-web-components/icons": "^0.1.3",
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@spectrum-web-components/menu": "^0.1.3",
"@spectrum-web-components/menu-item": "^0.1.3",
"@spectrum-web-components/popover": "^0.1.3",
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/dropzone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/iconset": "^0.1.3"
"@spectrum-web-components/iconset": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@spectrum-web-components/iconset": "^0.1.3"
"@spectrum-web-components/iconset": "^0.1.3",
"tslib": "^1.10.0"
},
"peerDependencies": {
"lit-element": "^2.1.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/iconset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/illustrated-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/menu-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/menu-item/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@spectrum-web-components/button": "^0.1.3",
"@spectrum-web-components/icon": "^0.1.3",
"@spectrum-web-components/icons": "^0.1.3",
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/overlay-root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/overlay-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/overlay-root": "^0.1.3"
"@spectrum-web-components/overlay-root": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/radio-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/radio": "^0.1.3"
"@spectrum-web-components/radio": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/sidenav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/checkbox": "^0.1.3"
"@spectrum-web-components/checkbox": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/tab-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/tab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/textfield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"dependencies": {
"@spectrum-web-components/icon": "^0.1.3",
"@spectrum-web-components/icons": "^0.1.3",
"@spectrum-web-components/shared": "^0.1.3"
"@spectrum-web-components/shared": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 2 additions & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lit-html": "^1.0.0"
},
"dependencies": {
"@spectrum-web-components/styles": "^0.1.3"
"@spectrum-web-components/styles": "^0.1.3",
"tslib": "^1.10.0"
}
}
3 changes: 3 additions & 0 deletions packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
"peerDependencies": {
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
},
"dependencies": {
"tslib": "^1.10.0"
}
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"noUnusedLocals": true,
"target": "es2017",
"skipLibCheck": true,
"importHelpers": true,
"types": [
"chai",
"sinon",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16570,7 +16570,7 @@ ts-simple-type@~0.3.5:
resolved "https://registry.yarnpkg.com/ts-simple-type/-/ts-simple-type-0.3.6.tgz#aa5a107c420c3ebe9cf5de2fe426984d0f77c665"
integrity sha512-dybO9ebUqOzldR5+SPP1uQSbxl/uiSIvjRC7dFuU45XE7H+4EoQMuxCFKoZj99qEo7pdDWSx52DEQAPZqL3SFg==

tslib@^1.8.1, tslib@^1.9.0:
tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
Expand Down

0 comments on commit cc2bd0a

Please sign in to comment.