1 | "use strict";
|
2 |
|
3 | const cli = require("@lerna/cli");
|
4 |
|
5 | const addCmd = require("@lerna/add/command");
|
6 | const bootstrapCmd = require("@lerna/bootstrap/command");
|
7 | const changedCmd = require("@lerna/changed/command");
|
8 | const cleanCmd = require("@lerna/clean/command");
|
9 | const createCmd = require("@lerna/create/command");
|
10 | const diffCmd = require("@lerna/diff/command");
|
11 | const execCmd = require("@lerna/exec/command");
|
12 | const importCmd = require("@lerna/import/command");
|
13 | const infoCmd = require("@lerna/info/command");
|
14 | const initCmd = require("@lerna/init/command");
|
15 | const linkCmd = require("@lerna/link/command");
|
16 | const listCmd = require("@lerna/list/command");
|
17 | const publishCmd = require("@lerna/publish/command");
|
18 | const runCmd = require("@lerna/run/command");
|
19 | const versionCmd = require("@lerna/version/command");
|
20 |
|
21 | const pkg = require("./package.json");
|
22 |
|
23 | module.exports = main;
|
24 |
|
25 | function main(argv) {
|
26 | const context = {
|
27 | lernaVersion: pkg.version,
|
28 | };
|
29 |
|
30 | return cli()
|
31 | .command(addCmd)
|
32 | .command(bootstrapCmd)
|
33 | .command(changedCmd)
|
34 | .command(cleanCmd)
|
35 | .command(createCmd)
|
36 | .command(diffCmd)
|
37 | .command(execCmd)
|
38 | .command(importCmd)
|
39 | .command(infoCmd)
|
40 | .command(initCmd)
|
41 | .command(linkCmd)
|
42 | .command(listCmd)
|
43 | .command(publishCmd)
|
44 | .command(runCmd)
|
45 | .command(versionCmd)
|
46 | .parse(argv, context);
|
47 | }
|