Skip to content

Commit

Permalink
Build esm and cjs with tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Aug 11, 2023
1 parent 8d38010 commit 9e9e6ea
Show file tree
Hide file tree
Showing 2 changed files with 723 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"testing"
],
"scripts": {
"build": "tsup lib/msw-config.ts --dts --format esm,cjs",
"test": "yarn",
"format": "prettier --write .",
"format:check": "prettier --check .",
Expand All @@ -21,8 +22,21 @@
"miragejs": "^0.1.47",
"msw": "^0.39.2",
"prettier": "^3.0.1",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
},
"exports": {
".": {
"import": {
"types": "./dist/msw-config.d.ts",
"default": "./dist/msw-config.js"
},
"require": {
"types": "./dist/msw-config.d.cts",
"default": "./dist/msw-config.cjs"
}
}
},
"peerDependancies": {
"miragejs": "~0.1.43",
"msw": "^0.39.2"
Expand Down
Loading

0 comments on commit 9e9e6ea

Please sign in to comment.