@angular/cli 14.0.0-next.1 → 14.0.0-next.12
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/bin/ng.js +3 -5
- package/lib/cli/index.d.ts +1 -2
- package/lib/cli/index.js +16 -45
- package/lib/config/schema.json +48 -15
- package/lib/config/workspace-schema.d.ts +18 -1
- package/lib/init.js +10 -9
- package/package.json +21 -23
- package/{models → src/analytics}/analytics-collector.d.ts +0 -0
- package/{models → src/analytics}/analytics-collector.js +8 -2
- package/src/analytics/analytics.d.ts +47 -0
- package/src/analytics/analytics.js +306 -0
- package/src/command-builder/architect-base-command-module.d.ts +30 -0
- package/src/command-builder/architect-base-command-module.js +165 -0
- package/src/command-builder/architect-command-module.d.ts +25 -0
- package/src/command-builder/architect-command-module.js +134 -0
- package/src/command-builder/command-module.d.ts +89 -0
- package/src/command-builder/command-module.js +198 -0
- package/{utilities/package-json.js → src/command-builder/command-runner.d.ts} +2 -2
- package/src/command-builder/command-runner.js +168 -0
- package/src/command-builder/schematics-command-module.d.ts +43 -0
- package/src/command-builder/schematics-command-module.js +333 -0
- package/src/command-builder/utilities/command.d.ts +13 -0
- package/src/command-builder/utilities/command.js +27 -0
- package/src/command-builder/utilities/json-help.d.ts +36 -0
- package/src/command-builder/utilities/json-help.js +94 -0
- package/src/command-builder/utilities/json-schema.d.ts +40 -0
- package/{utilities → src/command-builder/utilities}/json-schema.js +20 -121
- package/src/command-builder/utilities/normalize-options-middleware.d.ts +18 -0
- package/src/command-builder/utilities/normalize-options-middleware.js +59 -0
- package/{models → src/command-builder/utilities}/schematic-engine-host.d.ts +2 -2
- package/{models → src/command-builder/utilities}/schematic-engine-host.js +33 -18
- package/src/command-builder/utilities/schematic-workflow.d.ts +14 -0
- package/src/command-builder/utilities/schematic-workflow.js +68 -0
- package/src/commands/add/cli.d.ts +33 -0
- package/{commands/add-impl.js → src/commands/add/cli.js} +108 -80
- package/src/commands/add/long-description.md +7 -0
- package/src/commands/analytics/cli.d.ts +16 -0
- package/src/commands/analytics/cli.js +35 -0
- package/src/commands/analytics/info/cli.d.ts +16 -0
- package/src/commands/analytics/info/cli.js +26 -0
- package/src/commands/analytics/settings/cli.d.ts +35 -0
- package/src/commands/analytics/settings/cli.js +61 -0
- package/src/commands/build/cli.d.ts +16 -0
- package/src/commands/build/cli.js +23 -0
- package/{commands/build-long.md → src/commands/build/long-description.md} +0 -0
- package/src/commands/cache/clean/cli.d.ts +17 -0
- package/src/commands/cache/clean/cli.js +32 -0
- package/src/commands/cache/cli.d.ts +17 -0
- package/src/commands/cache/cli.js +38 -0
- package/src/commands/cache/info/cli.d.ts +20 -0
- package/src/commands/cache/info/cli.js +82 -0
- package/src/commands/cache/long-description.md +53 -0
- package/src/commands/cache/settings/cli.d.ts +27 -0
- package/src/commands/cache/settings/cli.js +42 -0
- package/src/commands/cache/utilities.d.ts +11 -0
- package/src/commands/cache/utilities.js +49 -0
- package/src/commands/completion/cli.d.ts +16 -0
- package/src/commands/completion/cli.js +31 -0
- package/src/commands/completion/long-description.md +1 -0
- package/src/commands/config/cli.d.ts +24 -0
- package/{commands/config-impl.js → src/commands/config/cli.js} +102 -89
- package/{commands/config-long.md → src/commands/config/long-description.md} +2 -2
- package/src/commands/deploy/cli.d.ts +17 -0
- package/src/commands/deploy/cli.js +49 -0
- package/{commands/deploy-long.md → src/commands/deploy/long-description.md} +0 -0
- package/src/commands/doc/cli.d.ts +23 -0
- package/{commands/doc-impl.js → src/commands/doc/cli.js} +41 -12
- package/src/commands/e2e/cli.d.ts +18 -0
- package/src/commands/e2e/cli.js +35 -0
- package/src/commands/extract-i18n/cli.d.ts +15 -0
- package/src/commands/extract-i18n/cli.js +20 -0
- package/src/commands/generate/cli.d.ts +39 -0
- package/src/commands/generate/cli.js +145 -0
- package/src/commands/lint/cli.d.ts +17 -0
- package/src/commands/lint/cli.js +28 -0
- package/{commands/lint-long.md → src/commands/lint/long-description.md} +0 -0
- package/src/commands/make-this-awesome/cli.d.ts +17 -0
- package/{commands/easter-egg-impl.js → src/commands/make-this-awesome/cli.js} +17 -10
- package/src/commands/new/cli.d.ts +27 -0
- package/src/commands/new/cli.js +82 -0
- package/src/commands/run/cli.d.ts +25 -0
- package/src/commands/run/cli.js +83 -0
- package/{commands/run-long.md → src/commands/run/long-description.md} +0 -0
- package/src/commands/serve/cli.d.ts +16 -0
- package/src/commands/serve/cli.js +21 -0
- package/src/commands/test/cli.d.ts +16 -0
- package/src/commands/test/cli.js +23 -0
- package/{commands/test-long.md → src/commands/test/long-description.md} +0 -0
- package/{commands/update-impl.d.ts → src/commands/update/cli.d.ts} +26 -9
- package/{commands/update-impl.js → src/commands/update/cli.js} +363 -316
- package/{commands/update-long.md → src/commands/update/long-description.md} +0 -0
- package/src/commands/update/schematic/index.js +33 -20
- package/src/commands/version/cli.d.ts +18 -0
- package/{commands/version-impl.js → src/commands/version/cli.js} +56 -74
- package/src/typings-bazel.d.ts +14 -0
- package/src/typings.d.ts +1 -14
- package/{utilities → src/utilities}/color.d.ts +0 -0
- package/{utilities → src/utilities}/color.js +5 -1
- package/{utilities → src/utilities}/config.d.ts +6 -5
- package/{utilities → src/utilities}/config.js +33 -19
- package/src/utilities/environment-options.d.ts +12 -0
- package/src/utilities/environment-options.js +24 -0
- package/{utilities → src/utilities}/find-up.d.ts +0 -0
- package/{utilities → src/utilities}/find-up.js +5 -1
- package/{utilities → src/utilities}/json-file.d.ts +0 -0
- package/{utilities → src/utilities}/json-file.js +1 -0
- package/{utilities → src/utilities}/log-file.d.ts +0 -0
- package/{utilities → src/utilities}/log-file.js +0 -0
- package/src/utilities/memoize.d.ts +15 -0
- package/src/utilities/memoize.js +69 -0
- package/src/utilities/package-manager.d.ts +41 -0
- package/src/utilities/package-manager.js +287 -0
- package/{utilities → src/utilities}/package-metadata.d.ts +15 -37
- package/{utilities → src/utilities}/package-metadata.js +15 -27
- package/{utilities → src/utilities}/package-tree.d.ts +2 -2
- package/{utilities → src/utilities}/package-tree.js +5 -1
- package/{utilities → src/utilities}/project.d.ts +0 -0
- package/{utilities → src/utilities}/project.js +5 -1
- package/{utilities → src/utilities}/prompt.d.ts +2 -0
- package/{utilities → src/utilities}/prompt.js +25 -4
- package/{utilities → src/utilities}/spinner.d.ts +0 -0
- package/{utilities → src/utilities}/spinner.js +0 -0
- package/{utilities → src/utilities}/tty.d.ts +0 -0
- package/{utilities → src/utilities}/tty.js +0 -0
- package/{models → src/utilities}/version.d.ts +2 -1
- package/{models → src/utilities}/version.js +6 -6
- package/bin/postinstall/analytics-prompt.js +0 -27
- package/bin/postinstall/script.js +0 -16
- package/commands/add-impl.d.ts +0 -21
- package/commands/add.d.ts +0 -42
- package/commands/add.js +0 -10
- package/commands/add.json +0 -54
- package/commands/add.md +0 -10
- package/commands/analytics-impl.d.ts +0 -13
- package/commands/analytics-impl.js +0 -80
- package/commands/analytics-long.md +0 -8
- package/commands/analytics.d.ts +0 -46
- package/commands/analytics.js +0 -31
- package/commands/analytics.json +0 -37
- package/commands/build-impl.d.ts +0 -14
- package/commands/build-impl.js +0 -21
- package/commands/build.d.ts +0 -30
- package/commands/build.js +0 -10
- package/commands/build.json +0 -16
- package/commands/config-impl.d.ts +0 -15
- package/commands/config.d.ts +0 -34
- package/commands/config.js +0 -10
- package/commands/config.json +0 -43
- package/commands/definitions.json +0 -66
- package/commands/deploy-impl.d.ts +0 -15
- package/commands/deploy-impl.js +0 -36
- package/commands/deploy.d.ts +0 -30
- package/commands/deploy.js +0 -10
- package/commands/deploy.json +0 -34
- package/commands/doc-impl.d.ts +0 -13
- package/commands/doc.d.ts +0 -39
- package/commands/doc.js +0 -14
- package/commands/doc.json +0 -46
- package/commands/e2e-impl.d.ts +0 -16
- package/commands/e2e-impl.js +0 -36
- package/commands/e2e-long.md +0 -4
- package/commands/e2e.d.ts +0 -29
- package/commands/e2e.js +0 -10
- package/commands/e2e.json +0 -17
- package/commands/easter-egg-impl.d.ts +0 -12
- package/commands/easter-egg.d.ts +0 -14
- package/commands/easter-egg.js +0 -10
- package/commands/easter-egg.json +0 -12
- package/commands/extract-i18n-impl.d.ts +0 -14
- package/commands/extract-i18n-impl.js +0 -32
- package/commands/extract-i18n.d.ts +0 -29
- package/commands/extract-i18n.js +0 -10
- package/commands/extract-i18n.json +0 -17
- package/commands/generate-impl.d.ts +0 -18
- package/commands/generate-impl.js +0 -89
- package/commands/generate.d.ts +0 -37
- package/commands/generate.js +0 -10
- package/commands/generate.json +0 -31
- package/commands/help-impl.d.ts +0 -12
- package/commands/help-impl.js +0 -26
- package/commands/help-long.md +0 -7
- package/commands/help.d.ts +0 -17
- package/commands/help.js +0 -10
- package/commands/help.json +0 -13
- package/commands/lint-impl.d.ts +0 -16
- package/commands/lint-impl.js +0 -69
- package/commands/lint.d.ts +0 -29
- package/commands/lint.js +0 -10
- package/commands/lint.json +0 -36
- package/commands/new-impl.d.ts +0 -16
- package/commands/new-impl.js +0 -37
- package/commands/new.d.ts +0 -41
- package/commands/new.js +0 -10
- package/commands/new.json +0 -34
- package/commands/new.md +0 -16
- package/commands/run-impl.d.ts +0 -13
- package/commands/run-impl.js +0 -22
- package/commands/run.d.ts +0 -30
- package/commands/run.js +0 -10
- package/commands/run.json +0 -36
- package/commands/serve-impl.d.ts +0 -15
- package/commands/serve-impl.js +0 -24
- package/commands/serve.d.ts +0 -29
- package/commands/serve.js +0 -10
- package/commands/serve.json +0 -17
- package/commands/test-impl.d.ts +0 -15
- package/commands/test-impl.js +0 -22
- package/commands/test.d.ts +0 -29
- package/commands/test.js +0 -10
- package/commands/test.json +0 -17
- package/commands/update.d.ts +0 -61
- package/commands/update.js +0 -10
- package/commands/update.json +0 -78
- package/commands/version-impl.d.ts +0 -17
- package/commands/version.d.ts +0 -17
- package/commands/version.js +0 -10
- package/commands/version.json +0 -13
- package/commands.json +0 -20
- package/models/analytics.d.ts +0 -58
- package/models/analytics.js +0 -358
- package/models/architect-command.d.ts +0 -35
- package/models/architect-command.js +0 -364
- package/models/command-runner.d.ts +0 -24
- package/models/command-runner.js +0 -241
- package/models/command.d.ts +0 -34
- package/models/command.js +0 -143
- package/models/interface.d.ts +0 -196
- package/models/interface.js +0 -31
- package/models/parser.d.ts +0 -39
- package/models/parser.js +0 -349
- package/models/schematic-command.d.ts +0 -55
- package/models/schematic-command.js +0 -485
- package/utilities/INITIAL_COMMIT_MESSAGE.txt +0 -8
- package/utilities/install-package.d.ts +0 -16
- package/utilities/install-package.js +0 -193
- package/utilities/json-schema.d.ts +0 -17
- package/utilities/package-json.d.ts +0 -249
- package/utilities/package-manager.d.ts +0 -13
- package/utilities/package-manager.js +0 -106
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { Target } from '@angular-devkit/architect';
|
|
9
|
+
import { Argv } from 'yargs';
|
|
10
|
+
import { ArchitectBaseCommandModule } from '../../command-builder/architect-base-command-module';
|
|
11
|
+
import { CommandModuleImplementation, CommandScope, Options, OtherOptions } from '../../command-builder/command-module';
|
|
12
|
+
export interface RunCommandArgs {
|
|
13
|
+
target: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class RunCommandModule extends ArchitectBaseCommandModule<RunCommandArgs> implements CommandModuleImplementation<RunCommandArgs> {
|
|
16
|
+
static scope: CommandScope;
|
|
17
|
+
command: string;
|
|
18
|
+
describe: string;
|
|
19
|
+
longDescriptionPath: string;
|
|
20
|
+
builder(argv: Argv): Promise<Argv<RunCommandArgs>>;
|
|
21
|
+
run(options: Options<RunCommandArgs> & OtherOptions): Promise<number>;
|
|
22
|
+
protected makeTargetSpecifier(options?: Options<RunCommandArgs>): Target | undefined;
|
|
23
|
+
/** @returns a sorted list of target specifiers to be used for auto completion. */
|
|
24
|
+
private getTargetChoices;
|
|
25
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RunCommandModule = void 0;
|
|
11
|
+
const path_1 = require("path");
|
|
12
|
+
const architect_base_command_module_1 = require("../../command-builder/architect-base-command-module");
|
|
13
|
+
const command_module_1 = require("../../command-builder/command-module");
|
|
14
|
+
class RunCommandModule extends architect_base_command_module_1.ArchitectBaseCommandModule {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.command = 'run <target>';
|
|
18
|
+
this.describe = 'Runs an Architect target with an optional custom builder configuration defined in your project.';
|
|
19
|
+
this.longDescriptionPath = (0, path_1.join)(__dirname, 'long-description.md');
|
|
20
|
+
}
|
|
21
|
+
async builder(argv) {
|
|
22
|
+
const { jsonHelp, getYargsCompletions, help } = this.context.args.options;
|
|
23
|
+
const localYargs = argv
|
|
24
|
+
.positional('target', {
|
|
25
|
+
describe: 'The Architect target to run.',
|
|
26
|
+
type: 'string',
|
|
27
|
+
demandOption: true,
|
|
28
|
+
// Show only in when using --help and auto completion because otherwise comma seperated configuration values will be invalid.
|
|
29
|
+
// Also, hide choices from JSON help so that we don't display them in AIO.
|
|
30
|
+
choices: (getYargsCompletions || help) && !jsonHelp ? this.getTargetChoices() : undefined,
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
33
|
+
const target = this.makeTargetSpecifier();
|
|
34
|
+
if (!target) {
|
|
35
|
+
return localYargs;
|
|
36
|
+
}
|
|
37
|
+
const schemaOptions = await this.getArchitectTargetOptions(target);
|
|
38
|
+
return this.addSchemaOptionsToCommand(localYargs, schemaOptions);
|
|
39
|
+
}
|
|
40
|
+
async run(options) {
|
|
41
|
+
const target = this.makeTargetSpecifier(options);
|
|
42
|
+
const { target: _target, ...extraOptions } = options;
|
|
43
|
+
if (!target) {
|
|
44
|
+
throw new command_module_1.CommandModuleError('Cannot determine project or target.');
|
|
45
|
+
}
|
|
46
|
+
return this.runSingleTarget(target, extraOptions);
|
|
47
|
+
}
|
|
48
|
+
makeTargetSpecifier(options) {
|
|
49
|
+
var _a;
|
|
50
|
+
const architectTarget = (_a = options === null || options === void 0 ? void 0 : options.target) !== null && _a !== void 0 ? _a : this.context.args.positional[1];
|
|
51
|
+
if (!architectTarget) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
const [project = '', target = '', configuration] = architectTarget.split(':');
|
|
55
|
+
return {
|
|
56
|
+
project,
|
|
57
|
+
target,
|
|
58
|
+
configuration,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/** @returns a sorted list of target specifiers to be used for auto completion. */
|
|
62
|
+
getTargetChoices() {
|
|
63
|
+
if (!this.context.workspace) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const targets = [];
|
|
67
|
+
for (const [projectName, project] of this.context.workspace.projects) {
|
|
68
|
+
for (const [targetName, target] of project.targets) {
|
|
69
|
+
const currentTarget = `${projectName}:${targetName}`;
|
|
70
|
+
targets.push(currentTarget);
|
|
71
|
+
if (!target.configurations) {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
for (const configName of Object.keys(target.configurations)) {
|
|
75
|
+
targets.push(`${currentTarget}:${configName}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return targets.sort();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.RunCommandModule = RunCommandModule;
|
|
83
|
+
RunCommandModule.scope = command_module_1.CommandScope.In;
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
|
|
9
|
+
import { CommandModuleImplementation } from '../../command-builder/command-module';
|
|
10
|
+
export declare class ServeCommandModule extends ArchitectCommandModule implements CommandModuleImplementation {
|
|
11
|
+
multiTarget: boolean;
|
|
12
|
+
command: string;
|
|
13
|
+
aliases: string[];
|
|
14
|
+
describe: string;
|
|
15
|
+
longDescriptionPath?: string | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ServeCommandModule = void 0;
|
|
11
|
+
const architect_command_module_1 = require("../../command-builder/architect-command-module");
|
|
12
|
+
class ServeCommandModule extends architect_command_module_1.ArchitectCommandModule {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.multiTarget = false;
|
|
16
|
+
this.command = 'serve [project]';
|
|
17
|
+
this.aliases = ['s'];
|
|
18
|
+
this.describe = 'Builds and serves your application, rebuilding on file changes.';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ServeCommandModule = ServeCommandModule;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
|
|
9
|
+
import { CommandModuleImplementation } from '../../command-builder/command-module';
|
|
10
|
+
export declare class TestCommandModule extends ArchitectCommandModule implements CommandModuleImplementation {
|
|
11
|
+
multiTarget: boolean;
|
|
12
|
+
command: string;
|
|
13
|
+
aliases: string[];
|
|
14
|
+
describe: string;
|
|
15
|
+
longDescriptionPath: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.TestCommandModule = void 0;
|
|
11
|
+
const path_1 = require("path");
|
|
12
|
+
const architect_command_module_1 = require("../../command-builder/architect-command-module");
|
|
13
|
+
class TestCommandModule extends architect_command_module_1.ArchitectCommandModule {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.multiTarget = true;
|
|
17
|
+
this.command = 'test [project]';
|
|
18
|
+
this.aliases = ['t'];
|
|
19
|
+
this.describe = 'Runs unit tests in a project.';
|
|
20
|
+
this.longDescriptionPath = (0, path_1.join)(__dirname, 'long-description.md');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.TestCommandModule = TestCommandModule;
|
|
File without changes
|
|
@@ -5,14 +5,28 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
import { Argv } from 'yargs';
|
|
9
|
+
import { CommandModule, CommandScope, Options } from '../../command-builder/command-module';
|
|
10
|
+
interface UpdateCommandArgs {
|
|
11
|
+
packages?: string[];
|
|
12
|
+
force: boolean;
|
|
13
|
+
next: boolean;
|
|
14
|
+
'migrate-only'?: boolean;
|
|
15
|
+
name?: string;
|
|
16
|
+
from?: string;
|
|
17
|
+
to?: string;
|
|
18
|
+
'allow-dirty': boolean;
|
|
19
|
+
verbose: boolean;
|
|
20
|
+
'create-commits': boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
|
|
23
|
+
static scope: CommandScope;
|
|
24
|
+
protected shouldReportAnalytics: boolean;
|
|
25
|
+
command: string;
|
|
26
|
+
describe: string;
|
|
27
|
+
longDescriptionPath: string;
|
|
28
|
+
builder(localYargs: Argv): Argv<UpdateCommandArgs>;
|
|
29
|
+
run(options: Options<UpdateCommandArgs>): Promise<number | void>;
|
|
16
30
|
private executeSchematic;
|
|
17
31
|
/**
|
|
18
32
|
* @return Whether or not the migration was performed successfully.
|
|
@@ -23,7 +37,8 @@ export declare class UpdateCommand extends Command<UpdateCommandSchema> {
|
|
|
23
37
|
*/
|
|
24
38
|
private executeMigrations;
|
|
25
39
|
private executePackageMigrations;
|
|
26
|
-
|
|
40
|
+
private migrateOnly;
|
|
41
|
+
private updatePackagesAndMigrate;
|
|
27
42
|
/**
|
|
28
43
|
* @return Whether or not the commit was successful.
|
|
29
44
|
*/
|
|
@@ -35,4 +50,6 @@ export declare class UpdateCommand extends Command<UpdateCommandSchema> {
|
|
|
35
50
|
*/
|
|
36
51
|
private checkCLIVersion;
|
|
37
52
|
private getCLIUpdateRunnerVersion;
|
|
53
|
+
private runTempBinary;
|
|
38
54
|
}
|
|
55
|
+
export {};
|