Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions packages/config/src/utils/extensions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,7 +28,7 @@ export const installExtension = async ({
hostSiteUrl: string
extensionInstallationSource: ModeOption
}): Promise<InstallExtensionResult> => {
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',
Expand Down
Loading