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 Oct 16, 2023
1 parent 084cab3 commit 8c53e45
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"main": "build/index.js",
"type": "module",
"files": [
"build/src",
"build/factories",
"build/index.d.ts",
"build/index.js"
"build"
],
"exports": {
".": "./build/index.js",
Expand All @@ -27,7 +24,7 @@
"test": "cross-env NODE_DEBUG=adonisjs:hash c8 npm run vscode: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",
"release": "np",
"version": "npm run build",
Expand Down Expand Up @@ -67,6 +64,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 @@ -121,5 +119,21 @@
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config"
"prettier": "@adonisjs/prettier-config",
"tsup": {
"entry": [
"./index.ts",
"./src/drivers/argon.ts",
"./src/drivers/bcrypt.ts",
"./src/drivers/scrypt.ts",
"./src/phc_formatter.ts",
"./src/types.ts",
"./factories/main.ts"
],
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": true,
"target": "esnext"
}
}

0 comments on commit 8c53e45

Please sign in to comment.