feat: harden CASAN production install lifecycle
This commit is contained in:
@@ -63,7 +63,7 @@ function locateManifest(root, { manifestPath, projectId } = {}) {
|
||||
|
||||
const requestedProject = projectId || process.env.CASAN_PROJECT_ID;
|
||||
if (requestedProject) {
|
||||
const registryPath = join(root, 'packages/casan-harness/level5/project-registry.json');
|
||||
const registryPath = join(root, 'packages/casan-harness/config/project-registry.json');
|
||||
const registry = readJson(registryPath, 'project registry');
|
||||
const entry = registry.projects?.find((item) => item.project_id === requestedProject || item.manifest === requestedProject);
|
||||
if (!entry) fail(`project is not registered: ${requestedProject}`);
|
||||
|
||||
Reference in New Issue
Block a user