Skip to content

Commit

Permalink
fix bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jan 8, 2023
1 parent 2a1bf74 commit 43f73df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

import { main } from './bin/cli.mjs';

main();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"homepage": "https://github.com/idleberg/webvsc-cli#readme",
"type": "module",
"bin": {
"webvsc": "./bin/cli.mjs"
"webvsc": "./index.mjs"
},
"files": [
"bin",
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { program } from 'commander';
import * as actions from './actions';

(function () {
export function main() {
program
.command('convert <file...>')
.description('convert presets to JSON format')
Expand All @@ -19,4 +19,4 @@ import * as actions from './actions';
.action(actions.info);

program.parse();
})();
}

0 comments on commit 43f73df

Please sign in to comment.