@vercel/node 2.8.14 → 2.8.16

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/dist/index.js CHANGED
@@ -301596,12 +301596,11 @@ function register(opts = {}) {
301596
301596
  ].map(Number);
301597
301597
  // Require the TypeScript compiler and configuration.
301598
301598
  const cwd = options.basePath || process.cwd();
301599
- const nowNodeBase = path_1.resolve(__dirname, '..', '..', '..');
301600
301599
  let compiler;
301601
301600
  const require_ = eval('require');
301602
301601
  try {
301603
301602
  compiler = require_.resolve(options.compiler || 'typescript', {
301604
- paths: [options.project || cwd, nowNodeBase],
301603
+ paths: [options.project || cwd],
301605
301604
  });
301606
301605
  }
301607
301606
  catch (e) {
@@ -301609,8 +301608,8 @@ function register(opts = {}) {
301609
301608
  }
301610
301609
  //eslint-disable-next-line @typescript-eslint/no-var-requires
301611
301610
  const ts = require_(compiler);
301612
- if (compiler.startsWith(nowNodeBase)) {
301613
- console.log(`Using built-in TypeScript ${ts.version} since "typescript" missing from "devDependencies"`);
301611
+ if (compiler === 'typescript') {
301612
+ console.log(`Using built-in TypeScript ${ts.version} since "typescript" is missing from "devDependencies"`);
301614
301613
  }
301615
301614
  else {
301616
301615
  console.log(`Using TypeScript ${ts.version} (local user-provided)`);
@@ -94,12 +94,11 @@ function register(opts = {}) {
94
94
  ].map(Number);
95
95
  // Require the TypeScript compiler and configuration.
96
96
  const cwd = options.basePath || process.cwd();
97
- const nowNodeBase = path_1.resolve(__dirname, '..', '..', '..');
98
97
  let compiler;
99
98
  const require_ = eval('require');
100
99
  try {
101
100
  compiler = require_.resolve(options.compiler || 'typescript', {
102
- paths: [options.project || cwd, nowNodeBase],
101
+ paths: [options.project || cwd],
103
102
  });
104
103
  }
105
104
  catch (e) {
@@ -107,8 +106,8 @@ function register(opts = {}) {
107
106
  }
108
107
  //eslint-disable-next-line @typescript-eslint/no-var-requires
109
108
  const ts = require_(compiler);
110
- if (compiler.startsWith(nowNodeBase)) {
111
- console.log(`Using built-in TypeScript ${ts.version} since "typescript" missing from "devDependencies"`);
109
+ if (compiler === 'typescript') {
110
+ console.log(`Using built-in TypeScript ${ts.version} since "typescript" is missing from "devDependencies"`);
112
111
  }
113
112
  else {
114
113
  console.log(`Using TypeScript ${ts.version} (local user-provided)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "2.8.14",
3
+ "version": "2.8.16",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@edge-runtime/vm": "2.0.0",
33
33
  "@types/node": "14.18.33",
34
- "@vercel/build-utils": "5.9.0",
34
+ "@vercel/build-utils": "6.0.0",
35
35
  "@vercel/node-bridge": "3.1.10",
36
36
  "@vercel/static-config": "2.0.11",
37
37
  "edge-runtime": "2.0.0",
@@ -64,5 +64,5 @@
64
64
  "test-listen": "1.1.0",
65
65
  "ts-morph": "12.0.0"
66
66
  },
67
- "gitHead": "79ef5c37246c75973c0af9f5fd04afa51f0859ba"
67
+ "gitHead": "25f6595d3698546ba69c7fe9f601a906167fef3f"
68
68
  }