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.
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/base-command.js +9 -2
- package/dist/commands/main.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/build-info.d.ts.map +1 -1
- package/dist/utils/build-info.js +7 -0
- package/dist/utils/gitignore.d.ts +1 -1
- package/dist/utils/gitignore.d.ts.map +1 -1
- package/dist/utils/gitignore.js +0 -4
- package/functions-templates/javascript/scheduled-function/package.json +1 -1
- package/functions-templates/typescript/hello-world/package-lock.json +544 -16
- package/functions-templates/typescript/hello-world/package.json +1 -1
- package/functions-templates/typescript/scheduled-function/package.json +1 -1
- package/npm-shrinkwrap.json +72 -554
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../src/commands/base-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../src/commands/base-command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAiB,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAU,MAAM,WAAW,CAAA;AAgCjD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC,CAAA;AAkGD,0EAA0E;AAC1E,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;;IAC9C,4DAA4D;IAE5D,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAyC;IAE7D,OAAO,EA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zC;;OAEG;IACH,cAAc,CAAC,CAAC,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;CAGjE"}
|
|
@@ -10,6 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _BaseCommand_noBaseOptions;
|
|
13
|
+
import { isCI } from 'ci-info';
|
|
13
14
|
import { existsSync } from 'fs';
|
|
14
15
|
import { join, relative, resolve } from 'path';
|
|
15
16
|
import process from 'process';
|
|
@@ -80,6 +81,11 @@ async function selectWorkspace(project, filter) {
|
|
|
80
81
|
if (!selected) {
|
|
81
82
|
log();
|
|
82
83
|
log(chalk.cyan(`We've detected multiple sites inside your repository`));
|
|
84
|
+
if (isCI) {
|
|
85
|
+
throw new Error(`Sites detected: ${(project.workspace?.packages || [])
|
|
86
|
+
.map((pkg) => pkg.name || pkg.path)
|
|
87
|
+
.join(', ')}. Configure the site you want to work with and try again. Refer to https://ntl.fyi/configure-site for more information.`);
|
|
88
|
+
}
|
|
83
89
|
const { result } = await inquirer.prompt({
|
|
84
90
|
name: 'result',
|
|
85
91
|
// @ts-expect-error TS(2769) FIXME: No overload matches this call.
|
|
@@ -392,8 +398,9 @@ class BaseCommand extends Command {
|
|
|
392
398
|
const frameworks = await this.project.detectFrameworks();
|
|
393
399
|
let packageConfig = flags.config ? resolve(flags.config) : undefined;
|
|
394
400
|
// check if we have detected multiple projects inside which one we have to perform our operations.
|
|
395
|
-
// only ask to select one if on the workspace root
|
|
396
|
-
if (!
|
|
401
|
+
// only ask to select one if on the workspace root and no --cwd was provided
|
|
402
|
+
if (!flags.cwd &&
|
|
403
|
+
!COMMANDS_WITHOUT_WORKSPACE_OPTIONS.has(actionCommand.name()) &&
|
|
397
404
|
this.project.workspace?.packages.length &&
|
|
398
405
|
this.project.workspace.isRoot) {
|
|
399
406
|
this.workspacePackage = await selectWorkspace(this.project, actionCommand.opts().filter);
|
package/dist/commands/main.js
CHANGED
|
@@ -71,7 +71,7 @@ const mainCommand = async function (options, command) {
|
|
|
71
71
|
if (options.telemetryDisable) {
|
|
72
72
|
globalConfig.set('telemetryDisabled', true);
|
|
73
73
|
console.log('Netlify telemetry has been disabled');
|
|
74
|
-
console.log('You can
|
|
74
|
+
console.log('You can re-enable it anytime with the --telemetry-enable flag');
|
|
75
75
|
exit();
|
|
76
76
|
}
|
|
77
77
|
if (options.telemetryEnable) {
|