diff --git a/packages/config/package.json b/packages/config/package.json index 2d3b46dd2d..3259969ebb 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -3,9 +3,7 @@ "version": "23.0.11", "description": "Netlify config module", "type": "module", - "exports": { - ".": "./lib/index.js" - }, + "exports": "./lib/index.js", "main": "./lib/index.js", "types": "./lib/index.d.ts", "bin": { diff --git a/packages/config/src/utils/extensions/utils.ts b/packages/config/src/utils/extensions/utils.ts index 4c94a6a2ba..c4bfba2e21 100644 --- a/packages/config/src/utils/extensions/utils.ts +++ b/packages/config/src/utils/extensions/utils.ts @@ -2,7 +2,6 @@ import { EXTENSION_API_BASE_URL } from '../../integrations.js' import { ModeOption } from '../../types/options.js' import { ROOT_PACKAGE_JSON } from '../json.js' -const configVersion = ROOT_PACKAGE_JSON.version export type InstallExtensionResult = | { slug: string @@ -29,7 +28,7 @@ export const installExtension = async ({ hostSiteUrl: string extensionInstallationSource: ModeOption }): Promise => { - const userAgent = `Netlify Config (mode:${extensionInstallationSource}) / ${configVersion}` + const userAgent = `Netlify Config (mode:${extensionInstallationSource}) / ${ROOT_PACKAGE_JSON.version}` const extensionOnInstallUrl = new URL('/.netlify/functions/handler/on-install', hostSiteUrl) const installedResponse = await fetch(extensionOnInstallUrl, { method: 'POST',