Resolve inventory workspace from checkout
This commit is contained in:
@@ -13,7 +13,13 @@ const metaRoot = path.resolve(metaRootArgument);
|
|||||||
const repositoryCatalog = JSON.parse(
|
const repositoryCatalog = JSON.parse(
|
||||||
fs.readFileSync(path.join(metaRoot, "repositories.json"), "utf8")
|
fs.readFileSync(path.join(metaRoot, "repositories.json"), "utf8")
|
||||||
);
|
);
|
||||||
const workspaceRoot = path.resolve(repositoryCatalog.default_parent);
|
const siblingWorkspaceRoot = path.dirname(metaRoot);
|
||||||
|
const configuredWorkspaceRoot = path.resolve(repositoryCatalog.default_parent);
|
||||||
|
const workspaceRoot = fs.existsSync(
|
||||||
|
path.join(siblingWorkspaceRoot, "govoplan-core", "webui")
|
||||||
|
)
|
||||||
|
? siblingWorkspaceRoot
|
||||||
|
: configuredWorkspaceRoot;
|
||||||
const typescriptPath = path.join(
|
const typescriptPath = path.join(
|
||||||
workspaceRoot,
|
workspaceRoot,
|
||||||
"govoplan-core",
|
"govoplan-core",
|
||||||
|
|||||||
Reference in New Issue
Block a user