Skip to content

Commit 23ea817

Browse files
chore(pkg): publish a minified version (#111)
1 parent e73b253 commit 23ea817

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"author": "Douglas Duteil <douglasduteil@gmail.com> (https://douglasduteil.github.io/)",
1818
"type": "module",
1919
"main": "dist/index.js",
20-
"unpkg": "dist/index.js",
20+
"unpkg": "dist/index.min.js",
2121
"module": "index.ts",
2222
"files": [
2323
"dist",
2424
"index.ts"
2525
],
2626
"scripts": {
27-
"build": "bun build index.ts --outdir dist",
27+
"build": "bun run scripts/build.ts",
2828
"dev": "bun start",
2929
"test": "bun test"
3030
},

scripts/build.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { $ } from "bun";
2+
3+
await Promise.all([
4+
$`bun build index.ts --outdir dist`,
5+
$`bun build index.ts --minify --outfile=dist/index.min.js`,
6+
]);

0 commit comments

Comments
 (0)