1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | exports.setupToYargs = void 0;
|
7 | function setupToYargs(yargs) {
|
8 | return yargs
|
9 | .default({
|
10 |
|
11 | })
|
12 | .option('npmClient', {
|
13 | alias: ['N'],
|
14 | requiresArg: true,
|
15 | normalize: true,
|
16 | description: 'npm, yarn, ...etc',
|
17 | default: 'npm',
|
18 | type: 'string',
|
19 | })
|
20 | .option('yes', {
|
21 | alias: ['y', 'silent'],
|
22 |
|
23 |
|
24 | type: 'boolean',
|
25 | })
|
26 | .option('cwd', {
|
27 | alias: ['C'],
|
28 | requiresArg: true,
|
29 | normalize: true,
|
30 |
|
31 | defaultDescription: process.cwd(),
|
32 | type: 'string',
|
33 | })
|
34 | .option('skipCheckWorkspace', {
|
35 | alias: ['W'],
|
36 | type: 'boolean',
|
37 | })
|
38 | .option('force', {
|
39 | alias: ['f'],
|
40 | type: 'boolean',
|
41 | })
|
42 | .option('sort', {
|
43 | type: 'boolean',
|
44 | default: true,
|
45 | })
|
46 | .option('private', {
|
47 | alias: ['p'],
|
48 | type: 'boolean',
|
49 | })
|
50 | .option('createModule', {
|
51 | alias: ['m'],
|
52 | type: 'string',
|
53 | })
|
54 | .option('name', {
|
55 | type: 'string',
|
56 | })
|
57 | .option('copyStatic', {
|
58 | type: 'boolean',
|
59 | });
|
60 | }
|
61 | exports.setupToYargs = setupToYargs;
|
62 | exports.default = setupToYargs;
|
63 |
|
\ | No newline at end of file |