Skip to content

Commit 797e0d0

Browse files
authored
Merge pull request #66 from darmo82/fix/Windows-CLI-issue-#62
Fix issue #62. Set isCli true when lounch so on Windows
2 parents cac6db2 + 9a462cf commit 797e0d0

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)