Skip to content

Commit 6cd8208

Browse files
committed
[INTERNAL] build: Alias old --all flag to new --include-all-dependencies
The user intend seems the same: To build all dependencies and have them as part of the build result
1 parent 6912cbf commit 6cd8208

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

lib/cli/commands/build.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,9 @@ build.builder = function(cli) {
3333
builder: noop,
3434
middlewares: [baseMiddleware]
3535
})
36-
.option("all", {
37-
describe: "Include all project dependencies into build process",
38-
alias: "a",
39-
default: false,
40-
type: "boolean"
41-
})
42-
.deprecateOption("all", "Use --include-all-dependencies")
4336
.option("include-all-dependencies", {
4437
describe: "Include all dependencies in the build result",
45-
alias: ["d", "deps"],
38+
alias: ["all", "a"],
4639
default: false,
4740
type: "boolean"
4841
})
@@ -133,12 +126,6 @@ async function handleBuild(argv) {
133126
const command = argv._[argv._.length - 1];
134127
logger.setShowProgress(true);
135128

136-
if (argv.all) {
137-
console.warn(
138-
"Warning: CLI option --all is deprecated. " +
139-
"Dependencies are now built automatically in case they are required");
140-
}
141-
142129
let graph;
143130
if (argv.dependencyDefinition) {
144131
graph = await generateProjectGraph.usingStaticFile({

0 commit comments

Comments
 (0)