@netlify/build-info 7.4.0 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,7 @@ import { VuePress } from './vuepress.js';
43
43
  import { Wintersmith } from './wintersmith.js';
44
44
  import { WMR } from './wmr.js';
45
45
  import { Zola } from './zola.js';
46
- export declare const frameworks: (typeof Astro | typeof Docusaurus | typeof Eleventy | typeof Gatsby | typeof Gridsome | typeof Hexo | typeof Hugo | typeof Hydrogen | typeof Jekyll | typeof Middleman | typeof Next | typeof Blitz | typeof Nuxt | typeof Phenomic | typeof Qwik | typeof ReactStatic | typeof RedwoodJS | typeof Remix | typeof Solid | typeof SolidStart | typeof Stencil | typeof VuePress | typeof Assemble | typeof DocPad | typeof Harp | typeof Metalsmith | typeof Roots | typeof Wintersmith | typeof Cecil | typeof Zola | typeof Angular | typeof CreateReactApp | typeof Ember | typeof Expo | typeof Quasar | typeof Sapper | typeof Svelte | typeof SvelteKit | typeof Vue | typeof Brunch | typeof Parcel | typeof Gulp | typeof Grunt | typeof Vite | typeof WMR)[];
46
+ export declare const frameworks: (typeof Angular | typeof Assemble | typeof Astro | typeof Blitz | typeof Brunch | typeof Cecil | typeof DocPad | typeof Docusaurus | typeof Eleventy | typeof Ember | typeof Expo | typeof Gatsby | typeof Gridsome | typeof Grunt | typeof Gulp | typeof Harp | typeof Hexo | typeof Hugo | typeof Hydrogen | typeof Jekyll | typeof Metalsmith | typeof Middleman | typeof Next | typeof Nuxt | typeof Parcel | typeof Phenomic | typeof Quasar | typeof Qwik | typeof ReactStatic | typeof CreateReactApp | typeof RedwoodJS | typeof Remix | typeof Roots | typeof Sapper | typeof SolidStart | typeof Solid | typeof Stencil | typeof SvelteKit | typeof Svelte | typeof Vite | typeof Vue | typeof VuePress | typeof Wintersmith | typeof WMR | typeof Zola)[];
47
47
  type Frameworks = typeof frameworks;
48
48
  export type FrameworkName = InstanceType<Frameworks[number]>['id'];
49
49
  export type { FrameworkInfo, PollingStrategy } from './framework.js';
@@ -1,4 +1,5 @@
1
- import { FrameworkName, FrameworkInfo } from './frameworks/index.js';
1
+ import { Framework } from './frameworks/framework.js';
2
+ import { FrameworkName } from './frameworks/index.js';
2
3
  import { Project } from './project.js';
3
4
  /** Return some information about a framework used by a project. */
4
- export declare function getFramework(frameworkId: FrameworkName, project: Project): Promise<FrameworkInfo | undefined>;
5
+ export declare function getFramework(frameworkId: FrameworkName, project: Project): Promise<Framework>;
@@ -4,8 +4,7 @@ export async function getFramework(frameworkId, project) {
4
4
  const frameworkList = frameworks.map((Framework) => new Framework(project));
5
5
  const framework = frameworkList.find(({ id }) => id === frameworkId);
6
6
  if (framework) {
7
- const result = await framework.detect();
8
- return result?.toJSON();
7
+ return framework;
9
8
  }
10
9
  const frameworkIds = frameworkList
11
10
  .map(({ id }) => id)
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework.js","sourceRoot":"","sources":["../src/get-framework.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,UAAU,EAAiB,MAAM,uBAAuB,CAAA;AAGhF,mEAAmE;AACnE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,WAA0B,EAAE,OAAgB;IAC7E,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3E,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,WAAW,CAAC,CAAA;IAEpE,IAAI,SAAS,EAAE;QACb,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,CAAA;QACvC,OAAO,MAAM,EAAE,MAAM,EAAE,CAAA;KACxB;IAED,MAAM,YAAY,GAAG,aAAa;SAC/B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;SACnB,IAAI,EAAE;SACN,IAAI,CAAC,IAAI,CAAC,CAAA;IACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,WAAW,2BAA2B,YAAY,EAAE,CAAC,CAAA;AAC7F,CAAC"}
1
+ {"version":3,"file":"get-framework.js","sourceRoot":"","sources":["../src/get-framework.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGjE,mEAAmE;AACnE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,WAA0B,EAAE,OAAgB;IAC7E,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3E,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,WAAW,CAAC,CAAA;IAEpE,IAAI,SAAS,EAAE;QACb,OAAO,SAAS,CAAA;KACjB;IAED,MAAM,YAAY,GAAG,aAAa;SAC/B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;SACnB,IAAI,EAAE;SACN,IAAI,CAAC,IAAI,CAAC,CAAA;IACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,WAAW,2BAA2B,YAAY,EAAE,CAAC,CAAA;AAC7F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build-info",
3
- "version": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "description": "Build info utility",
5
5
  "type": "module",
6
6
  "exports": {
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@bugsnag/js": "^7.20.0",
49
49
  "@netlify/framework-info": "^9.8.10",
50
- "dot-prop": "^8.0.1",
50
+ "dot-prop": "^7.2.0",
51
51
  "find-up": "^6.3.0",
52
52
  "minimatch": "^9.0.0",
53
53
  "read-pkg": "^7.1.0",
@@ -74,5 +74,5 @@
74
74
  "engines": {
75
75
  "node": "^14.16.0 || >=16.0.0"
76
76
  },
77
- "gitHead": "df378709ce06a7833edf1baa4acb4fac4f964622"
77
+ "gitHead": "25447244217b9c167851ed6e7c36f5f226961d9f"
78
78
  }