@xylabs/ts-scripts-yarn3 4.0.0 → 4.0.2
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/actions/build.mjs +3 -1
- package/dist/actions/build.mjs.map +1 -1
- package/dist/actions/compile.mjs +9 -7
- package/dist/actions/compile.mjs.map +1 -1
- package/dist/actions/index.mjs +112 -39
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +79 -10
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +79 -10
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +239 -6
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +93 -24
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +79 -10
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build.mjs +551 -0
- package/dist/bin/package/build.mjs.map +1 -0
- package/dist/bin/package/compile-only.mjs +81 -12
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +239 -8
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +81 -12
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +81 -12
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/xy-ts.mjs +26 -12
- package/dist/bin/xy-ts.mjs.map +1 -1
- package/dist/bin/xy.mjs +26 -12
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.mjs +136 -53
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +26 -12
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +26 -12
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyBuildCommands.mjs +17 -12
- package/dist/xy/xyBuildCommands.mjs.map +1 -1
- package/dist/xy/xyParseOptions.mjs +9 -0
- package/dist/xy/xyParseOptions.mjs.map +1 -1
- package/package.json +5 -4
- package/src/actions/build.ts +1 -1
- package/src/actions/compile.ts +22 -7
- package/src/actions/package/compile/compile.ts +2 -2
- package/src/actions/package/compile/packageCompileTsup.ts +18 -5
- package/src/bin/package/build.ts +16 -0
- package/src/xy/xyBuildCommands.ts +5 -4
- package/src/xy/xyParseOptions.ts +7 -0
package/dist/xy/index.mjs
CHANGED
|
@@ -449,7 +449,9 @@ var build = /* @__PURE__ */ __name(async ({ incremental, jobs, target, verbose,
|
|
|
449
449
|
...targetOptions,
|
|
450
450
|
...verboseOptions,
|
|
451
451
|
...jobsOptions,
|
|
452
|
-
...incrementalOptions
|
|
452
|
+
...incrementalOptions,
|
|
453
|
+
"--types",
|
|
454
|
+
"tsc"
|
|
453
455
|
]
|
|
454
456
|
],
|
|
455
457
|
[
|
|
@@ -533,21 +535,23 @@ var cleanDocs = /* @__PURE__ */ __name(() => {
|
|
|
533
535
|
|
|
534
536
|
// src/actions/compile.ts
|
|
535
537
|
import chalk9 from "chalk";
|
|
536
|
-
var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2, jobs }) => {
|
|
538
|
+
var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2, jobs, types }) => {
|
|
537
539
|
return pkg ? compilePackage({
|
|
538
540
|
pkg,
|
|
539
541
|
publint: publint2,
|
|
540
542
|
target,
|
|
541
|
-
verbose
|
|
543
|
+
verbose,
|
|
544
|
+
types
|
|
542
545
|
}) : compileAll({
|
|
543
546
|
incremental,
|
|
544
547
|
publint: publint2,
|
|
545
548
|
target,
|
|
546
549
|
verbose,
|
|
547
|
-
jobs
|
|
550
|
+
jobs,
|
|
551
|
+
types
|
|
548
552
|
});
|
|
549
553
|
}, "compile");
|
|
550
|
-
var compilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
|
|
554
|
+
var compilePackage = /* @__PURE__ */ __name(({ target, pkg, types }) => {
|
|
551
555
|
const targetOptions = target ? [
|
|
552
556
|
"-t",
|
|
553
557
|
target
|
|
@@ -559,13 +563,13 @@ var compilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
|
|
|
559
563
|
"workspace",
|
|
560
564
|
pkg,
|
|
561
565
|
"run",
|
|
562
|
-
"package-compile",
|
|
566
|
+
types === "tsup" ? "package-compile" : "package-build",
|
|
563
567
|
...targetOptions
|
|
564
568
|
]
|
|
565
569
|
]
|
|
566
570
|
]);
|
|
567
571
|
}, "compilePackage");
|
|
568
|
-
var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental }) => {
|
|
572
|
+
var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental, types }) => {
|
|
569
573
|
const start = Date.now();
|
|
570
574
|
const verboseOptions = verbose ? [
|
|
571
575
|
"--verbose"
|
|
@@ -602,7 +606,7 @@ var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental })
|
|
|
602
606
|
...jobsOptions,
|
|
603
607
|
...verboseOptions,
|
|
604
608
|
"run",
|
|
605
|
-
"package-compile",
|
|
609
|
+
types === "tsup" ? "package-compile" : "package-build",
|
|
606
610
|
...targetOptions
|
|
607
611
|
]
|
|
608
612
|
]
|
|
@@ -1571,26 +1575,27 @@ var xyBuildCommands = /* @__PURE__ */ __name((args) => {
|
|
|
1571
1575
|
return yargs2.positional("package", {
|
|
1572
1576
|
describe: "Specific package to compile"
|
|
1573
1577
|
});
|
|
1574
|
-
},
|
|
1578
|
+
}, (argv) => {
|
|
1575
1579
|
if (argv.verbose) {
|
|
1576
1580
|
console.log(`Compiling: ${argv.package ?? "all"}`);
|
|
1577
1581
|
}
|
|
1578
|
-
process.exitCode =
|
|
1582
|
+
process.exitCode = compile({
|
|
1579
1583
|
incremental: !!argv.incremental,
|
|
1580
1584
|
jobs: argv.jobs,
|
|
1581
1585
|
pkg: argv.package,
|
|
1582
1586
|
target: argv.target,
|
|
1587
|
+
types: argv.types,
|
|
1583
1588
|
verbose: !!argv.verbose
|
|
1584
1589
|
});
|
|
1585
1590
|
}).command("compile-only [package]", "Compile with Typescript & Copy Images (No Publint)", (yargs2) => {
|
|
1586
1591
|
return yargs2.positional("package", {
|
|
1587
1592
|
describe: "Specific package to compile"
|
|
1588
1593
|
});
|
|
1589
|
-
},
|
|
1594
|
+
}, (argv) => {
|
|
1590
1595
|
if (argv.verbose) {
|
|
1591
1596
|
console.log(`Compiling: ${argv.package ?? "all"}`);
|
|
1592
1597
|
}
|
|
1593
|
-
process.exitCode =
|
|
1598
|
+
process.exitCode = compile({
|
|
1594
1599
|
incremental: !!argv.incremental,
|
|
1595
1600
|
jobs: argv.jobs,
|
|
1596
1601
|
pkg: argv.package,
|
|
@@ -1852,6 +1857,7 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
|
|
|
1852
1857
|
type: "boolean"
|
|
1853
1858
|
}).option("target", {
|
|
1854
1859
|
alias: "t",
|
|
1860
|
+
default: "esm",
|
|
1855
1861
|
choices: [
|
|
1856
1862
|
"esm",
|
|
1857
1863
|
"cjs"
|
|
@@ -1878,6 +1884,14 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
|
|
|
1878
1884
|
default: false,
|
|
1879
1885
|
description: "Profile action",
|
|
1880
1886
|
type: "boolean"
|
|
1887
|
+
}).option("types", {
|
|
1888
|
+
default: "tsup",
|
|
1889
|
+
choices: [
|
|
1890
|
+
"tsc",
|
|
1891
|
+
"tsup"
|
|
1892
|
+
],
|
|
1893
|
+
description: "Tool to generate Typescript types",
|
|
1894
|
+
type: "string"
|
|
1881
1895
|
});
|
|
1882
1896
|
}, "xyParseOptions");
|
|
1883
1897
|
|