Skip to content

Commit

Permalink
Fix ESM exports between packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 23, 2023
1 parent e4a7531 commit e2a575d
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 10 deletions.
4 changes: 4 additions & 0 deletions packages/esbuild-why/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/preset-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
"repository": "ai/size-limit",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/preset-big-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
"repository": "ai/size-limit",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/preset-small-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
"repository": "ai/size-limit",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/size-limit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./rm": "./rm.js",
"./package.json": "./package.json"
},
"dependencies": {
"bytes-iec": "^3.1.1",
"chokidar": "^3.5.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/webpack-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/webpack-why/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0",
"webpack": "^4.0.0 || ^5.0.0"
Expand Down
4 changes: 4 additions & 0 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"peerDependencies": {
"size-limit": "10.0.0"
},
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2a575d

Please sign in to comment.