Skip to content

Commit c213a33

Browse files
committed
fix: cli args not work
1 parent f4fb765 commit c213a33

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ const { execSync } = require("child_process");
33
const path = require("path");
44

55
try {
6-
execSync(`node --inspect ${path.join(__dirname, "../src/index.js")}`, {
6+
const main = path.join(__dirname, "../src/index.js");
7+
const argv = process.argv.slice(2).join(' ');
8+
execSync(`node --inspect ${main} ${argv}`, {
79
stdio: "inherit",
810
});
9-
} catch (error) {
11+
} catch (error) {
1012
process.exit(1);
1113
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logcat-in-devtools",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "View android adb logcat logs in chrome devtools console",
55
"homepage": "https://github.com/nieheyong/logcat-in-devtools.git",
66
"repository": {

0 commit comments

Comments
 (0)