From 00f03b033aec054964fff2dfdef156f31ce28f9f Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 22 Aug 2022 18:10:57 -0400 Subject: [PATCH] fix: parse third-party org names --- packages/astro/src/core/add/index.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index 280c16db3846a..541f36a2235a5 100644 --- a/packages/astro/src/core/add/index.ts +++ b/packages/astro/src/core/add/index.ts @@ -619,7 +619,7 @@ async function fetchPackageJson( name: string, tag: string ): Promise { - const packageName = `${scope ? `@${scope}/` : ''}${name}`; + const packageName = `${scope ? `${scope}/` : ''}${name}`; const res = await fetch(`https://registry.npmjs.org/${packageName}/${tag}`); if (res.status === 404) { return new Error(); @@ -637,13 +637,14 @@ export async function validateIntegrations(integrations: string[]): Promise