-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (29 loc) · 835 Bytes
/
index.js
File metadata and controls
33 lines (29 loc) · 835 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
29
30
31
32
33
const lernaPkg = require('lerna/package.json');
const runCmd = require('./commands/run');
const { requireFromLerna } = require('./utils/require-from');
const lernaCLI = requireFromLerna('@lerna/cli');
/** @param {import('@types/yargs').Argv} argv */
module.exports.main = function (argv) {
const context = {
lernaVersion: lernaPkg.version
};
return (
lernaCLI()
// .command(addCmd)
// .command(bootstrapCmd)
// .command(changedCmd)
// .command(cleanCmd)
// .command(createCmd)
// .command(diffCmd)
// .command(execCmd)
// .command(importCmd)
// .command(infoCmd)
// .command(initCmd)
// .command(linkCmd)
// .command(listCmd)
// .command(publishCmd)
.command(runCmd)
// .command(versionCmd)
.parse(argv, context)
);
};