feat: unified install.sh + auto-update checker (deprecates mosaic/bootstrap) #347

Merged
jason.woltje merged 4 commits from feat/install-update-checker into main 2026-04-02 05:41:08 +00:00
Showing only changes of commit 3b9104429b - Show all commits

View File

@@ -20,10 +20,13 @@ describe('Full Wizard (headless)', () => {
beforeEach(() => {
tmpDir = mkdtempSync(join(tmpdir(), 'mosaic-wizard-test-'));
// Copy templates to tmp dir
const templatesDir = join(repoRoot, 'templates');
if (existsSync(templatesDir)) {
cpSync(templatesDir, join(tmpDir, 'templates'), { recursive: true });
// Copy templates to tmp dir — templates live under framework/ after monorepo migration
const candidates = [join(repoRoot, 'framework', 'templates'), join(repoRoot, 'templates')];
for (const templatesDir of candidates) {
if (existsSync(templatesDir)) {
cpSync(templatesDir, join(tmpDir, 'templates'), { recursive: true });
break;
}
}
});