Skip to content

Commit 9faab60

Browse files
authored
Merge pull request #38 from kshashikumar/UAT
updated cli js to support package path
2 parents 0136ad3 + 87c5b3d commit 9faab60

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cli.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
#!/usr/bin/env node
2-
require("nodemon")({ script: "src/index.js" });
1+
const path = require("path");
2+
const nodemon = require("nodemon");
3+
const scriptPath = path.resolve(__dirname, "src/index.js");
4+
5+
nodemon({ script: scriptPath });

0 commit comments

Comments
 (0)