Skip to content

Commit

Permalink
chore: bundle using tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jul 28, 2023
1 parent 3aa1298 commit 134beb9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"main": "build/index.js",
"type": "module",
"files": [
"build/src",
"build/index.d.ts",
"build/index.js"
"build"
],
"exports": {
".": "./build/index.js",
Expand All @@ -21,7 +19,7 @@
"test": "c8 npm run quick:test",
"clean": "del-cli build",
"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsc",
"compile": "npm run lint && npm run clean && tsup-node",
"build": "npm run compile",
"prepublishOnly": "npm run build",
"lint": "eslint . --ext=.ts",
Expand Down Expand Up @@ -115,5 +113,16 @@
"exclude": [
"tests/**"
]
},
"tsup": {
"entry": [
"./index.ts",
"./src/types.ts"
],
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": true,
"target": "esnext"
}
}

0 comments on commit 134beb9

Please sign in to comment.