forked from lerna/lerna
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.js
More file actions
28 lines (24 loc) · 767 Bytes
/
command.js
File metadata and controls
28 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"use strict";
/**
* @see https://github.com/yargs/yargs/blob/master/docs/advanced.md#providing-a-command-module
*/
exports.command = "diff [pkgName]";
exports.describe = "Diff all packages or a single package since the last release";
exports.builder = (yargs) =>
yargs
.positional("pkgName", {
describe: "An optional package name to filter the diff output",
})
.options({
"ignore-changes": {
group: "Command Options:",
describe: "Ignore changes in files matched by glob(s).",
type: "array",
},
})
.epilogue(
"When ignoreChanges is configured in lerna.json, pass --no-ignore-changes to include ignored files."
);
exports.handler = function handler(argv) {
return require(".")(argv);
};