Skip to content

Commit 40680c0

Browse files
author
dar
committed
Fix the search path of the scenari model tsconfig
1 parent c583866 commit 40680c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compiler/scenari/scPaths.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import * as fs from "fs";
22
import * as path from "path";
33
export const SC_WUI_SCHEME = "sc+wui:";
4+
export const SC_MODEL_TSCONFIG = "tsconfig.model.json";
45

56
let searchDir = __dirname;
67
let wuiRootDir: string | undefined;
78

89
while (!wuiRootDir) {
9-
const testDir = path.resolve(searchDir, "Wui_Bootstrap");
10-
if (fs.existsSync(testDir)) wuiRootDir = testDir;
10+
const testFile = path.resolve(searchDir, SC_MODEL_TSCONFIG);
11+
if (fs.existsSync(testFile)) wuiRootDir = searchDir;
1112
const newSearchDir = path.dirname(searchDir);
1213
if (newSearchDir === searchDir) break;
1314
searchDir = newSearchDir;

0 commit comments

Comments
 (0)