Skip to content

Commit f5f650a

Browse files
author
infodusha
committed
fix: make bin work
1 parent e8fee89 commit f5f650a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Define custom element to import in html",
55
"main": "dist/index.js",
66
"type": "module",
7-
"bin": "dist/bin.js",
7+
"bin": {
8+
"define-html": "dist/bin.js"
9+
},
810
"scripts": {
911
"start": "http-server --cors --a localhost -p 3000",
1012
"watch": "bun build ./src/index.ts --outdir ./dist --watch",

src/bin.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import fg from "fast-glob";
24
import { JSDOM } from "jsdom";
35

0 commit comments

Comments
 (0)