Skip to content

Commit

Permalink
feat: 👷 add build script and dts dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBroughton committed Apr 17, 2024
1 parent 91e6d7c commit e15309c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import dts from 'bun-plugin-dts'

await Bun.build({
entrypoints: ['./index.ts'],
outdir: 'dist',
plugins: [dts()],
})
Binary file modified bun.lockb
Binary file not shown.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@
"bun"
],
"module": "index.ts",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "bun run build.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"changeset": "npx changeset",
"changeset:status": "npx changeset status --verbose",
"changeset:version": "npx changeset version"
Expand All @@ -29,6 +36,7 @@
"@antfu/eslint-config": "^2.14.0",
"@changesets/cli": "^2.27.1",
"@types/bun": "latest",
"bun-plugin-dts": "^0.2.3",
"eslint": "^9.0.0"
}
}

0 comments on commit e15309c

Please sign in to comment.