@vercel/node 1.15.4 → 2.0.1
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 +3 -3
- package/dist/typescript.js +0 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -104081,7 +104081,8 @@ async function compile(workPath, baseDir, entrypointPath, config, nodeVersion) {
|
|
|
104081
104081
|
return null;
|
|
104082
104082
|
try {
|
|
104083
104083
|
let source = fs_1.readFileSync(fsPath);
|
|
104084
|
-
if (fsPath.endsWith('.ts')
|
|
104084
|
+
if ((fsPath.endsWith('.ts') && !fsPath.endsWith('.d.ts')) ||
|
|
104085
|
+
fsPath.endsWith('.tsx')) {
|
|
104085
104086
|
source = compileTypeScript(fsPath, source.toString());
|
|
104086
104087
|
}
|
|
104087
104088
|
const { mode } = fs_1.lstatSync(fsPath);
|
|
@@ -104106,7 +104107,7 @@ async function compile(workPath, baseDir, entrypointPath, config, nodeVersion) {
|
|
|
104106
104107
|
},
|
|
104107
104108
|
});
|
|
104108
104109
|
for (const warning of warnings) {
|
|
104109
|
-
if (warning
|
|
104110
|
+
if (warning?.stack) {
|
|
104110
104111
|
build_utils_1.debug(warning.stack.replace('Error: ', 'Warning: '));
|
|
104111
104112
|
}
|
|
104112
104113
|
}
|
|
@@ -104672,7 +104673,6 @@ function fixConfig(config, nodeVersionMajor = 12) {
|
|
|
104672
104673
|
delete config.compilerOptions.emitDeclarationOnly;
|
|
104673
104674
|
delete config.compilerOptions.tsBuildInfoFile;
|
|
104674
104675
|
delete config.compilerOptions.incremental;
|
|
104675
|
-
// Target esnext output by default (instead of ES3).
|
|
104676
104676
|
// This will prevent TS from polyfill/downlevel emit.
|
|
104677
104677
|
if (config.compilerOptions.target === undefined) {
|
|
104678
104678
|
// See https://github.com/tsconfig/bases/tree/main/bases
|
package/dist/typescript.js
CHANGED
|
@@ -322,7 +322,6 @@ function fixConfig(config, nodeVersionMajor = 12) {
|
|
|
322
322
|
delete config.compilerOptions.emitDeclarationOnly;
|
|
323
323
|
delete config.compilerOptions.tsBuildInfoFile;
|
|
324
324
|
delete config.compilerOptions.incremental;
|
|
325
|
-
// Target esnext output by default (instead of ES3).
|
|
326
325
|
// This will prevent TS from polyfill/downlevel emit.
|
|
327
326
|
if (config.compilerOptions.target === undefined) {
|
|
328
327
|
// See https://github.com/tsconfig/bases/tree/main/bases
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@types/node": "*",
|
|
34
|
-
"@vercel/node-bridge": "
|
|
34
|
+
"@vercel/node-bridge": "3.0.0",
|
|
35
35
|
"ts-node": "8.9.1",
|
|
36
36
|
"typescript": "4.3.4"
|
|
37
37
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/etag": "1.8.0",
|
|
46
46
|
"@types/jest": "27.4.1",
|
|
47
47
|
"@types/test-listen": "1.1.0",
|
|
48
|
-
"@vercel/build-utils": "
|
|
48
|
+
"@vercel/build-utils": "4.0.0",
|
|
49
49
|
"@vercel/ncc": "0.24.0",
|
|
50
50
|
"@vercel/nft": "0.19.1",
|
|
51
51
|
"content-type": "1.0.4",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"source-map-support": "0.5.12",
|
|
56
56
|
"test-listen": "1.1.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "e232566cbec464511088ee65e61e52e037b128b1"
|
|
59
59
|
}
|