netlify-cli 17.23.0 → 17.23.2

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 +1 @@
1
- {"version":3,"file":"build-info.d.ts","sourceRoot":"","sources":["../../src/utils/build-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAI9C,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAmCrD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAWnF;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YACzB,WAAW,SACd,KAAK,GAAG,OAAO,KACpB,QAAQ,QAAQ,GAAG,SAAS,CAyC9B,CAAA"}
1
+ {"version":3,"file":"build-info.d.ts","sourceRoot":"","sources":["../../src/utils/build-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAK9C,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAmCrD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAWnF;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YACzB,WAAW,SACd,KAAK,GAAG,OAAO,KACpB,QAAQ,QAAQ,GAAG,SAAS,CAoD9B,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { isCI } from 'ci-info';
1
2
  import fuzzy from 'fuzzy';
2
3
  import inquirer from 'inquirer';
3
4
  import { chalk, log } from './command-helpers.js';
@@ -59,6 +60,12 @@ export const detectFrameworkSettings = async (command, type = 'dev') => {
59
60
  };
60
61
  }
61
62
  if (settings.length > 1) {
63
+ if (isCI) {
64
+ log(`Multiple possible ${type} commands found`);
65
+ throw new Error(`Detected commands for: ${settings
66
+ .map((setting) => setting.framework.name)
67
+ .join(', ')}. Update your settings to specify which to use. Refer to https://ntl.fyi/dev-monorepo for more information.`);
68
+ }
62
69
  // multiple matching detectors, make the user choose
63
70
  const scriptInquirerOptions = formatSettingsArrForInquirer(settings, type);
64
71
  const { chosenSettings } = await inquirer.prompt({
@@ -1,2 +1,2 @@
1
- export declare const ensureNetlifyIgnore: (dir: any) => Promise<false | undefined>;
1
+ export declare const ensureNetlifyIgnore: (dir: string) => Promise<false | undefined>;
2
2
  //# sourceMappingURL=gitignore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gitignore.d.ts","sourceRoot":"","sources":["../../src/utils/gitignore.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB,0CA0B/B,CAAA"}
1
+ {"version":3,"file":"gitignore.d.ts","sourceRoot":"","sources":["../../src/utils/gitignore.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,mBAAmB,QAAwB,MAAM,+BAyB7D,CAAA"}
@@ -1,16 +1,13 @@
1
1
  import { readFile, writeFile } from 'fs/promises';
2
2
  import path from 'path';
3
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'pars... Remove this comment to see the full error message
4
3
  import parseIgnore from 'parse-gitignore';
5
4
  import { fileExistsAsync } from '../lib/fs.js';
6
5
  import { log } from './command-helpers.js';
7
- // @ts-expect-error TS(7006) FIXME: Parameter 'dir' implicitly has an 'any' type.
8
6
  const hasGitIgnore = async function (dir) {
9
7
  const gitIgnorePath = path.join(dir, '.gitignore');
10
8
  const hasIgnore = await fileExistsAsync(gitIgnorePath);
11
9
  return hasIgnore;
12
10
  };
13
- // @ts-expect-error TS(7006) FIXME: Parameter 'dir' implicitly has an 'any' type.
14
11
  export const ensureNetlifyIgnore = async function (dir) {
15
12
  const gitIgnorePath = path.join(dir, '.gitignore');
16
13
  const ignoreContent = '# Local Netlify folder\n.netlify\n';
@@ -29,7 +26,6 @@ export const ensureNetlifyIgnore = async function (dir) {
29
26
  // ignore
30
27
  }
31
28
  /* Not ignoring .netlify folder. Add to .gitignore */
32
- // @ts-expect-error TS(7006) FIXME: Parameter 'pattern' implicitly has an 'any' type.
33
29
  if (!ignorePatterns || !ignorePatterns.patterns.some((pattern) => /(^|\/|\\)\.netlify($|\/|\\)/.test(pattern))) {
34
30
  log();
35
31
  log('Adding local .netlify folder to .gitignore file...');
@@ -15,6 +15,6 @@
15
15
  "author": "Netlify",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@netlify/functions": "^2.6.0"
18
+ "@netlify/functions": "^2.6.3"
19
19
  }
20
20
  }