Skip to content

Commit

Permalink
Avoid GitHub Linguist from labeling bin/cmioc.ts as JS (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli authored Mar 29, 2024
1 parent eeb9523 commit 969346d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions bin/cmioc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require("../dist/src/cli.js");
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
"url": "https://github.com/guidanoli"
},
"files": [
"bin",
"dist"
],
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"bin": {
"cmioc": "dist/bin/cmioc.js"
"cmioc": "bin/cmioc.cjs"
},
"scripts": {
"cmioc": "ts-node bin/cmioc.ts",
"cmioc": "ts-node src/cli.ts",
"format": "prettier --check . --write",
"prepack": "tsc",
"test": "jest"
Expand Down
2 changes: 0 additions & 2 deletions bin/cmioc.ts → src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env node

import { Command, InvalidArgumentError } from "@commander-js/extra-typings";
import {
Address,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"strict": true,
"target": "ES2020"
},
"include": ["bin", "src", "package.json"]
"include": ["src", "package.json"]
}

0 comments on commit 969346d

Please sign in to comment.