Skip to content

Commit db1435c

Browse files
authored
fix: put exports back to normal for config (#6528)
Co-authored-by: Karin <=>
1 parent ca66176 commit db1435c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/config/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "23.0.11",
44
"description": "Netlify config module",
55
"type": "module",
6-
"exports": {
7-
".": "./lib/index.js"
8-
},
6+
"exports": "./lib/index.js",
97
"main": "./lib/index.js",
108
"types": "./lib/index.d.ts",
119
"bin": {

packages/config/src/utils/extensions/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { EXTENSION_API_BASE_URL } from '../../integrations.js'
22
import { ModeOption } from '../../types/options.js'
33
import { ROOT_PACKAGE_JSON } from '../json.js'
44

5-
const configVersion = ROOT_PACKAGE_JSON.version
65
export type InstallExtensionResult =
76
| {
87
slug: string
@@ -29,7 +28,7 @@ export const installExtension = async ({
2928
hostSiteUrl: string
3029
extensionInstallationSource: ModeOption
3130
}): Promise<InstallExtensionResult> => {
32-
const userAgent = `Netlify Config (mode:${extensionInstallationSource}) / ${configVersion}`
31+
const userAgent = `Netlify Config (mode:${extensionInstallationSource}) / ${ROOT_PACKAGE_JSON.version}`
3332
const extensionOnInstallUrl = new URL('/.netlify/functions/handler/on-install', hostSiteUrl)
3433
const installedResponse = await fetch(extensionOnInstallUrl, {
3534
method: 'POST',

0 commit comments

Comments
 (0)