Skip to content

Commit

Permalink
Fix CRA v5 compatibility by publishing lib and app as CommonJS packages
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Mar 8, 2022
1 parent aaa8c99 commit 5dc11d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"main": "src/index.ts",
"publishConfig": {
"type": "commonjs",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"main": "src/index.ts",
"publishConfig": {
"type": "commonjs",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 5dc11d2

Please sign in to comment.