diff --git a/build.ts b/build.ts new file mode 100644 index 0000000..6553d77 --- /dev/null +++ b/build.ts @@ -0,0 +1,7 @@ +import dts from 'bun-plugin-dts' + +await Bun.build({ + entrypoints: ['./index.ts'], + outdir: 'dist', + plugins: [dts()], +}) diff --git a/bun.lockb b/bun.lockb index 1c860e7..e6a39ea 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index df6a705..7fdc07e 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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" } }