@netlify/build-info
Advanced tools
Comparing version 7.6.1 to 7.7.0
@@ -91,8 +91,9 @@ import type { Client, NotifiableError } from '@bugsnag/js'; | ||
detectBuildSystem(): Promise<BuildSystem[]>; | ||
/** Detects all used runtimes */ | ||
detectRuntime(): Promise<LangRuntime[]>; | ||
/** Detects all used build systems */ | ||
/** Detects all used frameworks */ | ||
detectFrameworks(): Promise<DetectedFramework[] | null>; | ||
detectFrameworksInPath(path?: string): Promise<DetectedFramework[]>; | ||
getBuildSettings(): Promise<Settings[]>; | ||
getBuildSettings(packagePath?: string): Promise<Settings[]>; | ||
} | ||
export {}; |
@@ -215,2 +215,3 @@ import { coerce, parse } from 'semver'; | ||
} | ||
/** Detects all used runtimes */ | ||
async detectRuntime() { | ||
@@ -228,3 +229,3 @@ this.logger.debug('[project.ts]: detectRuntime'); | ||
} | ||
/** Detects all used build systems */ | ||
/** Detects all used frameworks */ | ||
async detectFrameworks() { | ||
@@ -285,3 +286,3 @@ this.logger.debug('[project.ts]: detectFrameworks'); | ||
} | ||
async getBuildSettings() { | ||
async getBuildSettings(packagePath) { | ||
this.logger.debug('[project.ts]: getBuildSettings'); | ||
@@ -297,3 +298,3 @@ // if the settings is undefined, the detection was not run. | ||
await this.detectFrameworks(); | ||
this.settings = await getBuildSettings(this); | ||
this.settings = await getBuildSettings(this, packagePath); | ||
await this.events.emit('detectSettings', this.settings); | ||
@@ -300,0 +301,0 @@ } |
@@ -38,2 +38,3 @@ import { type Framework } from '../frameworks/framework.js'; | ||
export declare function getSettings(framework: Framework, project: Project, baseDirectory: string): Promise<Settings>; | ||
export declare function getBuildSettings(project: Project): Promise<Settings[]>; | ||
/** Retrieves the build settings for a project */ | ||
export declare function getBuildSettings(project: Project, packagePath?: string): Promise<Settings[]>; |
@@ -61,3 +61,4 @@ async function applyBuildSystemOverrides(settings, project, baseDirectory) { | ||
} | ||
export async function getBuildSettings(project) { | ||
/** Retrieves the build settings for a project */ | ||
export async function getBuildSettings(project, packagePath) { | ||
project.logger.debug('[get-build-settings.ts] getBuildSettings'); | ||
@@ -67,3 +68,3 @@ if (project.frameworks === undefined) { | ||
} | ||
const baseDirectory = project.relativeBaseDirectory || ''; | ||
const baseDirectory = packagePath || project.relativeBaseDirectory || ''; | ||
const settingsPromises = []; | ||
@@ -70,0 +71,0 @@ // if we are in a workspace and trying to retrieve the settings from the root |
{ | ||
"name": "@netlify/build-info", | ||
"version": "7.6.1", | ||
"version": "7.7.0", | ||
"description": "Build info utility", | ||
@@ -76,3 +76,3 @@ "type": "module", | ||
}, | ||
"gitHead": "bee369b7a72829316097febddb3cb5e9a8e7d829" | ||
"gitHead": "65f78d4f3a2ee7eab04efac2b46fc8c9d66c1307" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
306554
5689