@netlify/build 35.9.0 → 35.10.0

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { buildSite } from './core/main.js';
2
2
  export { NetlifyPluginConstants } from './core/constants.js';
3
+ export { getVersion } from './utils/json.js';
3
4
  export type { LogOutput as Logs } from './log/logger.js';
4
5
  export type { GeneratedFunction } from './steps/return_values.js';
5
6
  export type { NetlifyPlugin } from './types/netlify_plugin.js';
package/lib/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { buildSite } from './core/main.js';
2
+ export { getVersion } from './utils/json.js';
2
3
  // actual main types
3
4
  export { startDev } from './core/dev.js';
4
5
  export { runCoreSteps } from './steps/run_core_steps.js';
@@ -5,3 +5,4 @@ export type RootPackageJson = {
5
5
  };
6
6
  export declare const importJsonFile: (filePath: string) => Promise<PackageJson>;
7
7
  export declare const ROOT_PACKAGE_JSON: RootPackageJson;
8
+ export declare const getVersion: () => string;
package/lib/utils/json.js CHANGED
@@ -8,3 +8,4 @@ export const importJsonFile = async function (filePath) {
8
8
  return JSON.parse(fileContents);
9
9
  };
10
10
  export const ROOT_PACKAGE_JSON = (await importJsonFile(ROOT_PACKAGE_JSON_PATH));
11
+ export const getVersion = () => ROOT_PACKAGE_JSON.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "35.9.0",
3
+ "version": "35.10.0",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -70,7 +70,7 @@
70
70
  "@netlify/blobs": "^10.4.4",
71
71
  "@netlify/cache-utils": "^6.0.5",
72
72
  "@netlify/config": "^24.4.3",
73
- "@netlify/edge-bundler": "14.9.16",
73
+ "@netlify/edge-bundler": "14.9.17",
74
74
  "@netlify/functions-utils": "^6.2.26",
75
75
  "@netlify/git-utils": "^6.0.4",
76
76
  "@netlify/opentelemetry-utils": "^2.0.2",
@@ -152,5 +152,5 @@
152
152
  "engines": {
153
153
  "node": ">=18.14.0"
154
154
  },
155
- "gitHead": "6588f01d80a48a02ecdf660eead20ae0d728e075"
155
+ "gitHead": "4c1f6b11490fca02a044a8f0e3bed51ef6b7c85a"
156
156
  }