@xylabs/ts-scripts-yarn3 2.10.19 → 2.10.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tsconfig.build.cjs.json +1 -0
- package/.tsconfig.build.esm.json +1 -0
- package/dist/.tsconfig.build.cjs.tsbuildinfo +1 -0
- package/dist/.tsconfig.build.esm.tsbuildinfo +1 -0
- package/dist/cjs/actions/gen-docs.d.ts.map +1 -1
- package/dist/cjs/actions/gen-docs.js +6 -2
- package/dist/cjs/actions/gen-docs.js.map +1 -1
- package/dist/cjs/actions/upplug.d.ts.map +1 -1
- package/dist/cjs/actions/upplug.js +2 -1
- package/dist/cjs/actions/upplug.js.map +1 -1
- package/dist/cjs/lib/runSteps.d.ts.map +1 -1
- package/dist/cjs/lib/runSteps.js +1 -1
- package/dist/cjs/lib/runSteps.js.map +1 -1
- package/dist/cjs/lib/withErrnoException.d.ts +1 -0
- package/dist/cjs/lib/withErrnoException.d.ts.map +1 -1
- package/dist/cjs/lib/xy/index.d.ts +8 -0
- package/dist/cjs/lib/xy/index.d.ts.map +1 -0
- package/dist/cjs/lib/xy/index.js +11 -0
- package/dist/cjs/lib/xy/index.js.map +1 -0
- package/dist/cjs/lib/xy/xy.d.ts +12 -0
- package/dist/cjs/lib/xy/xy.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xy.js +14 -0
- package/dist/cjs/lib/xy/xy.js.map +1 -0
- package/dist/cjs/lib/xy/xyBuildCommands.d.ts +11 -0
- package/dist/cjs/lib/xy/xyBuildCommands.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xyBuildCommands.js +50 -0
- package/dist/cjs/lib/xy/xyBuildCommands.js.map +1 -0
- package/dist/cjs/lib/xy/xyCommonCommands.d.ts +13 -0
- package/dist/cjs/lib/xy/xyCommonCommands.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xyCommonCommands.js +98 -0
- package/dist/cjs/lib/xy/xyCommonCommands.js.map +1 -0
- package/dist/cjs/lib/xy/xyDeployCommands.d.ts +3 -0
- package/dist/cjs/lib/xy/xyDeployCommands.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xyDeployCommands.js +37 -0
- package/dist/cjs/lib/xy/xyDeployCommands.js.map +1 -0
- package/dist/cjs/lib/xy/xyInstallCommands.d.ts +5 -0
- package/dist/cjs/lib/xy/xyInstallCommands.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xyInstallCommands.js +40 -0
- package/dist/cjs/lib/xy/xyInstallCommands.js.map +1 -0
- package/dist/cjs/lib/xy/xyLintCommands.d.ts +11 -0
- package/dist/cjs/lib/xy/xyLintCommands.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xyLintCommands.js +52 -0
- package/dist/cjs/lib/xy/xyLintCommands.js.map +1 -0
- package/dist/cjs/lib/xy/xyParseOptions.d.ts +3 -0
- package/dist/cjs/lib/xy/xyParseOptions.d.ts.map +1 -0
- package/dist/cjs/lib/xy/xyParseOptions.js +48 -0
- package/dist/cjs/lib/xy/xyParseOptions.js.map +1 -0
- package/dist/esm/actions/gen-docs.d.ts.map +1 -1
- package/dist/esm/actions/gen-docs.js +4 -2
- package/dist/esm/actions/gen-docs.js.map +1 -1
- package/dist/esm/actions/upplug.d.ts.map +1 -1
- package/dist/esm/actions/upplug.js +2 -1
- package/dist/esm/actions/upplug.js.map +1 -1
- package/dist/esm/lib/runSteps.d.ts.map +1 -1
- package/dist/esm/lib/runSteps.js +1 -0
- package/dist/esm/lib/runSteps.js.map +1 -1
- package/dist/esm/lib/xy/index.d.ts +8 -0
- package/dist/esm/lib/xy/index.d.ts.map +1 -0
- package/dist/esm/lib/xy/index.js +8 -0
- package/dist/esm/lib/xy/index.js.map +1 -0
- package/dist/esm/lib/xy/xy.d.ts +12 -0
- package/dist/esm/lib/xy/xy.d.ts.map +1 -0
- package/dist/esm/lib/xy/xy.js +10 -0
- package/dist/esm/lib/xy/xy.js.map +1 -0
- package/dist/esm/lib/xy/xyBuildCommands.d.ts +11 -0
- package/dist/esm/lib/xy/xyBuildCommands.d.ts.map +1 -0
- package/dist/esm/lib/xy/xyBuildCommands.js +41 -0
- package/dist/esm/lib/xy/xyBuildCommands.js.map +1 -0
- package/dist/esm/lib/xy/xyCommonCommands.d.ts +13 -0
- package/dist/esm/lib/xy/xyCommonCommands.d.ts.map +1 -0
- package/dist/esm/lib/xy/xyCommonCommands.js +92 -0
- package/dist/esm/lib/xy/xyCommonCommands.js.map +1 -0
- package/dist/esm/lib/xy/xyDeployCommands.d.ts +3 -0
- package/dist/esm/lib/xy/xyDeployCommands.d.ts.map +1 -0
- package/dist/esm/lib/xy/xyDeployCommands.js +33 -0
- package/dist/esm/lib/xy/xyDeployCommands.js.map +1 -0
- package/dist/esm/lib/xy/xyInstallCommands.d.ts +5 -0
- package/dist/esm/lib/xy/xyInstallCommands.d.ts.map +1 -0
- package/dist/esm/lib/xy/xyInstallCommands.js +35 -0
- package/dist/esm/lib/xy/xyInstallCommands.js.map +1 -0
- package/dist/esm/lib/xy/xyLintCommands.d.ts +11 -0
- package/dist/esm/lib/xy/xyLintCommands.d.ts.map +1 -0
- package/dist/esm/lib/xy/xyLintCommands.js +48 -0
- package/dist/esm/lib/xy/xyLintCommands.js.map +1 -0
- package/dist/esm/lib/xy/xyParseOptions.d.ts +3 -0
- package/dist/esm/lib/xy/xyParseOptions.d.ts.map +1 -0
- package/dist/esm/lib/xy/xyParseOptions.js +43 -0
- package/dist/esm/lib/xy/xyParseOptions.js.map +1 -0
- package/dist/tsconfig.build.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.build.esm.tsbuildinfo +1 -1
- package/package.json +7 -3
- package/src/actions/gen-docs.ts +5 -2
- package/src/actions/upplug.ts +2 -1
- package/src/lib/runSteps.ts +1 -0
- package/src/lib/xy/index.ts +7 -0
- package/src/lib/xy/xy.ts +10 -0
- package/src/lib/xy/xyBuildCommands.ts +59 -0
- package/src/lib/xy/xyCommonCommands.ts +152 -0
- package/src/lib/xy/xyDeployCommands.ts +51 -0
- package/src/lib/xy/xyInstallCommands.ts +53 -0
- package/src/lib/xy/xyLintCommands.ts +70 -0
- package/src/lib/xy/xyParseOptions.ts +43 -0
- package/tsconfig.build.cjs.json +8 -3
- package/tsconfig.build.esm.json +10 -4
- package/dist/cjs/bin/rimraf.d.ts +0 -3
- package/dist/cjs/bin/rimraf.d.ts.map +0 -1
- package/dist/cjs/bin/rimraf.js +0 -6
- package/dist/cjs/bin/rimraf.js.map +0 -1
- package/dist/cjs/lib/xy.d.ts +0 -38
- package/dist/cjs/lib/xy.d.ts.map +0 -1
- package/dist/cjs/lib/xy.js +0 -285
- package/dist/cjs/lib/xy.js.map +0 -1
- package/dist/esm/bin/rimraf.d.ts +0 -3
- package/dist/esm/bin/rimraf.d.ts.map +0 -1
- package/dist/esm/bin/rimraf.js +0 -4
- package/dist/esm/bin/rimraf.js.map +0 -1
- package/dist/esm/lib/xy.d.ts +0 -38
- package/dist/esm/lib/xy.d.ts.map +0 -1
- package/dist/esm/lib/xy.js +0 -272
- package/dist/esm/lib/xy.js.map +0 -1
- package/src/lib/xy.ts +0 -418
package/src/lib/xy.ts
DELETED
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import yargs from 'yargs'
|
|
2
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
3
|
-
import { hideBin } from 'yargs/helpers'
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
build,
|
|
7
|
-
clean,
|
|
8
|
-
compile,
|
|
9
|
-
copyAssets,
|
|
10
|
-
cycle,
|
|
11
|
-
dead,
|
|
12
|
-
deploy,
|
|
13
|
-
deployMajor,
|
|
14
|
-
deployMinor,
|
|
15
|
-
deployNext,
|
|
16
|
-
deps,
|
|
17
|
-
fix,
|
|
18
|
-
genDocs,
|
|
19
|
-
gitlint,
|
|
20
|
-
gitlintFix,
|
|
21
|
-
license,
|
|
22
|
-
lint,
|
|
23
|
-
lintFast,
|
|
24
|
-
lintProfile,
|
|
25
|
-
rebuild,
|
|
26
|
-
reinstall,
|
|
27
|
-
relint,
|
|
28
|
-
runRimraf,
|
|
29
|
-
sonar,
|
|
30
|
-
test,
|
|
31
|
-
tsconfigGen,
|
|
32
|
-
tsconfigGenClean,
|
|
33
|
-
up,
|
|
34
|
-
updateYarnPlugins,
|
|
35
|
-
updo,
|
|
36
|
-
yarn3Only,
|
|
37
|
-
} from '../actions'
|
|
38
|
-
|
|
39
|
-
export const parseOptions = () => {
|
|
40
|
-
return yargs(hideBin(process.argv))
|
|
41
|
-
.option('verbose', {
|
|
42
|
-
alias: 'v',
|
|
43
|
-
default: false,
|
|
44
|
-
description: 'Run with verbose logging',
|
|
45
|
-
type: 'boolean',
|
|
46
|
-
})
|
|
47
|
-
.option('target', {
|
|
48
|
-
alias: 't',
|
|
49
|
-
choices: ['esm', 'cjs'],
|
|
50
|
-
description: 'Limit output to specific target',
|
|
51
|
-
type: 'string',
|
|
52
|
-
})
|
|
53
|
-
.option('incremental', {
|
|
54
|
-
alias: 'i',
|
|
55
|
-
default: false,
|
|
56
|
-
description: 'Attempt to perform the action only on changed packages',
|
|
57
|
-
type: 'boolean',
|
|
58
|
-
})
|
|
59
|
-
.option('fix', {
|
|
60
|
-
alias: 'f',
|
|
61
|
-
default: false,
|
|
62
|
-
description: 'Try to fix errors',
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
})
|
|
65
|
-
.option('cache', {
|
|
66
|
-
alias: 'c',
|
|
67
|
-
default: false,
|
|
68
|
-
description: 'Use caching for performance',
|
|
69
|
-
type: 'boolean',
|
|
70
|
-
})
|
|
71
|
-
.option('profile', {
|
|
72
|
-
alias: 'p',
|
|
73
|
-
default: false,
|
|
74
|
-
description: 'Profile action',
|
|
75
|
-
type: 'boolean',
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export const xy = () => {
|
|
80
|
-
return parseOptions()
|
|
81
|
-
.command(
|
|
82
|
-
'build [package]',
|
|
83
|
-
'Build - Compile & Lint',
|
|
84
|
-
(yargs) => {
|
|
85
|
-
return yargs.positional('package', {
|
|
86
|
-
describe: 'Specific package to build',
|
|
87
|
-
})
|
|
88
|
-
},
|
|
89
|
-
(argv) => {
|
|
90
|
-
if (argv.verbose) console.info(`Building: ${argv.package ?? 'all'}`)
|
|
91
|
-
process.exitCode = build({ pkg: argv.package as string, target: argv.target as 'esm' | 'cjs' })
|
|
92
|
-
},
|
|
93
|
-
)
|
|
94
|
-
.command(
|
|
95
|
-
'compile [package]',
|
|
96
|
-
'Compile with Typescript & Copy Images',
|
|
97
|
-
(yargs) => {
|
|
98
|
-
return yargs.positional('package', {
|
|
99
|
-
describe: 'Specific package to compile',
|
|
100
|
-
})
|
|
101
|
-
},
|
|
102
|
-
(argv) => {
|
|
103
|
-
if (argv.verbose) console.info(`Compiling: ${argv.package ?? 'all'}`)
|
|
104
|
-
process.exitCode = compile({ incremental: !!argv.incremental, pkg: argv.package as string, target: argv.target as 'esm' | 'cjs' })
|
|
105
|
-
},
|
|
106
|
-
)
|
|
107
|
-
.command(
|
|
108
|
-
'clean [package]',
|
|
109
|
-
'Clean - Remove intermediate files',
|
|
110
|
-
(yargs) => {
|
|
111
|
-
return yargs.positional('package', {
|
|
112
|
-
describe: 'Specific package to clean',
|
|
113
|
-
})
|
|
114
|
-
},
|
|
115
|
-
(argv) => {
|
|
116
|
-
if (argv.verbose) console.info(`Cleaning: ${argv.package ?? 'all'}`)
|
|
117
|
-
process.exitCode = clean()
|
|
118
|
-
},
|
|
119
|
-
)
|
|
120
|
-
.command(
|
|
121
|
-
'license [package]',
|
|
122
|
-
'License - Check licenses of dependencies',
|
|
123
|
-
(yargs) => {
|
|
124
|
-
return yargs.positional('package', {
|
|
125
|
-
describe: 'Specific package to check',
|
|
126
|
-
})
|
|
127
|
-
},
|
|
128
|
-
(argv) => {
|
|
129
|
-
if (argv.verbose) console.info(`License: ${argv.package ?? 'all'}`)
|
|
130
|
-
process.exitCode = license()
|
|
131
|
-
},
|
|
132
|
-
)
|
|
133
|
-
.command(
|
|
134
|
-
'copy-assets [package]',
|
|
135
|
-
'Copy Assets - Copy the assets from src to dist',
|
|
136
|
-
(yargs) => {
|
|
137
|
-
return yargs.positional('package', {
|
|
138
|
-
describe: 'Specific package to copy assets',
|
|
139
|
-
})
|
|
140
|
-
},
|
|
141
|
-
async (argv) => {
|
|
142
|
-
if (argv.verbose) console.info(`Copying Assets: ${argv.package ?? 'all'}`)
|
|
143
|
-
process.exitCode = await copyAssets({ target: argv.target as 'esm' | 'cjs' })
|
|
144
|
-
},
|
|
145
|
-
)
|
|
146
|
-
.command(
|
|
147
|
-
'cycle [package]',
|
|
148
|
-
'Cycle - Check for dependency cycles',
|
|
149
|
-
(yargs) => {
|
|
150
|
-
return yargs.positional('package', {
|
|
151
|
-
describe: 'Specific package to check',
|
|
152
|
-
})
|
|
153
|
-
},
|
|
154
|
-
(argv) => {
|
|
155
|
-
if (argv.verbose) console.info('Cycle')
|
|
156
|
-
process.exitCode = cycle()
|
|
157
|
-
},
|
|
158
|
-
)
|
|
159
|
-
.command(
|
|
160
|
-
'dead [package]',
|
|
161
|
-
'Dead - Check for dead code',
|
|
162
|
-
(yargs) => {
|
|
163
|
-
return yargs.positional('package', {
|
|
164
|
-
describe: 'Specific package to check',
|
|
165
|
-
})
|
|
166
|
-
},
|
|
167
|
-
(argv) => {
|
|
168
|
-
if (argv.verbose) console.info('Dead')
|
|
169
|
-
process.exitCode = dead()
|
|
170
|
-
},
|
|
171
|
-
)
|
|
172
|
-
.command(
|
|
173
|
-
'deploy',
|
|
174
|
-
'Deploy - Deploy patch',
|
|
175
|
-
(yargs) => {
|
|
176
|
-
return yargs
|
|
177
|
-
},
|
|
178
|
-
(argv) => {
|
|
179
|
-
if (argv.verbose) console.info('Deploy patch')
|
|
180
|
-
process.exitCode = deploy()
|
|
181
|
-
},
|
|
182
|
-
)
|
|
183
|
-
.command(
|
|
184
|
-
'deploy-minor',
|
|
185
|
-
'Deploy - Deploy minor',
|
|
186
|
-
(yargs) => {
|
|
187
|
-
return yargs
|
|
188
|
-
},
|
|
189
|
-
(argv) => {
|
|
190
|
-
if (argv.verbose) console.info('Deploy minor')
|
|
191
|
-
process.exitCode = deployMinor()
|
|
192
|
-
},
|
|
193
|
-
)
|
|
194
|
-
.command(
|
|
195
|
-
'deploy-major',
|
|
196
|
-
'Deploy - Deploy major',
|
|
197
|
-
(yargs) => {
|
|
198
|
-
return yargs
|
|
199
|
-
},
|
|
200
|
-
(argv) => {
|
|
201
|
-
if (argv.verbose) console.info('Deploy major')
|
|
202
|
-
process.exitCode = deployMajor()
|
|
203
|
-
},
|
|
204
|
-
)
|
|
205
|
-
.command(
|
|
206
|
-
'deploy-next',
|
|
207
|
-
'Deploy - Deploy next',
|
|
208
|
-
(yargs) => {
|
|
209
|
-
return yargs
|
|
210
|
-
},
|
|
211
|
-
(argv) => {
|
|
212
|
-
if (argv.verbose) console.info('Deploy next')
|
|
213
|
-
process.exitCode = deployNext()
|
|
214
|
-
},
|
|
215
|
-
)
|
|
216
|
-
.command(
|
|
217
|
-
'lint [package]',
|
|
218
|
-
'Lint - Run Eslint',
|
|
219
|
-
(yargs) => {
|
|
220
|
-
return yargs.positional('package', {
|
|
221
|
-
describe: 'Specific package to check',
|
|
222
|
-
})
|
|
223
|
-
},
|
|
224
|
-
(argv) => {
|
|
225
|
-
if (argv.verbose) console.info('Lint')
|
|
226
|
-
process.exitCode = argv.fix ? fix() : argv.profile ? lintProfile() : argv.cache ? lintFast() : lint()
|
|
227
|
-
},
|
|
228
|
-
)
|
|
229
|
-
.command(
|
|
230
|
-
'fix [package]',
|
|
231
|
-
'Fix - Run Eslint w/fix',
|
|
232
|
-
(yargs) => {
|
|
233
|
-
return yargs.positional('package', {
|
|
234
|
-
describe: 'Specific package to check',
|
|
235
|
-
})
|
|
236
|
-
},
|
|
237
|
-
(argv) => {
|
|
238
|
-
if (argv.verbose) console.info('Fix')
|
|
239
|
-
process.exitCode = fix()
|
|
240
|
-
},
|
|
241
|
-
)
|
|
242
|
-
.command(
|
|
243
|
-
'deps [package]',
|
|
244
|
-
'Deps - Check for unused or missing dependencies',
|
|
245
|
-
(yargs) => {
|
|
246
|
-
return yargs.positional('package', {
|
|
247
|
-
describe: 'Specific package to check',
|
|
248
|
-
})
|
|
249
|
-
},
|
|
250
|
-
(argv) => {
|
|
251
|
-
if (argv.verbose) console.info('Deps')
|
|
252
|
-
process.exitCode = deps()
|
|
253
|
-
},
|
|
254
|
-
)
|
|
255
|
-
.command(
|
|
256
|
-
'gen-docs [package]',
|
|
257
|
-
'GenDocs - Generate TypeDocs',
|
|
258
|
-
(yargs) => {
|
|
259
|
-
return yargs.positional('package', {
|
|
260
|
-
describe: 'Specific package to generate docs for',
|
|
261
|
-
})
|
|
262
|
-
},
|
|
263
|
-
(argv) => {
|
|
264
|
-
if (argv.verbose) console.info('GenDocs')
|
|
265
|
-
process.exitCode = genDocs()
|
|
266
|
-
},
|
|
267
|
-
)
|
|
268
|
-
.command(
|
|
269
|
-
'gitlint [package]',
|
|
270
|
-
'Gitlint - Lint your git config',
|
|
271
|
-
(yargs) => {
|
|
272
|
-
return yargs
|
|
273
|
-
},
|
|
274
|
-
(argv) => {
|
|
275
|
-
if (argv.verbose) console.info('Gitlint')
|
|
276
|
-
process.exitCode = argv.fix ? gitlintFix() : gitlint()
|
|
277
|
-
},
|
|
278
|
-
)
|
|
279
|
-
.command(
|
|
280
|
-
'rebuild [package]',
|
|
281
|
-
'Rebuild - Clean, Compile & Lint',
|
|
282
|
-
(yargs) => {
|
|
283
|
-
return yargs.positional('package', {
|
|
284
|
-
describe: 'Specific package to rebuild',
|
|
285
|
-
})
|
|
286
|
-
},
|
|
287
|
-
(argv) => {
|
|
288
|
-
if (argv.verbose) console.info(`Rebuilding: ${argv.package ?? 'all'}`)
|
|
289
|
-
process.exitCode = rebuild({ target: argv.target as 'esm' | 'cjs' })
|
|
290
|
-
},
|
|
291
|
-
)
|
|
292
|
-
.command(
|
|
293
|
-
'relint [package]',
|
|
294
|
-
'Relint - Clean & Lint',
|
|
295
|
-
(yargs) => {
|
|
296
|
-
return yargs.positional('package', {
|
|
297
|
-
describe: 'Specific package to relint',
|
|
298
|
-
})
|
|
299
|
-
},
|
|
300
|
-
(argv) => {
|
|
301
|
-
if (argv.verbose) console.info('Relinting')
|
|
302
|
-
process.exitCode = relint()
|
|
303
|
-
},
|
|
304
|
-
)
|
|
305
|
-
.command(
|
|
306
|
-
'reinstall',
|
|
307
|
-
'Reinstall - Clean & Install',
|
|
308
|
-
(yargs) => {
|
|
309
|
-
return yargs
|
|
310
|
-
},
|
|
311
|
-
(argv) => {
|
|
312
|
-
if (argv.verbose) console.info('Reinstalling')
|
|
313
|
-
process.exitCode = reinstall()
|
|
314
|
-
},
|
|
315
|
-
)
|
|
316
|
-
.command(
|
|
317
|
-
'sonar',
|
|
318
|
-
'Sonar - Run Sonar Check',
|
|
319
|
-
(yargs) => {
|
|
320
|
-
return yargs
|
|
321
|
-
},
|
|
322
|
-
(argv) => {
|
|
323
|
-
if (argv.verbose) console.info('Sonar Check')
|
|
324
|
-
process.exitCode = sonar()
|
|
325
|
-
},
|
|
326
|
-
)
|
|
327
|
-
.command(
|
|
328
|
-
'test',
|
|
329
|
-
'Test - Run Jest Tests',
|
|
330
|
-
(yargs) => {
|
|
331
|
-
return yargs
|
|
332
|
-
},
|
|
333
|
-
(argv) => {
|
|
334
|
-
if (argv.verbose) console.info('Testing')
|
|
335
|
-
process.exitCode = test()
|
|
336
|
-
},
|
|
337
|
-
)
|
|
338
|
-
.command(
|
|
339
|
-
'tsconfig-gen [package]',
|
|
340
|
-
'Tsconfig Gen - Generate tsconfog.json file for building',
|
|
341
|
-
(yargs) => {
|
|
342
|
-
return yargs.positional('package', {
|
|
343
|
-
describe: 'Specific package for generation',
|
|
344
|
-
})
|
|
345
|
-
},
|
|
346
|
-
(argv) => {
|
|
347
|
-
if (argv.verbose) console.info(`TsconfigGen: ${argv.package ?? 'all'}`)
|
|
348
|
-
process.exitCode = tsconfigGen({ target: argv.target as 'esm' | 'cjs' })
|
|
349
|
-
},
|
|
350
|
-
)
|
|
351
|
-
.command(
|
|
352
|
-
'tsconfig-clean',
|
|
353
|
-
'Tsconfig Clean - Remove generated tsconfig.json files',
|
|
354
|
-
(yargs) => {
|
|
355
|
-
return yargs
|
|
356
|
-
},
|
|
357
|
-
(argv) => {
|
|
358
|
-
if (argv.verbose) console.info('Tsconfig Clean')
|
|
359
|
-
process.exitCode = tsconfigGenClean()
|
|
360
|
-
},
|
|
361
|
-
)
|
|
362
|
-
.command(
|
|
363
|
-
'up',
|
|
364
|
-
'Up - Update dependencies',
|
|
365
|
-
(yargs) => {
|
|
366
|
-
return yargs
|
|
367
|
-
},
|
|
368
|
-
(argv) => {
|
|
369
|
-
if (argv.verbose) console.info('Up')
|
|
370
|
-
process.exitCode = up()
|
|
371
|
-
},
|
|
372
|
-
)
|
|
373
|
-
.command(
|
|
374
|
-
'updo',
|
|
375
|
-
'Updo - Update dependencies [Interactive]',
|
|
376
|
-
(yargs) => {
|
|
377
|
-
return yargs
|
|
378
|
-
},
|
|
379
|
-
(argv) => {
|
|
380
|
-
if (argv.verbose) console.info('Updo')
|
|
381
|
-
process.exitCode = updo()
|
|
382
|
-
},
|
|
383
|
-
)
|
|
384
|
-
.command(
|
|
385
|
-
'upplug',
|
|
386
|
-
'Upplug - Update Yarn Plugins',
|
|
387
|
-
(yargs) => {
|
|
388
|
-
return yargs
|
|
389
|
-
},
|
|
390
|
-
(argv) => {
|
|
391
|
-
if (argv.verbose) console.info('Upplug')
|
|
392
|
-
process.exitCode = updateYarnPlugins()
|
|
393
|
-
},
|
|
394
|
-
)
|
|
395
|
-
.command(
|
|
396
|
-
'rimraf',
|
|
397
|
-
'Run rimraf',
|
|
398
|
-
(yargs) => {
|
|
399
|
-
return yargs
|
|
400
|
-
},
|
|
401
|
-
(argv) => {
|
|
402
|
-
if (argv.verbose) console.info('Rimraf')
|
|
403
|
-
process.exitCode = runRimraf()
|
|
404
|
-
},
|
|
405
|
-
)
|
|
406
|
-
.command(
|
|
407
|
-
'yarn3only',
|
|
408
|
-
'Yarn3Only - Check if using Yarn v3',
|
|
409
|
-
(yargs) => {
|
|
410
|
-
return yargs
|
|
411
|
-
},
|
|
412
|
-
(argv) => {
|
|
413
|
-
if (argv.verbose) console.info('Yarn 3 Check')
|
|
414
|
-
process.exitCode = yarn3Only()
|
|
415
|
-
},
|
|
416
|
-
)
|
|
417
|
-
.help().argv
|
|
418
|
-
}
|