@netlify/build-info 6.0.5 → 6.0.6

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.
package/lib/context.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare type ContextOptions = {
5
5
  };
6
6
  export declare type Context = {
7
7
  projectDir: string;
8
- rootDir: string;
8
+ rootDir?: string;
9
9
  rootPackageJson: PackageJson;
10
10
  };
11
11
  export declare const getContext: (config?: ContextOptions) => Promise<Context>;
package/lib/workspaces.js CHANGED
@@ -19,7 +19,7 @@ export const detectNpmOrYarnWorkspaceGlobs = (pkgJson) => {
19
19
  return pkgJson.workspaces;
20
20
  }
21
21
  if (typeof pkgJson.workspaces === 'object') {
22
- return pkgJson.workspaces.packages;
22
+ return pkgJson.workspaces.packages || [];
23
23
  }
24
24
  return [];
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build-info",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "description": "Build info utility",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "author": "Netlify Inc.",
32
32
  "dependencies": {
33
- "@netlify/framework-info": "^9.5.0",
33
+ "@netlify/framework-info": "^9.5.2",
34
34
  "@npmcli/map-workspaces": "^2.0.0",
35
35
  "find-up": "^6.3.0",
36
36
  "read-pkg": "^7.1.0",
@@ -52,5 +52,5 @@
52
52
  "engines": {
53
53
  "node": "^14.16.0 || >=16.0.0"
54
54
  },
55
- "gitHead": "3e80c5e33030d37eec733ecb927c54eceebd2fd5"
55
+ "gitHead": "c7e107e79b77f3037ca6d10aceadfa208af5ace8"
56
56
  }