Fix create-astro regression (#7086)

This commit is contained in:
Happydev 2023-05-14 16:57:37 +00:00 committed by GitHub
parent 8d09a14a7b
commit c5f1275e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View file

@ -0,0 +1,5 @@
---
'create-astro': patch
---
Fix create astro regression

View file

@ -26,15 +26,6 @@ export async function dependencies(
start: `Dependencies installing with ${ctx.pkgManager}...`,
end: 'Dependencies installed',
while: () => {
return Promise.reject('Unknown error').catch((e) => {
error('error', e);
error(
'error',
`Dependencies failed to install, please run ${color.bold(
ctx.pkgManager + ' install'
)} to install them manually after setup.`
);
});
return install({ pkgManager: ctx.pkgManager, cwd: ctx.cwd }).catch((e) => {
error('error', e);
error(