@netlify/build 29.22.1 → 29.22.3

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.
Files changed (2) hide show
  1. package/lib/core/bin.js +3 -0
  2. package/package.json +5 -5
package/lib/core/bin.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { readFileSync } from 'fs';
2
3
  import process from 'process';
3
4
  import { includeKeys } from 'filter-obj';
4
5
  import yargs from 'yargs';
@@ -7,6 +8,7 @@ import { normalizeCliFeatureFlags } from './feature_flags.js';
7
8
  import { FLAGS } from './flags.js';
8
9
  import { buildSite } from './main.js';
9
10
  import { FALLBACK_SEVERITY_ENTRY } from './severity.js';
11
+ const packJson = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url), 'utf8'));
10
12
  // CLI entry point.
11
13
  // Before adding logic to this file, please consider adding it to the main
12
14
  // programmatic command instead, so that the new logic is available when run
@@ -26,6 +28,7 @@ const parseFlags = function () {
26
28
  const { featureFlags: cliFeatureFlags = '', ...flags } = yargs(hideBin(process.argv))
27
29
  .options(FLAGS)
28
30
  .usage(USAGE)
31
+ .version(packJson.version)
29
32
  .parse();
30
33
  const featureFlags = normalizeCliFeatureFlags(cliFeatureFlags);
31
34
  return { ...flags, featureFlags };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.22.1",
3
+ "version": "29.22.3",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -68,13 +68,13 @@
68
68
  "@honeycombio/opentelemetry-node": "^0.5.0",
69
69
  "@netlify/cache-utils": "^5.1.5",
70
70
  "@netlify/config": "^20.9.0",
71
- "@netlify/edge-bundler": "9.2.0",
71
+ "@netlify/edge-bundler": "9.2.1",
72
72
  "@netlify/framework-info": "^9.8.10",
73
- "@netlify/functions-utils": "^5.2.30",
73
+ "@netlify/functions-utils": "^5.2.32",
74
74
  "@netlify/git-utils": "^5.1.1",
75
75
  "@netlify/plugins-list": "^6.71.0",
76
76
  "@netlify/run-utils": "^5.1.1",
77
- "@netlify/zip-it-and-ship-it": "9.19.0",
77
+ "@netlify/zip-it-and-ship-it": "9.24.1",
78
78
  "@opentelemetry/api": "^1.4.1",
79
79
  "@sindresorhus/slugify": "^2.0.0",
80
80
  "ansi-escapes": "^6.0.0",
@@ -145,5 +145,5 @@
145
145
  "engines": {
146
146
  "node": "^14.16.0 || >=16.0.0"
147
147
  },
148
- "gitHead": "fd6eae5bcec2dca540587be16e9bc84a58830dcf"
148
+ "gitHead": "d367233c817f397c311beb79214d1cca1205dc3d"
149
149
  }