diff options
author | 2024-08-08 05:54:04 -0400 | |
---|---|---|
committer | 2024-08-08 17:54:04 +0800 | |
commit | 4c1b769bcf0da535b9c754162ece3afedc10d822 (patch) | |
tree | 090c3e1ffb698e2bcd28375aab1769df685cd90b /packages/create-astro/src | |
parent | 9aaf58c1339b54f2c1394e718a0f6f609f0b6342 (diff) | |
download | astro-4c1b769bcf0da535b9c754162ece3afedc10d822.tar.gz astro-4c1b769bcf0da535b9c754162ece3afedc10d822.tar.zst astro-4c1b769bcf0da535b9c754162ece3afedc10d822.zip |
chore: bump typescript-eslint to v8 (#11649)
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r-- | packages/create-astro/src/actions/git.ts | 2 | ||||
-rw-r--r-- | packages/create-astro/src/messages.ts | 2 | ||||
-rw-r--r-- | packages/create-astro/src/shell.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/create-astro/src/actions/git.ts b/packages/create-astro/src/actions/git.ts index bd038f3f5..d75ed18cc 100644 --- a/packages/create-astro/src/actions/git.ts +++ b/packages/create-astro/src/actions/git.ts @@ -60,5 +60,5 @@ async function init({ cwd }: { cwd: string }) { ], { cwd, stdio: 'ignore' } ); - } catch (e) {} + } catch {} } diff --git a/packages/create-astro/src/messages.ts b/packages/create-astro/src/messages.ts index eeeba5a50..2ea25f220 100644 --- a/packages/create-astro/src/messages.ts +++ b/packages/create-astro/src/messages.ts @@ -18,7 +18,7 @@ async function getRegistry(packageManager: string): Promise<string> { _registry = stdout?.trim()?.replace(/\/$/, '') || fallback; // Detect cases where the shell command returned a non-URL (e.g. a warning) if (!new URL(_registry).host) _registry = fallback; - } catch (e) { + } catch { _registry = fallback; } return _registry; diff --git a/packages/create-astro/src/shell.ts b/packages/create-astro/src/shell.ts index e6f1295ea..8ce3031be 100644 --- a/packages/create-astro/src/shell.ts +++ b/packages/create-astro/src/shell.ts @@ -37,7 +37,7 @@ export async function shell( const done = new Promise((resolve) => child.on('close', resolve)); [stdout, stderr] = await Promise.all([text(child.stdout), text(child.stderr)]); await done; - } catch (e) { + } catch { throw { stdout, stderr, exitCode: 1 }; } const { exitCode } = child; |