diff options
author | 2023-08-15 09:24:06 +0100 | |
---|---|---|
committer | 2023-08-15 09:24:06 +0100 | |
commit | 7530d5689db67eb77d2dce0db0e13d25b3d13063 (patch) | |
tree | 0f33f492b25ace9dd7ca2cfc5de4fec311f9be14 /packages/create-astro/src/messages.ts | |
parent | 68efd4a8b29f248397667801465b3152dc98e9a7 (diff) | |
parent | c19987df0be3520cf774476cea270c03edd08354 (diff) | |
download | astro-7530d5689db67eb77d2dce0db0e13d25b3d13063.tar.gz astro-7530d5689db67eb77d2dce0db0e13d25b3d13063.tar.zst astro-7530d5689db67eb77d2dce0db0e13d25b3d13063.zip |
Merge remote-tracking branch 'origin/main' into next
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..89ccddcdb 100644 --- a/packages/create-astro/src/messages.ts +++ b/packages/create-astro/src/messages.ts @@ -1,11 +1,11 @@ /* 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 fetch from 'node-fetch-native'; import { exec } from 'node:child_process'; import stripAnsi from 'strip-ansi'; import detectPackageManager from 'which-pm-runs'; +import { shell } from './shell.js'; // Users might lack access to the global npm registry, this function // checks the user's project type and will return the proper npm registry @@ -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'; |