@vercel/node 5.4.0 → 5.5.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.
@@ -1278,7 +1278,7 @@ async function createEventHandler(entrypoint2, config, options) {
1278
1278
  async function hasWebHandlers(getExports) {
1279
1279
  const exports = await getExports().catch(() => []);
1280
1280
  for (const name of exports) {
1281
- if (HTTP_METHODS.includes(name)) {
1281
+ if (HTTP_METHODS.includes(name) || name === "default" || name === "fetch") {
1282
1282
  return true;
1283
1283
  }
1284
1284
  }
@@ -1347,6 +1347,7 @@ async function onDevRequest(req, res) {
1347
1347
  try {
1348
1348
  const { headers, body, status: status2 } = await handleEvent(req);
1349
1349
  res.statusCode = status2;
1350
+ headers.delete("transfer-encoding");
1350
1351
  for (const [key, value] of headers) {
1351
1352
  if (value !== void 0)
1352
1353
  res.setHeader(
@@ -1383,6 +1384,12 @@ process.on("message", async (m) => {
1383
1384
  break;
1384
1385
  }
1385
1386
  });
1387
+ process.on("SIGTERM", async () => {
1388
+ if (onExit) {
1389
+ await onExit();
1390
+ }
1391
+ process.exit(0);
1392
+ });
1386
1393
  /*! Bundled license information:
1387
1394
 
1388
1395
  content-type/index.js:
package/dist/index.js CHANGED
@@ -31894,11 +31894,11 @@ var require_common = __commonJS({
31894
31894
  let enableOverride = null;
31895
31895
  let namespacesCache;
31896
31896
  let enabledCache;
31897
- function debug4(...args) {
31898
- if (!debug4.enabled) {
31897
+ function debug5(...args) {
31898
+ if (!debug5.enabled) {
31899
31899
  return;
31900
31900
  }
31901
- const self2 = debug4;
31901
+ const self2 = debug5;
31902
31902
  const curr = Number(/* @__PURE__ */ new Date());
31903
31903
  const ms = curr - (prevTime || curr);
31904
31904
  self2.diff = ms;
@@ -31928,12 +31928,12 @@ var require_common = __commonJS({
31928
31928
  const logFn = self2.log || createDebug.log;
31929
31929
  logFn.apply(self2, args);
31930
31930
  }
31931
- debug4.namespace = namespace;
31932
- debug4.useColors = createDebug.useColors();
31933
- debug4.color = createDebug.selectColor(namespace);
31934
- debug4.extend = extend;
31935
- debug4.destroy = createDebug.destroy;
31936
- Object.defineProperty(debug4, "enabled", {
31931
+ debug5.namespace = namespace;
31932
+ debug5.useColors = createDebug.useColors();
31933
+ debug5.color = createDebug.selectColor(namespace);
31934
+ debug5.extend = extend;
31935
+ debug5.destroy = createDebug.destroy;
31936
+ Object.defineProperty(debug5, "enabled", {
31937
31937
  enumerable: true,
31938
31938
  configurable: false,
31939
31939
  get: () => {
@@ -31951,9 +31951,9 @@ var require_common = __commonJS({
31951
31951
  }
31952
31952
  });
31953
31953
  if (typeof createDebug.init === "function") {
31954
- createDebug.init(debug4);
31954
+ createDebug.init(debug5);
31955
31955
  }
31956
- return debug4;
31956
+ return debug5;
31957
31957
  }
31958
31958
  function extend(namespace, delimiter) {
31959
31959
  const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
@@ -32478,11 +32478,11 @@ var require_node = __commonJS({
32478
32478
  function load() {
32479
32479
  return process.env.DEBUG;
32480
32480
  }
32481
- function init(debug4) {
32482
- debug4.inspectOpts = {};
32481
+ function init(debug5) {
32482
+ debug5.inspectOpts = {};
32483
32483
  const keys = Object.keys(exports.inspectOpts);
32484
32484
  for (let i = 0; i < keys.length; i++) {
32485
- debug4.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
32485
+ debug5.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
32486
32486
  }
32487
32487
  }
32488
32488
  module2.exports = require_common()(exports);
@@ -46596,7 +46596,7 @@ var require_path = __commonJS({
46596
46596
  var {
46597
46597
  validate
46598
46598
  } = _t;
46599
- var debug4 = _debug("babel");
46599
+ var debug5 = _debug("babel");
46600
46600
  var REMOVED = exports.REMOVED = 1 << 0;
46601
46601
  var SHOULD_STOP = exports.SHOULD_STOP = 1 << 1;
46602
46602
  var SHOULD_SKIP = exports.SHOULD_SKIP = 1 << 2;
@@ -46715,9 +46715,9 @@ var require_path = __commonJS({
46715
46715
  return parts.join(".");
46716
46716
  }
46717
46717
  debug(message) {
46718
- if (!debug4.enabled)
46718
+ if (!debug5.enabled)
46719
46719
  return;
46720
- debug4(`${this.getPathLocation()} ${this.type}: ${message}`);
46720
+ debug5(`${this.getPathLocation()} ${this.type}: ${message}`);
46721
46721
  }
46722
46722
  toString() {
46723
46723
  return (0, _generator.default)(this.node).code;
@@ -63386,15 +63386,15 @@ var require_lib12 = __commonJS({
63386
63386
  var require_semver = __commonJS({
63387
63387
  "../../node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"(exports, module2) {
63388
63388
  exports = module2.exports = SemVer;
63389
- var debug4;
63389
+ var debug5;
63390
63390
  if (typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
63391
- debug4 = function() {
63391
+ debug5 = function() {
63392
63392
  var args = Array.prototype.slice.call(arguments, 0);
63393
63393
  args.unshift("SEMVER");
63394
63394
  console.log.apply(console, args);
63395
63395
  };
63396
63396
  } else {
63397
- debug4 = function() {
63397
+ debug5 = function() {
63398
63398
  };
63399
63399
  }
63400
63400
  exports.SEMVER_SPEC_VERSION = "2.0.0";
@@ -63512,7 +63512,7 @@ var require_semver = __commonJS({
63512
63512
  tok("STAR");
63513
63513
  src[t.STAR] = "(<|>)?=?\\s*\\*";
63514
63514
  for (i = 0; i < R; i++) {
63515
- debug4(i, src[i]);
63515
+ debug5(i, src[i]);
63516
63516
  if (!re[i]) {
63517
63517
  re[i] = new RegExp(src[i]);
63518
63518
  safeRe[i] = new RegExp(makeSafeRe(src[i]));
@@ -63579,7 +63579,7 @@ var require_semver = __commonJS({
63579
63579
  if (!(this instanceof SemVer)) {
63580
63580
  return new SemVer(version2, options);
63581
63581
  }
63582
- debug4("SemVer", version2, options);
63582
+ debug5("SemVer", version2, options);
63583
63583
  this.options = options;
63584
63584
  this.loose = !!options.loose;
63585
63585
  var m = version2.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);
@@ -63626,7 +63626,7 @@ var require_semver = __commonJS({
63626
63626
  return this.version;
63627
63627
  };
63628
63628
  SemVer.prototype.compare = function(other) {
63629
- debug4("SemVer.compare", this.version, this.options, other);
63629
+ debug5("SemVer.compare", this.version, this.options, other);
63630
63630
  if (!(other instanceof SemVer)) {
63631
63631
  other = new SemVer(other, this.options);
63632
63632
  }
@@ -63653,7 +63653,7 @@ var require_semver = __commonJS({
63653
63653
  do {
63654
63654
  var a = this.prerelease[i2];
63655
63655
  var b = other.prerelease[i2];
63656
- debug4("prerelease compare", i2, a, b);
63656
+ debug5("prerelease compare", i2, a, b);
63657
63657
  if (a === void 0 && b === void 0) {
63658
63658
  return 0;
63659
63659
  } else if (b === void 0) {
@@ -63675,7 +63675,7 @@ var require_semver = __commonJS({
63675
63675
  do {
63676
63676
  var a = this.build[i2];
63677
63677
  var b = other.build[i2];
63678
- debug4("prerelease compare", i2, a, b);
63678
+ debug5("prerelease compare", i2, a, b);
63679
63679
  if (a === void 0 && b === void 0) {
63680
63680
  return 0;
63681
63681
  } else if (b === void 0) {
@@ -63935,7 +63935,7 @@ var require_semver = __commonJS({
63935
63935
  return new Comparator(comp, options);
63936
63936
  }
63937
63937
  comp = comp.trim().split(/\s+/).join(" ");
63938
- debug4("comparator", comp, options);
63938
+ debug5("comparator", comp, options);
63939
63939
  this.options = options;
63940
63940
  this.loose = !!options.loose;
63941
63941
  this.parse(comp);
@@ -63944,7 +63944,7 @@ var require_semver = __commonJS({
63944
63944
  } else {
63945
63945
  this.value = this.operator + this.semver.version;
63946
63946
  }
63947
- debug4("comp", this);
63947
+ debug5("comp", this);
63948
63948
  }
63949
63949
  var ANY = {};
63950
63950
  Comparator.prototype.parse = function(comp) {
@@ -63967,7 +63967,7 @@ var require_semver = __commonJS({
63967
63967
  return this.value;
63968
63968
  };
63969
63969
  Comparator.prototype.test = function(version2) {
63970
- debug4("Comparator.test", version2, this.options.loose);
63970
+ debug5("Comparator.test", version2, this.options.loose);
63971
63971
  if (this.semver === ANY || version2 === ANY) {
63972
63972
  return true;
63973
63973
  }
@@ -64060,9 +64060,9 @@ var require_semver = __commonJS({
64060
64060
  var loose = this.options.loose;
64061
64061
  var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];
64062
64062
  range = range.replace(hr, hyphenReplace);
64063
- debug4("hyphen replace", range);
64063
+ debug5("hyphen replace", range);
64064
64064
  range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);
64065
- debug4("comparator trim", range, safeRe[t.COMPARATORTRIM]);
64065
+ debug5("comparator trim", range, safeRe[t.COMPARATORTRIM]);
64066
64066
  range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);
64067
64067
  range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);
64068
64068
  range = range.split(/\s+/).join(" ");
@@ -64115,15 +64115,15 @@ var require_semver = __commonJS({
64115
64115
  });
64116
64116
  }
64117
64117
  function parseComparator(comp, options) {
64118
- debug4("comp", comp, options);
64118
+ debug5("comp", comp, options);
64119
64119
  comp = replaceCarets(comp, options);
64120
- debug4("caret", comp);
64120
+ debug5("caret", comp);
64121
64121
  comp = replaceTildes(comp, options);
64122
- debug4("tildes", comp);
64122
+ debug5("tildes", comp);
64123
64123
  comp = replaceXRanges(comp, options);
64124
- debug4("xrange", comp);
64124
+ debug5("xrange", comp);
64125
64125
  comp = replaceStars(comp, options);
64126
- debug4("stars", comp);
64126
+ debug5("stars", comp);
64127
64127
  return comp;
64128
64128
  }
64129
64129
  function isX(id) {
@@ -64137,7 +64137,7 @@ var require_semver = __commonJS({
64137
64137
  function replaceTilde(comp, options) {
64138
64138
  var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];
64139
64139
  return comp.replace(r, function(_, M, m, p, pr) {
64140
- debug4("tilde", comp, _, M, m, p, pr);
64140
+ debug5("tilde", comp, _, M, m, p, pr);
64141
64141
  var ret;
64142
64142
  if (isX(M)) {
64143
64143
  ret = "";
@@ -64146,12 +64146,12 @@ var require_semver = __commonJS({
64146
64146
  } else if (isX(p)) {
64147
64147
  ret = ">=" + M + "." + m + ".0 <" + M + "." + (+m + 1) + ".0";
64148
64148
  } else if (pr) {
64149
- debug4("replaceTilde pr", pr);
64149
+ debug5("replaceTilde pr", pr);
64150
64150
  ret = ">=" + M + "." + m + "." + p + "-" + pr + " <" + M + "." + (+m + 1) + ".0";
64151
64151
  } else {
64152
64152
  ret = ">=" + M + "." + m + "." + p + " <" + M + "." + (+m + 1) + ".0";
64153
64153
  }
64154
- debug4("tilde return", ret);
64154
+ debug5("tilde return", ret);
64155
64155
  return ret;
64156
64156
  });
64157
64157
  }
@@ -64161,10 +64161,10 @@ var require_semver = __commonJS({
64161
64161
  }).join(" ");
64162
64162
  }
64163
64163
  function replaceCaret(comp, options) {
64164
- debug4("caret", comp, options);
64164
+ debug5("caret", comp, options);
64165
64165
  var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];
64166
64166
  return comp.replace(r, function(_, M, m, p, pr) {
64167
- debug4("caret", comp, _, M, m, p, pr);
64167
+ debug5("caret", comp, _, M, m, p, pr);
64168
64168
  var ret;
64169
64169
  if (isX(M)) {
64170
64170
  ret = "";
@@ -64177,7 +64177,7 @@ var require_semver = __commonJS({
64177
64177
  ret = ">=" + M + "." + m + ".0 <" + (+M + 1) + ".0.0";
64178
64178
  }
64179
64179
  } else if (pr) {
64180
- debug4("replaceCaret pr", pr);
64180
+ debug5("replaceCaret pr", pr);
64181
64181
  if (M === "0") {
64182
64182
  if (m === "0") {
64183
64183
  ret = ">=" + M + "." + m + "." + p + "-" + pr + " <" + M + "." + m + "." + (+p + 1);
@@ -64188,7 +64188,7 @@ var require_semver = __commonJS({
64188
64188
  ret = ">=" + M + "." + m + "." + p + "-" + pr + " <" + (+M + 1) + ".0.0";
64189
64189
  }
64190
64190
  } else {
64191
- debug4("no pr");
64191
+ debug5("no pr");
64192
64192
  if (M === "0") {
64193
64193
  if (m === "0") {
64194
64194
  ret = ">=" + M + "." + m + "." + p + " <" + M + "." + m + "." + (+p + 1);
@@ -64199,12 +64199,12 @@ var require_semver = __commonJS({
64199
64199
  ret = ">=" + M + "." + m + "." + p + " <" + (+M + 1) + ".0.0";
64200
64200
  }
64201
64201
  }
64202
- debug4("caret return", ret);
64202
+ debug5("caret return", ret);
64203
64203
  return ret;
64204
64204
  });
64205
64205
  }
64206
64206
  function replaceXRanges(comp, options) {
64207
- debug4("replaceXRanges", comp, options);
64207
+ debug5("replaceXRanges", comp, options);
64208
64208
  return comp.split(/\s+/).map(function(comp2) {
64209
64209
  return replaceXRange(comp2, options);
64210
64210
  }).join(" ");
@@ -64213,7 +64213,7 @@ var require_semver = __commonJS({
64213
64213
  comp = comp.trim();
64214
64214
  var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];
64215
64215
  return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
64216
- debug4("xRange", comp, ret, gtlt, M, m, p, pr);
64216
+ debug5("xRange", comp, ret, gtlt, M, m, p, pr);
64217
64217
  var xM = isX(M);
64218
64218
  var xm = xM || isX(m);
64219
64219
  var xp = xm || isX(p);
@@ -64257,12 +64257,12 @@ var require_semver = __commonJS({
64257
64257
  } else if (xp) {
64258
64258
  ret = ">=" + M + "." + m + ".0" + pr + " <" + M + "." + (+m + 1) + ".0" + pr;
64259
64259
  }
64260
- debug4("xRange return", ret);
64260
+ debug5("xRange return", ret);
64261
64261
  return ret;
64262
64262
  });
64263
64263
  }
64264
64264
  function replaceStars(comp, options) {
64265
- debug4("replaceStars", comp, options);
64265
+ debug5("replaceStars", comp, options);
64266
64266
  return comp.trim().replace(safeRe[t.STAR], "");
64267
64267
  }
64268
64268
  function hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
@@ -64314,7 +64314,7 @@ var require_semver = __commonJS({
64314
64314
  }
64315
64315
  if (version2.prerelease.length && !options.includePrerelease) {
64316
64316
  for (i2 = 0; i2 < set.length; i2++) {
64317
- debug4(set[i2].semver);
64317
+ debug5(set[i2].semver);
64318
64318
  if (set[i2].semver === ANY) {
64319
64319
  continue;
64320
64320
  }
@@ -73431,9 +73431,9 @@ var require_functional = __commonJS({
73431
73431
  Object.defineProperty(exports, "__esModule", {
73432
73432
  value: true
73433
73433
  });
73434
- exports.once = once3;
73434
+ exports.once = once4;
73435
73435
  var _async = require_async();
73436
- function once3(fn) {
73436
+ function once4(fn) {
73437
73437
  let result;
73438
73438
  let resultP;
73439
73439
  let promiseReferenced = false;
@@ -78745,7 +78745,7 @@ var require_config_chain = __commonJS({
78745
78745
  var _index = require_files();
78746
78746
  var _caching = require_caching();
78747
78747
  var _configDescriptors = require_config_descriptors();
78748
- var debug4 = _debug()("babel:config:config-chain");
78748
+ var debug5 = _debug()("babel:config:config-chain");
78749
78749
  function* buildPresetChain(arg, context) {
78750
78750
  const chain = yield* buildPresetChainWalker(arg, context);
78751
78751
  if (!chain)
@@ -79160,7 +79160,7 @@ File already loaded following the config chain:
79160
79160
  if (ignore && matchesPatterns(context, ignore, dirname4)) {
79161
79161
  var _context$filename;
79162
79162
  const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname4}"`;
79163
- debug4(message);
79163
+ debug5(message);
79164
79164
  if (context.showConfig) {
79165
79165
  console.log(message);
79166
79166
  }
@@ -79169,7 +79169,7 @@ File already loaded following the config chain:
79169
79169
  if (only && !matchesPatterns(context, only, dirname4)) {
79170
79170
  var _context$filename2;
79171
79171
  const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname4}"`;
79172
- debug4(message);
79172
+ debug5(message);
79173
79173
  if (context.showConfig) {
79174
79174
  console.log(message);
79175
79175
  }
@@ -80779,7 +80779,7 @@ var require_normalize_file = __commonJS({
80779
80779
  file,
80780
80780
  traverseFast
80781
80781
  } = _t();
80782
- var debug4 = _debug()("babel:transform:file");
80782
+ var debug5 = _debug()("babel:transform:file");
80783
80783
  var INLINE_SOURCEMAP_REGEX = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/;
80784
80784
  var EXTERNAL_SOURCEMAP_REGEX = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;
80785
80785
  function* normalizeFile(pluginPasses, options, code, ast) {
@@ -80808,7 +80808,7 @@ var require_normalize_file = __commonJS({
80808
80808
  inputMap = _convertSourceMap().fromComment("//" + lastComment);
80809
80809
  } catch (err) {
80810
80810
  {
80811
- debug4("discarding unknown inline input sourcemap");
80811
+ debug5("discarding unknown inline input sourcemap");
80812
80812
  }
80813
80813
  }
80814
80814
  }
@@ -80821,10 +80821,10 @@ var require_normalize_file = __commonJS({
80821
80821
  const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8");
80822
80822
  inputMap = _convertSourceMap().fromJSON(inputMapContent);
80823
80823
  } catch (err) {
80824
- debug4("discarding unknown file input sourcemap", err);
80824
+ debug5("discarding unknown file input sourcemap", err);
80825
80825
  }
80826
80826
  } else if (lastComment) {
80827
- debug4("discarding un-loadable file input sourcemap");
80827
+ debug5("discarding un-loadable file input sourcemap");
80828
80828
  }
80829
80829
  }
80830
80830
  }
@@ -101558,7 +101558,7 @@ var require_path2 = __commonJS({
101558
101558
  var {
101559
101559
  validate
101560
101560
  } = _t;
101561
- var debug4 = _debug("babel");
101561
+ var debug5 = _debug("babel");
101562
101562
  var REMOVED = exports.REMOVED = 1 << 0;
101563
101563
  var SHOULD_STOP = exports.SHOULD_STOP = 1 << 1;
101564
101564
  var SHOULD_SKIP = exports.SHOULD_SKIP = 1 << 2;
@@ -101677,9 +101677,9 @@ var require_path2 = __commonJS({
101677
101677
  return parts.join(".");
101678
101678
  }
101679
101679
  debug(message) {
101680
- if (!debug4.enabled)
101680
+ if (!debug5.enabled)
101681
101681
  return;
101682
- debug4(`${this.getPathLocation()} ${this.type}: ${message}`);
101682
+ debug5(`${this.getPathLocation()} ${this.type}: ${message}`);
101683
101683
  }
101684
101684
  toString() {
101685
101685
  return (0, _generator.default)(this.node).code;
@@ -108054,7 +108054,7 @@ var require_module_types = __commonJS({
108054
108054
  });
108055
108055
  };
108056
108056
  }
108057
- var debug4 = _debug()("babel:config:loading:files:module-types");
108057
+ var debug5 = _debug()("babel:config:loading:files:module-types");
108058
108058
  {
108059
108059
  try {
108060
108060
  import_ = require_import();
@@ -108138,7 +108138,7 @@ var require_module_types = __commonJS({
108138
108138
  var LOADING_CJS_FILES = /* @__PURE__ */ new Set();
108139
108139
  function loadCjsDefault(filepath) {
108140
108140
  if (LOADING_CJS_FILES.has(filepath)) {
108141
- debug4("Auto-ignoring usage of config %o.", filepath);
108141
+ debug5("Auto-ignoring usage of config %o.", filepath);
108142
108142
  return {};
108143
108143
  }
108144
108144
  let module3;
@@ -108249,7 +108249,7 @@ var require_configuration = __commonJS({
108249
108249
  var _configError = require_config_error();
108250
108250
  var fs = require_fs();
108251
108251
  var _rewriteStackTrace = require_rewrite_stack_trace();
108252
- var debug4 = _debug()("babel:config:loading:files:configuration");
108252
+ var debug5 = _debug()("babel:config:loading:files:configuration");
108253
108253
  var ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"];
108254
108254
  var RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"];
108255
108255
  var BABELIGNORE_FILENAME = ".babelignore";
@@ -108377,7 +108377,7 @@ var require_configuration = __commonJS({
108377
108377
  const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
108378
108378
  ignore = yield* readIgnoreConfig(ignoreLoc);
108379
108379
  if (ignore) {
108380
- debug4("Found ignore %o from %o.", ignore.filepath, dirname4);
108380
+ debug5("Found ignore %o from %o.", ignore.filepath, dirname4);
108381
108381
  }
108382
108382
  }
108383
108383
  }
@@ -108401,7 +108401,7 @@ from ${dirname4}`);
108401
108401
  return config2 || previousConfig2;
108402
108402
  }, previousConfig);
108403
108403
  if (config) {
108404
- debug4("Found configuration %o from %o.", config.filepath, dirname4);
108404
+ debug5("Found configuration %o from %o.", config.filepath, dirname4);
108405
108405
  }
108406
108406
  return config;
108407
108407
  }
@@ -108422,7 +108422,7 @@ from ${dirname4}`);
108422
108422
  if (!conf) {
108423
108423
  throw new _configError.default(`Config file contains no configuration data`, filepath);
108424
108424
  }
108425
- debug4("Loaded config %o from %o.", name, dirname4);
108425
+ debug5("Loaded config %o from %o.", name, dirname4);
108426
108426
  return conf;
108427
108427
  }
108428
108428
  function readConfig(filepath, envName, caller) {
@@ -109633,7 +109633,7 @@ var require_plugins4 = __commonJS({
109633
109633
  };
109634
109634
  return data;
109635
109635
  }
109636
- var debug4 = _debug()("babel:config:loading:files:plugins");
109636
+ var debug5 = _debug()("babel:config:loading:files:plugins");
109637
109637
  var EXACT_RE = /^module:/;
109638
109638
  var BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/;
109639
109639
  var BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/;
@@ -109647,7 +109647,7 @@ var require_plugins4 = __commonJS({
109647
109647
  function* loadPlugin(name, dirname4) {
109648
109648
  const filepath = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)());
109649
109649
  const value2 = yield* requireModule("plugin", filepath);
109650
- debug4("Loaded plugin %o from %o.", name, dirname4);
109650
+ debug5("Loaded plugin %o from %o.", name, dirname4);
109651
109651
  return {
109652
109652
  filepath,
109653
109653
  value: value2
@@ -109656,7 +109656,7 @@ var require_plugins4 = __commonJS({
109656
109656
  function* loadPreset(name, dirname4) {
109657
109657
  const filepath = resolvePreset(name, dirname4, yield* (0, _async.isAsync)());
109658
109658
  const value2 = yield* requireModule("preset", filepath);
109659
- debug4("Loaded preset %o from %o.", name, dirname4);
109659
+ debug5("Loaded preset %o from %o.", name, dirname4);
109660
109660
  return {
109661
109661
  filepath,
109662
109662
  value: value2
@@ -110771,13 +110771,13 @@ var require_dist = __commonJS({
110771
110771
  "use strict";
110772
110772
  function noop() {
110773
110773
  }
110774
- function once3(emitter, name) {
110775
- const o = once3.spread(emitter, name);
110774
+ function once4(emitter, name) {
110775
+ const o = once4.spread(emitter, name);
110776
110776
  const r = o.then((args) => args[0]);
110777
110777
  r.cancel = o.cancel;
110778
110778
  return r;
110779
110779
  }
110780
- (function(once4) {
110780
+ (function(once5) {
110781
110781
  function spread(emitter, name) {
110782
110782
  let c = null;
110783
110783
  const p = new Promise((resolve3, reject) => {
@@ -110804,9 +110804,9 @@ var require_dist = __commonJS({
110804
110804
  p.cancel = c;
110805
110805
  return p;
110806
110806
  }
110807
- once4.spread = spread;
110808
- })(once3 || (once3 = {}));
110809
- module2.exports = once3;
110807
+ once5.spread = spread;
110808
+ })(once4 || (once4 = {}));
110809
+ module2.exports = once4;
110810
110810
  }
110811
110811
  });
110812
110812
 
@@ -110815,7 +110815,7 @@ var require_tree_kill = __commonJS({
110815
110815
  "../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js"(exports, module2) {
110816
110816
  "use strict";
110817
110817
  var childProcess = require("child_process");
110818
- var spawn2 = childProcess.spawn;
110818
+ var spawn4 = childProcess.spawn;
110819
110819
  var exec = childProcess.exec;
110820
110820
  module2.exports = function(pid, signal, callback) {
110821
110821
  if (typeof signal === "function" && callback === void 0) {
@@ -110840,14 +110840,14 @@ var require_tree_kill = __commonJS({
110840
110840
  break;
110841
110841
  case "darwin":
110842
110842
  buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
110843
- return spawn2("pgrep", ["-P", parentPid]);
110843
+ return spawn4("pgrep", ["-P", parentPid]);
110844
110844
  }, function() {
110845
110845
  killAll(tree, signal, callback);
110846
110846
  });
110847
110847
  break;
110848
110848
  default:
110849
110849
  buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
110850
- return spawn2("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
110850
+ return spawn4("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
110851
110851
  }, function() {
110852
110852
  killAll(tree, signal, callback);
110853
110853
  });
@@ -110921,7 +110921,7 @@ var src_exports = {};
110921
110921
  __export(src_exports, {
110922
110922
  build: () => build,
110923
110923
  prepareCache: () => prepareCache,
110924
- shouldServe: () => import_build_utils7.shouldServe,
110924
+ shouldServe: () => import_build_utils8.shouldServe,
110925
110925
  startDevServer: () => startDevServer,
110926
110926
  version: () => version
110927
110927
  });
@@ -111403,7 +111403,6 @@ async function downloadInstallAndBundle({
111403
111403
  cliType,
111404
111404
  lockfileVersion,
111405
111405
  packageJsonPackageManager,
111406
- nodeVersion,
111407
111406
  env: spawnOpts.env || {},
111408
111407
  turboSupportsCorepackHome,
111409
111408
  projectCreatedAt: config.projectSettings?.createdAt
@@ -111425,7 +111424,6 @@ async function downloadInstallAndBundle({
111425
111424
  [],
111426
111425
  spawnOpts,
111427
111426
  meta,
111428
- nodeVersion,
111429
111427
  config.projectSettings?.createdAt
111430
111428
  );
111431
111429
  }
@@ -111828,59 +111826,167 @@ var prepareCache = ({ repoRootPath, workPath }) => {
111828
111826
  };
111829
111827
 
111830
111828
  // src/start-dev-server.ts
111831
- var import_once2 = __toESM(require_dist());
111829
+ var import_once3 = __toESM(require_dist());
111832
111830
  var import_url2 = __toESM(require("url"));
111833
111831
  var import_module3 = require("module");
111834
111832
  var import_fs2 = require("fs");
111835
- var import_path5 = require("path");
111836
- var import_child_process2 = require("child_process");
111833
+ var import_path6 = require("path");
111834
+ var import_child_process3 = require("child_process");
111837
111835
  var import_tree_kill = __toESM(require_tree_kill());
111838
111836
  var import_util = require("util");
111839
- var import_build_utils6 = require("@vercel/build-utils");
111837
+ var import_build_utils7 = require("@vercel/build-utils");
111840
111838
  var import_error_utils2 = require("@vercel/error-utils");
111841
111839
  var import_static_config2 = require("@vercel/static-config");
111842
111840
  var import_ts_morph2 = require("ts-morph");
111843
111841
 
111844
111842
  // src/fork-dev-server.ts
111845
- var import_once = __toESM(require_dist());
111843
+ var import_once2 = __toESM(require_dist());
111844
+ var import_build_utils6 = require("@vercel/build-utils");
111845
+ var import_child_process2 = require("child_process");
111846
+ var import_url = require("url");
111847
+ var import_path5 = require("path");
111848
+
111849
+ // src/bun-helpers.ts
111846
111850
  var import_build_utils5 = require("@vercel/build-utils");
111847
111851
  var import_child_process = require("child_process");
111848
- var import_url = require("url");
111852
+ var import_once = __toESM(require_dist());
111853
+ var import_os = require("os");
111849
111854
  var import_path4 = require("path");
111850
- function forkDevServer(options) {
111851
- let nodeOptions = process.env.NODE_OPTIONS || "";
111852
- if (!nodeOptions.includes("--no-warnings")) {
111853
- nodeOptions += " --no-warnings";
111855
+ async function spawnAsync(command, args, options) {
111856
+ const child = (0, import_child_process.spawn)(command, args, options);
111857
+ const [exitCode] = await import_once.default.spread(child, "close");
111858
+ return exitCode;
111859
+ }
111860
+ async function getOrCreateBunBinary() {
111861
+ const { platform } = process;
111862
+ const bunCommand = platform === "win32" ? "bun.exe" : "bun";
111863
+ const installPath = (0, import_path4.join)((0, import_os.homedir)(), ".bun", "bin", bunCommand);
111864
+ try {
111865
+ const exitCode = await spawnAsync(bunCommand, ["--version"], {
111866
+ stdio: "ignore"
111867
+ });
111868
+ if (exitCode === 0) {
111869
+ (0, import_build_utils5.debug)("Bun already installed and available in PATH");
111870
+ return bunCommand;
111871
+ }
111872
+ } catch {
111873
+ (0, import_build_utils5.debug)("Bun not found in PATH");
111854
111874
  }
111855
- const tsNodePath = options.require_.resolve("ts-node");
111856
- const esmLoader = (0, import_url.pathToFileURL)((0, import_path4.join)(tsNodePath, "..", "..", "esm.mjs"));
111857
- const cjsLoader = (0, import_path4.join)(tsNodePath, "..", "..", "register", "index.js");
111858
- const devServerPath = options.devServerPath || (0, import_path4.join)(__dirname, "dev-server.mjs");
111859
- if (options.maybeTranspile) {
111860
- if (options.isTypeScript) {
111861
- nodeOptions = `--require ${cjsLoader} --loader ${esmLoader} ${nodeOptions || ""}`;
111875
+ try {
111876
+ const exitCode = await spawnAsync(installPath, ["--version"], {
111877
+ stdio: "ignore"
111878
+ });
111879
+ if (exitCode === 0) {
111880
+ (0, import_build_utils5.debug)("Bun already installed in default location");
111881
+ return installPath;
111882
+ }
111883
+ } catch {
111884
+ (0, import_build_utils5.debug)("Bun not found in default location");
111885
+ }
111886
+ console.log("Installing Bun...");
111887
+ try {
111888
+ let exitCode;
111889
+ if (platform === "win32") {
111890
+ exitCode = await spawnAsync(
111891
+ "powershell",
111892
+ ["-c", "irm bun.sh/install.ps1 | iex"],
111893
+ { stdio: "inherit" }
111894
+ );
111862
111895
  } else {
111863
- if (options.isEsm) {
111896
+ exitCode = await spawnAsync(
111897
+ "bash",
111898
+ ["-c", "curl -fsSL https://bun.sh/install | bash"],
111899
+ { stdio: "inherit" }
111900
+ );
111901
+ }
111902
+ if (exitCode !== 0) {
111903
+ throw new Error(`Installation script exited with code ${exitCode}`);
111904
+ }
111905
+ } catch (error) {
111906
+ throw new Error(`Failed to install Bun: ${error}`);
111907
+ }
111908
+ try {
111909
+ const exitCode = await spawnAsync(installPath, ["--version"], {
111910
+ stdio: "ignore"
111911
+ });
111912
+ if (exitCode === 0) {
111913
+ (0, import_build_utils5.debug)("Bun was installed successfully");
111914
+ return installPath;
111915
+ }
111916
+ } catch {
111917
+ }
111918
+ throw new Error(
111919
+ "Bun installation failed. Please install manually and try again."
111920
+ );
111921
+ }
111922
+
111923
+ // src/fork-dev-server.ts
111924
+ async function forkDevServer(options) {
111925
+ const devServerPath = options.devServerPath || (0, import_path5.join)(__dirname, "dev-server.mjs");
111926
+ let child;
111927
+ if (options.runtime === "bun") {
111928
+ const bun = await getOrCreateBunBinary();
111929
+ const spawnOptions = {
111930
+ cwd: options.workPath,
111931
+ env: (0, import_build_utils6.cloneEnv)(process.env, options.meta.env, {
111932
+ VERCEL_DEV_ENTRYPOINT: options.entrypoint,
111933
+ VERCEL_DEV_CONFIG: JSON.stringify(options.config),
111934
+ VERCEL_DEV_BUILD_ENV: JSON.stringify(options.meta.buildEnv || {}),
111935
+ VERCEL_DEV_PUBLIC_DIR: options.publicDir || ""
111936
+ }),
111937
+ stdio: ["pipe", "pipe", "pipe"]
111938
+ };
111939
+ child = (0, import_child_process2.spawn)(bun, ["--bun", devServerPath], spawnOptions);
111940
+ let buffer = "";
111941
+ child.stdout?.on("data", (data) => {
111942
+ const output = data.toString();
111943
+ buffer += output;
111944
+ if (buffer.includes("Dev server listening:")) {
111945
+ const portMatch = buffer.match(/(\d{4,5})/);
111946
+ if (portMatch) {
111947
+ const port = parseInt(portMatch[1], 10);
111948
+ child.emit("message", { port }, null);
111949
+ }
111950
+ buffer = "";
111951
+ } else {
111952
+ console.log(output);
111953
+ }
111954
+ });
111955
+ child.stderr?.on("data", console.error);
111956
+ } else {
111957
+ let nodeOptions = process.env.NODE_OPTIONS || "";
111958
+ if (!nodeOptions.includes("--no-warnings")) {
111959
+ nodeOptions += " --no-warnings";
111960
+ }
111961
+ const tsNodePath = options.require_.resolve("ts-node");
111962
+ const esmLoader = (0, import_url.pathToFileURL)((0, import_path5.join)(tsNodePath, "..", "..", "esm.mjs"));
111963
+ const cjsLoader = (0, import_path5.join)(tsNodePath, "..", "..", "register", "index.js");
111964
+ if (options.maybeTranspile) {
111965
+ if (options.isTypeScript) {
111966
+ nodeOptions = `--require ${cjsLoader} --loader ${esmLoader} ${nodeOptions || ""}`;
111864
111967
  } else {
111865
- nodeOptions = `--require ${cjsLoader} ${nodeOptions || ""}`;
111968
+ if (options.isEsm) {
111969
+ } else {
111970
+ nodeOptions = `--require ${cjsLoader} ${nodeOptions || ""}`;
111971
+ }
111866
111972
  }
111867
111973
  }
111974
+ const forkOptions = {
111975
+ cwd: options.workPath,
111976
+ execArgv: [],
111977
+ env: (0, import_build_utils6.cloneEnv)(process.env, options.meta.env, {
111978
+ VERCEL_DEV_ENTRYPOINT: options.entrypoint,
111979
+ VERCEL_DEV_CONFIG: JSON.stringify(options.config),
111980
+ VERCEL_DEV_BUILD_ENV: JSON.stringify(options.meta.buildEnv || {}),
111981
+ VERCEL_DEV_PUBLIC_DIR: options.publicDir || "",
111982
+ TS_NODE_TRANSPILE_ONLY: "1",
111983
+ TS_NODE_COMPILER_OPTIONS: options.tsConfig?.compilerOptions ? JSON.stringify(options.tsConfig.compilerOptions) : void 0,
111984
+ NODE_OPTIONS: nodeOptions
111985
+ }),
111986
+ stdio: options.printLogs ? "pipe" : void 0
111987
+ };
111988
+ child = (0, import_child_process2.fork)(devServerPath, [], forkOptions);
111868
111989
  }
111869
- const forkOptions = {
111870
- cwd: options.workPath,
111871
- execArgv: [],
111872
- env: (0, import_build_utils5.cloneEnv)(process.env, options.meta.env, {
111873
- VERCEL_DEV_ENTRYPOINT: options.entrypoint,
111874
- VERCEL_DEV_CONFIG: JSON.stringify(options.config),
111875
- VERCEL_DEV_BUILD_ENV: JSON.stringify(options.meta.buildEnv || {}),
111876
- VERCEL_DEV_PUBLIC_DIR: options.publicDir || "",
111877
- TS_NODE_TRANSPILE_ONLY: "1",
111878
- TS_NODE_COMPILER_OPTIONS: options.tsConfig?.compilerOptions ? JSON.stringify(options.tsConfig.compilerOptions) : void 0,
111879
- NODE_OPTIONS: nodeOptions
111880
- }),
111881
- stdio: options.printLogs ? "pipe" : void 0
111882
- };
111883
- const child = (0, import_child_process.fork)(devServerPath, [], forkOptions);
111884
111990
  if (options.printLogs) {
111885
111991
  child.stdout?.on("data", (data) => {
111886
111992
  console.log(`stdout: ${data}`);
@@ -111898,8 +112004,8 @@ function checkForPid(path, process2) {
111898
112004
  }
111899
112005
  }
111900
112006
  async function readMessage(child) {
111901
- const onMessage = (0, import_once.default)(child, "message");
111902
- const onExit = import_once.default.spread(child, "close");
112007
+ const onMessage = (0, import_once2.default)(child, "message");
112008
+ const onExit = import_once2.default.spread(child, "close");
111903
112009
  const result = await Promise.race([
111904
112010
  onMessage.then((x) => {
111905
112011
  return { state: "message", value: x };
@@ -111916,27 +112022,47 @@ async function readMessage(child) {
111916
112022
  // src/start-dev-server.ts
111917
112023
  var require_3 = (0, import_module3.createRequire)(__filename);
111918
112024
  var treeKill = (0, import_util.promisify)(import_tree_kill.default);
111919
- var tscPath = (0, import_path5.resolve)((0, import_path5.dirname)(require_3.resolve("typescript")), "../bin/tsc");
111920
112025
  var startDevServer = async (opts) => {
111921
112026
  const { entrypoint, workPath, config, meta = {}, publicDir } = opts;
111922
- const entrypointPath = (0, import_path5.join)(workPath, entrypoint);
112027
+ const entrypointPath = (0, import_path6.join)(workPath, entrypoint);
112028
+ const project = new import_ts_morph2.Project();
112029
+ const staticConfig = (0, import_static_config2.getConfig)(project, entrypointPath);
112030
+ const vercelConfigFile = opts.files["vercel.json"];
112031
+ let bunVersion;
112032
+ try {
112033
+ if (vercelConfigFile?.type === "FileFsRef") {
112034
+ const vercelConfigContents = await import_fs2.promises.readFile(
112035
+ vercelConfigFile.fsPath,
112036
+ "utf8"
112037
+ );
112038
+ if (vercelConfigContents) {
112039
+ try {
112040
+ const vercelConfig = JSON.parse(vercelConfigContents);
112041
+ if (vercelConfig.bunVersion) {
112042
+ bunVersion = (0, import_build_utils7.getSupportedBunVersion)(vercelConfig.bunVersion);
112043
+ }
112044
+ } catch {
112045
+ }
112046
+ }
112047
+ }
112048
+ } catch {
112049
+ }
112050
+ const runtime = bunVersion ? "bun" : "node";
111923
112051
  if (config.middleware === true && typeof meta.requestUrl === "string") {
111924
- const project = new import_ts_morph2.Project();
111925
- const staticConfig = (0, import_static_config2.getConfig)(project, entrypointPath);
111926
112052
  const matchers = new RegExp(getRegExpFromMatchers(staticConfig?.matcher));
111927
112053
  const parsed = import_url2.default.parse(meta.requestUrl, true);
111928
112054
  if (typeof parsed.pathname !== "string" || !matchers.test(parsed.pathname)) {
111929
112055
  return null;
111930
112056
  }
111931
112057
  }
111932
- const entryDir = (0, import_path5.dirname)(entrypointPath);
111933
- const ext = (0, import_path5.extname)(entrypoint);
111934
- const pathToTsConfig = await (0, import_build_utils6.walkParentDirs)({
112058
+ const entryDir = (0, import_path6.dirname)(entrypointPath);
112059
+ const ext = (0, import_path6.extname)(entrypoint);
112060
+ const pathToTsConfig = await (0, import_build_utils7.walkParentDirs)({
111935
112061
  base: workPath,
111936
112062
  start: entryDir,
111937
112063
  filename: "tsconfig.json"
111938
112064
  });
111939
- const pathToPkg = await (0, import_build_utils6.walkParentDirs)({
112065
+ const pathToPkg = await (0, import_build_utils7.walkParentDirs)({
111940
112066
  base: workPath,
111941
112067
  start: entryDir,
111942
112068
  filename: "package.json"
@@ -111963,7 +112089,7 @@ var startDevServer = async (opts) => {
111963
112089
  ts = requireTypescript(compiler);
111964
112090
  }
111965
112091
  if (!ts) {
111966
- compiler = resolveTypescript((0, import_path5.join)(__dirname, ".."));
112092
+ compiler = resolveTypescript((0, import_path6.join)(__dirname, ".."));
111967
112093
  ts = requireTypescript(compiler);
111968
112094
  }
111969
112095
  if (pathToTsConfig) {
@@ -111992,7 +112118,7 @@ var startDevServer = async (opts) => {
111992
112118
  tsConfig.compilerOptions.allowJs = true;
111993
112119
  tsConfig.compilerOptions.noEmit = true;
111994
112120
  }
111995
- const child = forkDevServer({
112121
+ const child = await forkDevServer({
111996
112122
  workPath,
111997
112123
  config,
111998
112124
  entrypoint,
@@ -112002,7 +112128,8 @@ var startDevServer = async (opts) => {
112002
112128
  maybeTranspile,
112003
112129
  meta,
112004
112130
  tsConfig,
112005
- publicDir
112131
+ publicDir,
112132
+ runtime
112006
112133
  });
112007
112134
  const { pid } = child;
112008
112135
  const message = await readMessage(child);
@@ -112012,12 +112139,27 @@ var startDevServer = async (opts) => {
112012
112139
  console.error("Type check for %j failed:", entrypoint, err);
112013
112140
  });
112014
112141
  }
112142
+ if (!pid) {
112143
+ throw new Error(`Child process exited`);
112144
+ }
112015
112145
  const shutdown = async () => {
112016
- child.send("shutdown", async (err) => {
112017
- if (err) {
112146
+ if (runtime === "bun") {
112147
+ try {
112148
+ process.kill(pid, "SIGTERM");
112149
+ } catch (err) {
112018
112150
  await treeKill(pid);
112019
112151
  }
112020
- });
112152
+ } else {
112153
+ await new Promise((resolve3, reject) => {
112154
+ child.send("shutdown", (err) => {
112155
+ if (err) {
112156
+ treeKill(pid).then(() => resolve3()).catch((killErr) => reject(killErr));
112157
+ } else {
112158
+ resolve3();
112159
+ }
112160
+ });
112161
+ });
112162
+ }
112021
112163
  };
112022
112164
  return { port: message.value.port, pid, shutdown };
112023
112165
  } else {
@@ -112027,16 +112169,33 @@ var startDevServer = async (opts) => {
112027
112169
  }
112028
112170
  };
112029
112171
  async function doTypeCheck({ entrypoint, workPath, meta = {} }, projectTsConfig) {
112030
- const { devCacheDir = (0, import_path5.join)(workPath, ".vercel", "cache") } = meta;
112031
- const entrypointCacheDir = (0, import_path5.join)(devCacheDir, "node", entrypoint);
112032
- const tsconfigName = projectTsConfig ? `tsconfig-with-${(0, import_path5.relative)(workPath, projectTsConfig).replace(
112172
+ const { devCacheDir = (0, import_path6.join)(workPath, ".vercel", "cache") } = meta;
112173
+ const entrypointCacheDir = (0, import_path6.join)(devCacheDir, "node", entrypoint);
112174
+ const resolveTypescript = (p) => {
112175
+ try {
112176
+ return require_3.resolve("typescript", {
112177
+ paths: [p]
112178
+ });
112179
+ } catch (_) {
112180
+ return "";
112181
+ }
112182
+ };
112183
+ let compiler = resolveTypescript(workPath);
112184
+ if (!compiler) {
112185
+ compiler = resolveTypescript((0, import_path6.join)(__dirname, ".."));
112186
+ }
112187
+ if (!compiler) {
112188
+ compiler = require_3.resolve("typescript");
112189
+ }
112190
+ const tscPath = (0, import_path6.resolve)((0, import_path6.dirname)(compiler), "../bin/tsc");
112191
+ const tsconfigName = projectTsConfig ? `tsconfig-with-${(0, import_path6.relative)(workPath, projectTsConfig).replace(
112033
112192
  /[\\/.]/g,
112034
112193
  "-"
112035
112194
  )}.json` : "tsconfig.json";
112036
- const tsconfigPath = (0, import_path5.join)(entrypointCacheDir, tsconfigName);
112195
+ const tsconfigPath = (0, import_path6.join)(entrypointCacheDir, tsconfigName);
112037
112196
  const tsconfig = {
112038
- extends: projectTsConfig ? (0, import_path5.relative)(entrypointCacheDir, projectTsConfig) : void 0,
112039
- include: [(0, import_path5.relative)(entrypointCacheDir, (0, import_path5.join)(workPath, entrypoint))]
112197
+ extends: projectTsConfig ? (0, import_path6.relative)(entrypointCacheDir, projectTsConfig) : void 0,
112198
+ include: [(0, import_path6.relative)(entrypointCacheDir, (0, import_path6.join)(workPath, entrypoint))]
112040
112199
  };
112041
112200
  try {
112042
112201
  const json = JSON.stringify(tsconfig, null, " ");
@@ -112046,7 +112205,7 @@ async function doTypeCheck({ entrypoint, workPath, meta = {} }, projectTsConfig)
112046
112205
  if ((0, import_error_utils2.isErrnoException)(error) && error.code !== "EEXIST")
112047
112206
  throw error;
112048
112207
  }
112049
- const child = (0, import_child_process2.spawn)(
112208
+ const child = (0, import_child_process3.spawn)(
112050
112209
  process.execPath,
112051
112210
  [
112052
112211
  tscPath,
@@ -112062,11 +112221,11 @@ async function doTypeCheck({ entrypoint, workPath, meta = {} }, projectTsConfig)
112062
112221
  stdio: "inherit"
112063
112222
  }
112064
112223
  );
112065
- await import_once2.default.spread(child, "close");
112224
+ await import_once3.default.spread(child, "close");
112066
112225
  }
112067
112226
 
112068
112227
  // src/index.ts
112069
- var import_build_utils7 = require("@vercel/build-utils");
112228
+ var import_build_utils8 = require("@vercel/build-utils");
112070
112229
  var version = 3;
112071
112230
  // Annotate the CommonJS export names for ESM import in node:
112072
112231
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -17,7 +17,7 @@
17
17
  "@edge-runtime/primitives": "4.1.0",
18
18
  "@edge-runtime/vm": "3.2.0",
19
19
  "@types/node": "16.18.11",
20
- "@vercel/build-utils": "12.1.3",
20
+ "@vercel/build-utils": "12.2.0",
21
21
  "@vercel/error-utils": "2.0.3",
22
22
  "@vercel/nft": "0.30.1",
23
23
  "@vercel/static-config": "3.1.2",