diff options
author | 2023-08-14 14:23:14 -0500 | |
---|---|---|
committer | 2023-08-14 14:23:14 -0500 | |
commit | 44cf30a25209b331e6e8a95a4b40a768ede3604a (patch) | |
tree | 66c4abd963c863da7793327e44b86f287278ec81 /packages/create-astro/src/messages.ts | |
parent | a34a48826cbbcf749f05ba19ce0edaa701437e62 (diff) | |
download | astro-44cf30a25209b331e6e8a95a4b40a768ede3604a.tar.gz astro-44cf30a25209b331e6e8a95a4b40a768ede3604a.tar.zst astro-44cf30a25209b331e6e8a95a4b40a768ede3604a.zip |
chore: slim create-astro deps (#8077)
Diffstat (limited to 'packages/create-astro/src/messages.ts')
-rw-r--r-- | packages/create-astro/src/messages.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/create-astro/src/messages.ts b/packages/create-astro/src/messages.ts index ee67f3b19..da2c08f1d 100644 --- a/packages/create-astro/src/messages.ts +++ b/packages/create-astro/src/messages.ts @@ -1,7 +1,7 @@ /* eslint no-console: 'off' */ import { color, say as houston, label, spinner as load } from '@astrojs/cli-kit'; import { align, sleep } from '@astrojs/cli-kit/utils'; -import { execa } from 'execa'; +import { shell } from './shell.js'; import fetch from 'node-fetch-native'; import { exec } from 'node:child_process'; import stripAnsi from 'strip-ansi'; @@ -14,7 +14,7 @@ import detectPackageManager from 'which-pm-runs'; async function getRegistry(): Promise<string> { const packageManager = detectPackageManager()?.name || 'npm'; try { - const { stdout } = await execa(packageManager, ['config', 'get', 'registry']); + const { stdout } = await shell(packageManager, ['config', 'get', 'registry']); return stdout?.trim()?.replace(/\/$/, '') || 'https://registry.npmjs.org'; } catch (e) { return 'https://registry.npmjs.org'; |