@xylabs/ts-scripts-yarn3 2.13.2 → 2.13.4
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/dist/.tsconfig.build.cjs.tsbuildinfo +1 -1
- package/dist/.tsconfig.build.esm.tsbuildinfo +1 -1
- package/dist/cjs/actions/license.d.ts +1 -1
- package/dist/cjs/actions/license.d.ts.map +1 -1
- package/dist/cjs/actions/license.js +54 -7
- package/dist/cjs/actions/license.js.map +1 -1
- package/dist/cjs/actions/tsconfig-gen-cjs.d.ts +1 -1
- package/dist/cjs/actions/tsconfig-gen-clean.d.ts +1 -1
- package/dist/cjs/actions/tsconfig-gen-esm.d.ts +1 -1
- package/dist/cjs/actions/tsconfig-gen-test.d.ts +1 -1
- package/dist/cjs/actions/tsconfig-gen.d.ts +1 -1
- package/dist/cjs/lib/xy/xy.d.ts.map +1 -1
- package/dist/cjs/lib/xy/xy.js +8 -1
- package/dist/cjs/lib/xy/xy.js.map +1 -1
- package/dist/cjs/lib/xy/xyCommonCommands.js +4 -3
- package/dist/cjs/lib/xy/xyCommonCommands.js.map +1 -1
- package/dist/esm/actions/license.d.ts +1 -1
- package/dist/esm/actions/license.d.ts.map +1 -1
- package/dist/esm/actions/license.js +53 -7
- package/dist/esm/actions/license.js.map +1 -1
- package/dist/esm/actions/tsconfig-gen-cjs.d.ts +1 -1
- package/dist/esm/actions/tsconfig-gen-clean.d.ts +1 -1
- package/dist/esm/actions/tsconfig-gen-esm.d.ts +1 -1
- package/dist/esm/actions/tsconfig-gen-test.d.ts +1 -1
- package/dist/esm/actions/tsconfig-gen.d.ts +1 -1
- package/dist/esm/lib/xy/xy.d.ts.map +1 -1
- package/dist/esm/lib/xy/xy.js +7 -1
- package/dist/esm/lib/xy/xy.js.map +1 -1
- package/dist/esm/lib/xy/xyCommonCommands.js +2 -2
- package/dist/esm/lib/xy/xyCommonCommands.js.map +1 -1
- package/dist/tsconfig.build.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.build.esm.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/actions/license.ts +57 -12
- package/src/lib/xy/xy.ts +8 -1
- package/src/lib/xy/xyCommonCommands.ts +2 -2
package/src/lib/xy/xy.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import chalk from 'chalk'
|
|
2
|
+
|
|
1
3
|
import { xyBuildCommands } from './xyBuildCommands'
|
|
2
4
|
import { xyCommonCommands } from './xyCommonCommands'
|
|
3
5
|
import { xyDeployCommands } from './xyDeployCommands'
|
|
@@ -6,8 +8,13 @@ import { xyLintCommands } from './xyLintCommands'
|
|
|
6
8
|
import { xyParseOptions } from './xyParseOptions'
|
|
7
9
|
|
|
8
10
|
export const xy = () => {
|
|
9
|
-
|
|
11
|
+
const options = xyParseOptions()
|
|
12
|
+
return xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options)))))
|
|
10
13
|
.demandCommand(1)
|
|
14
|
+
.command('*', '', () => {
|
|
15
|
+
console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`))
|
|
16
|
+
console.log(chalk.gray("Try 'yarn xy --help' for list of commands"))
|
|
17
|
+
})
|
|
11
18
|
.version()
|
|
12
19
|
.help().argv
|
|
13
20
|
}
|
|
@@ -26,9 +26,9 @@ export const xyCommonCommands = (args: yargs.Argv) => {
|
|
|
26
26
|
describe: 'Specific package to check',
|
|
27
27
|
})
|
|
28
28
|
},
|
|
29
|
-
(argv) => {
|
|
29
|
+
async (argv) => {
|
|
30
30
|
if (argv.verbose) console.log(`License: ${argv.package ?? 'all'}`)
|
|
31
|
-
process.exitCode = license()
|
|
31
|
+
process.exitCode = await license()
|
|
32
32
|
},
|
|
33
33
|
)
|
|
34
34
|
.command(
|