forked from lerna/lerna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command.js
36 lines (31 loc) · 891 Bytes
/
command.js
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
29
30
31
32
33
34
35
36
"use strict";
/**
* @see https://github.com/yargs/yargs/blob/master/docs/advanced.md#providing-a-command-module
*/
exports.command = "link";
exports.describe = "Symlink together all packages that are dependencies of each other";
exports.builder = (yargs) => {
yargs.options({
"force-local": {
group: "Command Options:",
describe: "Force local sibling links regardless of version range match",
type: "boolean",
},
contents: {
group: "Command Options:",
describe: "Subdirectory to use as the source of the symlink. Must apply to ALL packages.",
type: "string",
defaultDescription: ".",
},
});
return yargs.command(
"convert",
"Replace local sibling version ranges with relative file: specifiers",
() => {},
handler
);
};
exports.handler = handler;
function handler(argv) {
return require(".")(argv);
}