@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.
Files changed (36) hide show
  1. package/dist/.tsconfig.build.cjs.tsbuildinfo +1 -1
  2. package/dist/.tsconfig.build.esm.tsbuildinfo +1 -1
  3. package/dist/cjs/actions/license.d.ts +1 -1
  4. package/dist/cjs/actions/license.d.ts.map +1 -1
  5. package/dist/cjs/actions/license.js +54 -7
  6. package/dist/cjs/actions/license.js.map +1 -1
  7. package/dist/cjs/actions/tsconfig-gen-cjs.d.ts +1 -1
  8. package/dist/cjs/actions/tsconfig-gen-clean.d.ts +1 -1
  9. package/dist/cjs/actions/tsconfig-gen-esm.d.ts +1 -1
  10. package/dist/cjs/actions/tsconfig-gen-test.d.ts +1 -1
  11. package/dist/cjs/actions/tsconfig-gen.d.ts +1 -1
  12. package/dist/cjs/lib/xy/xy.d.ts.map +1 -1
  13. package/dist/cjs/lib/xy/xy.js +8 -1
  14. package/dist/cjs/lib/xy/xy.js.map +1 -1
  15. package/dist/cjs/lib/xy/xyCommonCommands.js +4 -3
  16. package/dist/cjs/lib/xy/xyCommonCommands.js.map +1 -1
  17. package/dist/esm/actions/license.d.ts +1 -1
  18. package/dist/esm/actions/license.d.ts.map +1 -1
  19. package/dist/esm/actions/license.js +53 -7
  20. package/dist/esm/actions/license.js.map +1 -1
  21. package/dist/esm/actions/tsconfig-gen-cjs.d.ts +1 -1
  22. package/dist/esm/actions/tsconfig-gen-clean.d.ts +1 -1
  23. package/dist/esm/actions/tsconfig-gen-esm.d.ts +1 -1
  24. package/dist/esm/actions/tsconfig-gen-test.d.ts +1 -1
  25. package/dist/esm/actions/tsconfig-gen.d.ts +1 -1
  26. package/dist/esm/lib/xy/xy.d.ts.map +1 -1
  27. package/dist/esm/lib/xy/xy.js +7 -1
  28. package/dist/esm/lib/xy/xy.js.map +1 -1
  29. package/dist/esm/lib/xy/xyCommonCommands.js +2 -2
  30. package/dist/esm/lib/xy/xyCommonCommands.js.map +1 -1
  31. package/dist/tsconfig.build.cjs.tsbuildinfo +1 -1
  32. package/dist/tsconfig.build.esm.tsbuildinfo +1 -1
  33. package/package.json +4 -3
  34. package/src/actions/license.ts +57 -12
  35. package/src/lib/xy/xy.ts +8 -1
  36. 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
- return xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(xyParseOptions())))))
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(