netlify-cli 17.10.0 → 17.10.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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "17.10.
|
|
3
|
+
"version": "17.10.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "17.10.
|
|
9
|
+
"version": "17.10.1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -142,7 +142,7 @@ export default async function handler({ config, directory, errorExit, func, meta
|
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
144
|
// We must use esbuild for certain file extensions.
|
|
145
|
-
const mustTranspile = ['.
|
|
145
|
+
const mustTranspile = ['.mjs', '.ts', '.mts', '.cts'].includes(path.extname(func.mainFile));
|
|
146
146
|
const mustUseEsbuild = hasTypeModule || mustTranspile;
|
|
147
147
|
if (mustUseEsbuild && !functionsConfig['*'].nodeBundler) {
|
|
148
148
|
functionsConfig['*'].nodeBundler = 'esbuild';
|