Skip to content

Commit

Permalink
perf: use "sideEffects" listing in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Apr 14, 2020
1 parent 9a3d5c6 commit 7271614
Show file tree
Hide file tree
Showing 39 changed files with 154 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/action-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/actionbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/circleloader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/coachmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/dropzone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/icons-workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"build": "node ./bin/build @adobe/spectrum-css-workflow-icons/dist/18"
},
Expand All @@ -48,7 +52,7 @@
"glob": "^7.1.3",
"http-server": "^0.11.1",
"path": "^0.12.7",
"prettier": "^1.16.1"
"prettier": "^2.0.2"
},
"peerDependencies": {
"lit-element": "^2.1.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/iconset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts",
"./lib/icons-demo.js",
"./src/icons-demo.ts"
],
"scripts": {},
"author": "",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/illustrated-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {},
"author": "",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {},
"author": "",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/menu-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/menu-item/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts",
"./stories/overlay-story-components.js",
"./stories/overlay-story-components.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/radio-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
1 change: 1 addition & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"/lib/",
"/src/"
],
"sideEffects": false,
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/sidenav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/status-light/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"custom-elements.json",
"*.css"
],
"sideEffects": [
"./*.css"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/tab-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/tab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/textfield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"/lib/",
"/src/"
],
"sideEffects": [
"./lib/index.js",
"./src/index.ts"
],
"scripts": {
"test": "karma start --coverage"
},
Expand Down
Loading

0 comments on commit 7271614

Please sign in to comment.