@xylabs/ts-scripts-yarn3 2.7.0-rc.10 → 2.7.0-rc.11

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 (73) hide show
  1. package/dist/cjs/actions/build.d.ts +1 -1
  2. package/dist/cjs/actions/build.d.ts.map +1 -1
  3. package/dist/cjs/actions/build.js +1 -1
  4. package/dist/cjs/actions/build.js.map +1 -1
  5. package/dist/cjs/actions/clean.d.ts +1 -1
  6. package/dist/cjs/actions/clean.d.ts.map +1 -1
  7. package/dist/cjs/actions/clean.js +1 -1
  8. package/dist/cjs/actions/clean.js.map +1 -1
  9. package/dist/cjs/actions/compile.d.ts +1 -1
  10. package/dist/cjs/actions/compile.d.ts.map +1 -1
  11. package/dist/cjs/actions/compile.js +1 -1
  12. package/dist/cjs/actions/compile.js.map +1 -1
  13. package/dist/cjs/actions/copy-assets.d.ts +1 -1
  14. package/dist/cjs/actions/copy-assets.d.ts.map +1 -1
  15. package/dist/cjs/actions/copy-assets.js +5 -7
  16. package/dist/cjs/actions/copy-assets.js.map +1 -1
  17. package/dist/cjs/actions/cycle.d.ts +1 -1
  18. package/dist/cjs/actions/cycle.d.ts.map +1 -1
  19. package/dist/cjs/actions/cycle.js +1 -1
  20. package/dist/cjs/actions/cycle.js.map +1 -1
  21. package/dist/cjs/actions/dead.d.ts +1 -1
  22. package/dist/cjs/actions/dead.d.ts.map +1 -1
  23. package/dist/cjs/actions/dead.js +1 -1
  24. package/dist/cjs/actions/dead.js.map +1 -1
  25. package/dist/cjs/bin/xy.js +6 -6
  26. package/dist/cjs/bin/xy.js.map +1 -1
  27. package/dist/cjs/lib/runSteps.d.ts +1 -1
  28. package/dist/cjs/lib/runSteps.d.ts.map +1 -1
  29. package/dist/cjs/lib/safeExit.d.ts +1 -1
  30. package/dist/cjs/lib/safeExit.d.ts.map +1 -1
  31. package/dist/cjs/lib/safeExit.js.map +1 -1
  32. package/dist/esm/actions/build.d.ts +1 -1
  33. package/dist/esm/actions/build.d.ts.map +1 -1
  34. package/dist/esm/actions/build.js +1 -1
  35. package/dist/esm/actions/build.js.map +1 -1
  36. package/dist/esm/actions/clean.d.ts +1 -1
  37. package/dist/esm/actions/clean.d.ts.map +1 -1
  38. package/dist/esm/actions/clean.js +1 -1
  39. package/dist/esm/actions/clean.js.map +1 -1
  40. package/dist/esm/actions/compile.d.ts +1 -1
  41. package/dist/esm/actions/compile.d.ts.map +1 -1
  42. package/dist/esm/actions/compile.js +1 -1
  43. package/dist/esm/actions/compile.js.map +1 -1
  44. package/dist/esm/actions/copy-assets.d.ts +1 -1
  45. package/dist/esm/actions/copy-assets.d.ts.map +1 -1
  46. package/dist/esm/actions/copy-assets.js +5 -7
  47. package/dist/esm/actions/copy-assets.js.map +1 -1
  48. package/dist/esm/actions/cycle.d.ts +1 -1
  49. package/dist/esm/actions/cycle.d.ts.map +1 -1
  50. package/dist/esm/actions/cycle.js +1 -1
  51. package/dist/esm/actions/cycle.js.map +1 -1
  52. package/dist/esm/actions/dead.d.ts +1 -1
  53. package/dist/esm/actions/dead.d.ts.map +1 -1
  54. package/dist/esm/actions/dead.js +1 -1
  55. package/dist/esm/actions/dead.js.map +1 -1
  56. package/dist/esm/bin/xy.js +6 -6
  57. package/dist/esm/bin/xy.js.map +1 -1
  58. package/dist/esm/lib/runSteps.d.ts +1 -1
  59. package/dist/esm/lib/runSteps.d.ts.map +1 -1
  60. package/dist/esm/lib/safeExit.d.ts +1 -1
  61. package/dist/esm/lib/safeExit.d.ts.map +1 -1
  62. package/dist/esm/lib/safeExit.js.map +1 -1
  63. package/dist/tsconfig.build.cjs.tsbuildinfo +1 -1
  64. package/dist/tsconfig.build.esm.tsbuildinfo +1 -1
  65. package/package.json +3 -3
  66. package/src/actions/build.ts +1 -1
  67. package/src/actions/clean.ts +1 -1
  68. package/src/actions/compile.ts +1 -1
  69. package/src/actions/copy-assets.ts +5 -7
  70. package/src/actions/cycle.ts +1 -1
  71. package/src/actions/dead.ts +1 -1
  72. package/src/bin/xy.ts +6 -6
  73. package/src/lib/safeExit.ts +1 -1
package/src/bin/xy.ts CHANGED
@@ -33,7 +33,7 @@ const run = async () => {
33
33
  },
34
34
  (argv) => {
35
35
  if (argv.verbose) console.info(`Building: ${(argv.package ?? 'all')}`)
36
- build({target: options.target as ('esm' | 'cjs')})
36
+ process.exitCode = build({target: options.target as ('esm' | 'cjs')})
37
37
  },
38
38
  )
39
39
  .command(
@@ -46,7 +46,7 @@ const run = async () => {
46
46
  },
47
47
  (argv) => {
48
48
  if (argv.verbose) console.info(`Compiling: ${(argv.package ?? 'all')}`)
49
- compile({target: options.target as ('esm' | 'cjs')})
49
+ process.exitCode = compile({target: options.target as ('esm' | 'cjs')})
50
50
  },
51
51
  )
52
52
  .command(
@@ -59,7 +59,7 @@ const run = async () => {
59
59
  },
60
60
  (argv) => {
61
61
  if (argv.verbose) console.info(`Cleaning: ${(argv.package ?? 'all')}`)
62
- clean()
62
+ process.exitCode = clean()
63
63
  },
64
64
  )
65
65
  .command(
@@ -72,7 +72,7 @@ const run = async () => {
72
72
  },
73
73
  (argv) => {
74
74
  if (argv.verbose) console.info(`Copying Assets: ${(argv.package ?? 'all')}`)
75
- copyAssets({target: options.target as ('esm' | 'cjs')})
75
+ process.exitCode = copyAssets({target: options.target as ('esm' | 'cjs')})
76
76
  },
77
77
  )
78
78
  .command(
@@ -85,7 +85,7 @@ const run = async () => {
85
85
  },
86
86
  (argv) => {
87
87
  if (argv.verbose) console.info(`Cycle`)
88
- cycle()
88
+ process.exitCode = cycle()
89
89
  },
90
90
  )
91
91
  .command(
@@ -98,7 +98,7 @@ const run = async () => {
98
98
  },
99
99
  (argv) => {
100
100
  if (argv.verbose) console.info(`Dead`)
101
- dead()
101
+ process.exitCode = dead()
102
102
  },
103
103
  )
104
104
  .parse()
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { processEx } from './processEx'
4
4
 
5
- const safeExit = (func: () => number | null | undefined | void) => {
5
+ const safeExit = (func: () => number | undefined) => {
6
6
  try {
7
7
  return func()
8
8
  } catch (ex) {