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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "17.10.0",
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.0",
9
+ "version": "17.10.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "17.10.0",
4
+ "version": "17.10.1",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -81,7 +81,7 @@ export default class NetlifyFunction {
81
81
  return '.mts';
82
82
  }
83
83
  if (extension === '.js') {
84
- return '.js';
84
+ return '.mjs';
85
85
  }
86
86
  }
87
87
  hasValidName() {
@@ -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 = ['.js', '.ts', '.mts', '.cts'].includes(path.extname(func.mainFile));
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';