Skip to content

Commit

Permalink
chore: use tsup for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 25, 2023
1 parent e4da0f0 commit 0d5962b
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
"main": "build/index.js",
"type": "module",
"files": [
"build/factories",
"build/modules",
"build/src",
"build/index.d.ts",
"build/index.js"
"build"
],
"exports": {
".": "./build/index.js",
Expand All @@ -27,7 +23,7 @@
"quick:test": "glob -c \"node --enable-source-maps --loader=ts-node/esm --test-reporter=spec --test\" \"tests/*.spec.ts\"",
"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",
"release": "np",
"prepublishOnly": "npm run build",
Expand Down Expand Up @@ -60,6 +56,7 @@
"np": "^8.0.4",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down Expand Up @@ -123,5 +120,19 @@
"modules/core/**",
"src/reporters/**"
]
},
"tsup": {
"entry": [
"./index.ts",
"./src/types.ts",
"./src/reporters/main.ts",
"./factories/main.ts",
"./modules/core/main.ts"
],
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": true,
"target": "esnext"
}
}

0 comments on commit 0d5962b

Please sign in to comment.