@vercel/node 2.0.0 → 2.0.1-canary.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/dist/index.js +2 -1
- package/package.json +2 -2
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "2.0.0",
|
|
3
|
+
"version": "2.0.1-canary.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -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": "592689cad1bda30b3d87db41ff7a550bdc8cc478"
|
|
59
59
|
}
|