fix: retarget updater to @mosaic/mosaic (#384)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline failed

This commit was merged in pull request #384.
This commit is contained in:
2026-04-05 01:52:30 +00:00
parent 543388e18b
commit 10285933a0
9 changed files with 280 additions and 34 deletions

View File

@@ -12,6 +12,7 @@ import {
backgroundUpdateCheck,
checkForUpdate,
formatUpdateNotice,
getInstallCommand,
} from './runtime/update-checker.js';
import { runWizard } from './wizard.js';
import { ClackPrompter } from './prompter/clack-prompter.js';
@@ -354,7 +355,7 @@ program
try {
// Relies on @mosaic:registry in ~/.npmrc — do NOT pass --registry
// globally or non-@mosaic deps will 404 against the Gitea registry.
execSync('npm install -g @mosaic/cli@latest', {
execSync(getInstallCommand(result), {
stdio: 'inherit',
timeout: 60_000,
});