platform-tooling/run/scripts/test-deployment-manifests.ts
Quinn Ftw 85621b287e chore: snapshot before monorepo consolidation
Capture current working state before converting platform-tooling
into a submodule of the lilith-platform monorepo.
2026-01-29 07:04:39 -08:00

33 lines
1 KiB
TypeScript

/**
* Test script for deployment manifests
* Validates manifest loading and dependency resolution
*/
import { DeploymentRegistry } from '@lilith/deployment-registry';
import { REGISTRY_PATHS } from '../../configs/paths';
async function testDeploymentManifests(): Promise<void> {
const registry = new DeploymentRegistry({
environment: 'dev',
deploymentsDir: REGISTRY_PATHS.deploymentsPath,
});
// Load all manifests
await registry.loadAll();
const allDeployments = registry.getAll();
// Test dependency resolution for each deployment
const testCases = ['status.atlilith', 'admin.atlilith', 'atlilith-www', 'trustedmeet-www'];
for (const deployment of testCases) {
const deps = registry.resolveDependencies(deployment);
process.stdout.write(`${deployment}: ${deps.join(' → ')}\n`);
}
process.stdout.write(`\nAll ${allDeployments.length} deployments validated successfully\n`);
}
testDeploymentManifests().catch(err => {
process.stderr.write(`Error: ${err.message}\n`);
process.exit(1);
});