Skip to content

Commit

Permalink
build: add bin to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Donovan-Ye committed Apr 23, 2024
1 parent 104d5f6 commit a4a514e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/notypos.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
'use strict'
import '../dist/index.mjs'
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
]
}
},
"bin": {
"notypos": "bin/notypos.mjs"
},
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"skipDefaultLibCheck": true,
"skipLibCheck": true
},
"exclude": ["eslint.config.js", "dist"]
"exclude": ["eslint.config.js", "dist", "bin"]
}

0 comments on commit a4a514e

Please sign in to comment.