Skip to content

Commit 9a462cf

Browse files
committed
Fix issue #62. Set isCli true when lounch so on Windows
Signed-off-by: darmo82 <dario.monfredini@gmail.com>
1 parent cac6db2 commit 9a462cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { allExtensions, referencesFileName } from "./extensions";
1212
import { getBranchLibraryName } from "./builders/environment";
1313
import { getFiles, renameFiles, replaceIncludes } from './utils';
1414

15-
const isCli = process.argv.length >= 2 && process.argv[1].endsWith(`so`);
15+
const isCli = process.argv.length >= 2 && (process.argv[1].endsWith(`so`) || process.argv[1].endsWith(`index.js`));
1616

1717
if (isCli || process.env.VSCODE_INSPECTOR_OPTIONS) {
1818
cliSettings.cliMode = true;

0 commit comments

Comments
 (0)