netlify-cli 8.6.13 → 8.6.14

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": "8.6.13",
3
+ "version": "8.6.14",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.6.13",
9
+ "version": "8.6.14",
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": "8.6.13",
4
+ "version": "8.6.14",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -1,5 +1,6 @@
1
1
  // @ts-check
2
2
  const { mkdir } = require('fs').promises
3
+ const { isAbsolute, join } = require('path')
3
4
  const { env } = require('process')
4
5
 
5
6
  const terminalLink = require('terminal-link')
@@ -146,7 +147,10 @@ class FunctionsRegistry {
146
147
  log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} function ${terminalLink(chalk.yellow(name), func.url)}.`)
147
148
  }
148
149
 
149
- async scan(directories) {
150
+ async scan(relativeDirs) {
151
+ const directories = relativeDirs.filter(Boolean).map((dir) => (isAbsolute(dir) ? dir : join(this.projectRoot, dir)))
152
+
153
+ // check after filtering to filter out [undefined] for example
150
154
  if (directories.length === 0) {
151
155
  return
152
156
  }