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 23, 2023
1 parent 592ac64 commit f2d509d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"main": "build/index.js",
"type": "module",
"files": [
"build/src",
"build/index.d.ts",
"build/index.js"
"build"
],
"exports": {
".": "./build/index.js"
Expand All @@ -19,9 +17,9 @@
"pretest": "npm run lint",
"test": "c8 npm run quick:test",
"clean": "del-cli build",
"copy:files": "copyfiles 'src/files/**/*{.png,.gif,.jpg,.pdf,.docx,.xlsx}' build",
"copy:files": "copyfiles --flat 'src/files/**/*{.png,.gif,.jpg,.pdf,.docx,.xlsx}' build",
"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsc && npm run copy:files",
"compile": "npm run lint && npm run clean && tsup-node && npm run copy:files",
"build": "npm run compile",
"release": "np",
"version": "npm run build",
Expand Down Expand Up @@ -59,6 +57,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 @@ -99,5 +98,15 @@
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config"
"prettier": "@adonisjs/prettier-config",
"tsup": {
"entry": [
"./index.ts"
],
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": true,
"target": "esnext"
}
}

0 comments on commit f2d509d

Please sign in to comment.