We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c583866 commit 40680c0Copy full SHA for 40680c0
src/compiler/scenari/scPaths.ts
@@ -1,13 +1,14 @@
1
import * as fs from "fs";
2
import * as path from "path";
3
export const SC_WUI_SCHEME = "sc+wui:";
4
+export const SC_MODEL_TSCONFIG = "tsconfig.model.json";
5
6
let searchDir = __dirname;
7
let wuiRootDir: string | undefined;
8
9
while (!wuiRootDir) {
- const testDir = path.resolve(searchDir, "Wui_Bootstrap");
10
- if (fs.existsSync(testDir)) wuiRootDir = testDir;
+ const testFile = path.resolve(searchDir, SC_MODEL_TSCONFIG);
11
+ if (fs.existsSync(testFile)) wuiRootDir = searchDir;
12
const newSearchDir = path.dirname(searchDir);
13
if (newSearchDir === searchDir) break;
14
searchDir = newSearchDir;
0 commit comments