@rzl-zone/build-tools 0.0.13 → 0.0.14-beta.0

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 (65) hide show
  1. package/dist/.references/index.d.cts +1 -1
  2. package/dist/.references/index.d.ts +1 -1
  3. package/dist/bundler/rolldown.cjs +2 -2
  4. package/dist/bundler/rolldown.d.cts +2 -2
  5. package/dist/bundler/rolldown.d.ts +2 -2
  6. package/dist/bundler/rolldown.js +1 -1
  7. package/dist/bundler/tsdown.cjs +4 -4
  8. package/dist/bundler/tsdown.cjs.map +1 -1
  9. package/dist/bundler/tsdown.d.cts +8 -10
  10. package/dist/bundler/tsdown.d.ts +8 -10
  11. package/dist/bundler/tsdown.js +4 -4
  12. package/dist/bundler/tsdown.js.map +1 -1
  13. package/dist/bundler/utils.cjs +2 -2
  14. package/dist/bundler/utils.d.cts +2 -2
  15. package/dist/bundler/utils.d.ts +2 -2
  16. package/dist/bundler/utils.js +2 -2
  17. package/dist/{client-DowGlRm4.cjs → client-CUiclOap.cjs} +3 -3
  18. package/dist/{client-DowGlRm4.cjs.map → client-CUiclOap.cjs.map} +1 -1
  19. package/dist/{client-DgQRjdo8.js → client-DXv1TyTC.js} +3 -3
  20. package/dist/{client-DgQRjdo8.js.map → client-DXv1TyTC.js.map} +1 -1
  21. package/dist/commander-kit/index.cjs +5 -5
  22. package/dist/commander-kit/index.cjs.map +1 -1
  23. package/dist/commander-kit/index.d.cts +3 -3
  24. package/dist/commander-kit/index.d.ts +3 -3
  25. package/dist/commander-kit/index.js +5 -5
  26. package/dist/commander-kit/index.js.map +1 -1
  27. package/dist/{extra-B0cm-axJ.d.ts → extra-haYf2y7g.d.cts} +2 -2
  28. package/dist/{extra-B0cm-axJ.d.cts → extra-haYf2y7g.d.ts} +2 -2
  29. package/dist/{fast-globe-options-CUaH5spu.d.ts → fast-globe-options-DiPYSmWl.d.ts} +96 -4
  30. package/dist/{fast-globe-options-DXVzXC8B.d.cts → fast-globe-options-Dr-w8Myw.d.cts} +96 -4
  31. package/dist/{formatter-BFgV1HhV.js → formatter-BK-4zd0G.js} +2 -2
  32. package/dist/{formatter-BFgV1HhV.js.map → formatter-BK-4zd0G.js.map} +1 -1
  33. package/dist/{formatter-C-Yt_Gvf.cjs → formatter-DkpMt0A4.cjs} +2 -2
  34. package/dist/{formatter-C-Yt_Gvf.cjs.map → formatter-DkpMt0A4.cjs.map} +1 -1
  35. package/dist/{identity-8Wy_JtzU.cjs → identity-BHNQH-bO.cjs} +5 -5
  36. package/dist/{identity-8Wy_JtzU.cjs.map → identity-BHNQH-bO.cjs.map} +1 -1
  37. package/dist/{identity-DPB1Qgy4.js → identity-BUYu2Hfa.js} +5 -5
  38. package/dist/{identity-DPB1Qgy4.js.map → identity-BUYu2Hfa.js.map} +1 -1
  39. package/dist/{index-8QVWHQzC.d.cts → index-BU6nzu6M.d.cts} +2 -2
  40. package/dist/{index-8QVWHQzC.d.ts → index-BU6nzu6M.d.ts} +2 -2
  41. package/dist/{index-CyGIoXau.d.ts → index-D5uQ7OdQ.d.cts} +3 -3
  42. package/dist/{index-CyGIoXau.d.cts → index-D5uQ7OdQ.d.ts} +3 -3
  43. package/dist/index.cjs +7 -7
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +13 -37
  46. package/dist/index.d.ts +13 -37
  47. package/dist/index.js +7 -7
  48. package/dist/index.js.map +1 -1
  49. package/dist/{package-banner-BjakxfTu.js → package-banner-BDtg5TtW.js} +4 -4
  50. package/dist/{package-banner-BjakxfTu.js.map → package-banner-BDtg5TtW.js.map} +1 -1
  51. package/dist/{package-banner-Cf5uu-7p.cjs → package-banner-CHj1ji3Y.cjs} +4 -4
  52. package/dist/{package-banner-Cf5uu-7p.cjs.map → package-banner-CHj1ji3Y.cjs.map} +1 -1
  53. package/dist/{server-B1jiYLZq.js → server-BM7JNptE.js} +3 -3
  54. package/dist/{server-B1jiYLZq.js.map → server-BM7JNptE.js.map} +1 -1
  55. package/dist/{server-BRuKWcjy.cjs → server-BszV1phk.cjs} +3 -3
  56. package/dist/{server-BRuKWcjy.cjs.map → server-BszV1phk.cjs.map} +1 -1
  57. package/dist/utils/client.cjs +3 -3
  58. package/dist/utils/client.d.cts +1 -1
  59. package/dist/utils/client.d.ts +1 -1
  60. package/dist/utils/client.js +3 -3
  61. package/dist/utils/server.cjs +2 -2
  62. package/dist/utils/server.d.cts +3 -3
  63. package/dist/utils/server.d.ts +3 -3
  64. package/dist/utils/server.js +2 -2
  65. package/package.json +15 -15
package/dist/index.d.cts CHANGED
@@ -2,16 +2,16 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.13`
5
+ * Version: `0.0.14-beta.0`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { a as OmitStrict, c as PrettifyOptions, r as DefaultPrettifyOptions, s as Prettify } from "./extra-B0cm-axJ.cjs";
12
- import { n as generatePackageBanner, r as PackageJson, t as GeneratePackageBannerOptions } from "./index-CyGIoXau.cjs";
13
- import { t as CommandIdentity } from "./index-8QVWHQzC.cjs";
14
- import { n as PatternOptions, t as PatternConfig } from "./fast-globe-options-DXVzXC8B.cjs";
11
+ import { a as OmitStrict, c as PrettifyOptions, r as DefaultPrettifyOptions, s as Prettify } from "./extra-haYf2y7g.cjs";
12
+ import { n as generatePackageBanner, r as PackageJson, t as GeneratePackageBannerOptions } from "./index-D5uQ7OdQ.cjs";
13
+ import { t as CommandIdentity } from "./index-BU6nzu6M.cjs";
14
+ import { n as PatternOptions, r as PatternRuntimePolicy, t as PatternConfig } from "./fast-globe-options-Dr-w8Myw.cjs";
15
15
  import { ChildProcess, SpawnOptions, StdioOptions } from "node:child_process";
16
16
  import * as acorn from "acorn";
17
17
 
@@ -162,10 +162,7 @@ type BaseOptions<FilesOnly extends boolean = false, ForceUnique extends boolean
162
162
  * - `filesOnly`: Ensures only files are matched.
163
163
  * - `forceUnique`: Deduplicates matched results.
164
164
  */
165
- declare const DEFAULT_CLEAN_PATTERN_POLICY: {
166
- readonly filesOnly: true;
167
- readonly forceUnique: true;
168
- };
165
+ declare const DEFAULT_CLEAN_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
169
166
  /** ----------------------------------------------------------------
170
167
  * * ***Resolved Pattern Options for **clean build artifact** operations.***
171
168
  * ----------------------------------------------------------------
@@ -548,10 +545,7 @@ declare function copyFileToDest(parameter: Set<CopyFileToDestParam>, options?: C
548
545
  * - `filesOnly`: Ensures only files are matched.
549
546
  * - `forceUnique`: Deduplicates matched results.
550
547
  */
551
- declare const DEFAULT_ECI_PATTERN_POLICY: {
552
- readonly filesOnly: true;
553
- readonly forceUnique: true;
554
- };
548
+ declare const DEFAULT_ECI_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
555
549
  /** ----------------------------------------------------------------
556
550
  * * ***Resolved Pattern Options for **ensure css import** operations.***
557
551
  * ----------------------------------------------------------------
@@ -645,10 +639,7 @@ declare const ensureCssImport: (pattern: StringCollection, options: EnsureCssImp
645
639
  * - `filesOnly`: Ensures only files are matched.
646
640
  * - `forceUnique`: Deduplicates matched results.
647
641
  */
648
- declare const DEFAULT_EFN_PATTERN_POLICY: {
649
- readonly filesOnly: true;
650
- readonly forceUnique: true;
651
- };
642
+ declare const DEFAULT_EFN_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
652
643
  /** ----------------------------------------------------------------
653
644
  * * ***Resolved Pattern Options for **ensure final newline** operations.***
654
645
  * ----------------------------------------------------------------
@@ -718,10 +709,7 @@ declare const ensureFinalNewline: (pattern: StringCollection, options?: EnsureFi
718
709
  * - `filesOnly`: Ensures only files are matched.
719
710
  * - `forceUnique`: Deduplicates matched results.
720
711
  */
721
- declare const DEFAULT_GRI_PATTERN_POLICY: {
722
- readonly filesOnly: true;
723
- readonly forceUnique: true;
724
- };
712
+ declare const DEFAULT_GRI_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
725
713
  /** ----------------------------------------------------------------
726
714
  * * ***Resolved Pattern Options for **generate reference index** operations.***
727
715
  * ----------------------------------------------------------------
@@ -1112,10 +1100,7 @@ declare const getPackageJson: (options?: GetPackageJsonOptions) => Promise<Packa
1112
1100
  * - `filesOnly`: Ensures only files are matched.
1113
1101
  * - `forceUnique`: Deduplicates matched results.
1114
1102
  */
1115
- declare const DEFAULT_IB_PATTERN_POLICY: {
1116
- readonly filesOnly: true;
1117
- readonly forceUnique: true;
1118
- };
1103
+ declare const DEFAULT_IB_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
1119
1104
  /** ----------------------------------------------------------------
1120
1105
  * * ***Resolved Pattern Options for **inject banner** operations.***
1121
1106
  * ----------------------------------------------------------------
@@ -1276,10 +1261,7 @@ declare const injectBanner: (pattern: StringCollection, bannerText: StringCollec
1276
1261
  * - `filesOnly`: Ensures only files are matched.
1277
1262
  * - `forceUnique`: Deduplicates matched results.
1278
1263
  */
1279
- declare const DEFAULT_ID_PATTERN_POLICY: {
1280
- readonly filesOnly: true;
1281
- readonly forceUnique: true;
1282
- };
1264
+ declare const DEFAULT_ID_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
1283
1265
  /** ----------------------------------------------------------------
1284
1266
  * * ***Resolved Pattern Options for **inject directive** operations.***
1285
1267
  * ----------------------------------------------------------------
@@ -1348,10 +1330,7 @@ declare const injectDirective: (pattern: StringCollection, directive: StringColl
1348
1330
  * - `filesOnly`: Ensures only files are matched.
1349
1331
  * - `forceUnique`: Deduplicates matched results.
1350
1332
  */
1351
- declare const DEFAULT_NJBN_PATTERN_POLICY: {
1352
- readonly filesOnly: true;
1353
- readonly forceUnique: true;
1354
- };
1333
+ declare const DEFAULT_NJBN_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
1355
1334
  /** ----------------------------------------------------------------
1356
1335
  * * ***Resolved Pattern Options for **normalize js build newlines** operations.***
1357
1336
  * ----------------------------------------------------------------
@@ -2082,10 +2061,7 @@ declare function runCommand(command: string, args: readonly string[], options: R
2082
2061
  * - `filesOnly`: Ensures only files are matched.
2083
2062
  * - `forceUnique`: Deduplicates matched results.
2084
2063
  */
2085
- declare const DEFAULT_SJC_PATTERN_POLICY: {
2086
- readonly filesOnly: true;
2087
- readonly forceUnique: true;
2088
- };
2064
+ declare const DEFAULT_SJC_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
2089
2065
  /** ----------------------------------------------------------------
2090
2066
  * * ***Resolved Pattern Options for **strip js comments** operations.***
2091
2067
  * ----------------------------------------------------------------
package/dist/index.d.ts CHANGED
@@ -2,16 +2,16 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.13`
5
+ * Version: `0.0.14-beta.0`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { a as OmitStrict, c as PrettifyOptions, r as DefaultPrettifyOptions, s as Prettify } from "./extra-B0cm-axJ.js";
12
- import { n as generatePackageBanner, r as PackageJson, t as GeneratePackageBannerOptions } from "./index-CyGIoXau.js";
13
- import { t as CommandIdentity } from "./index-8QVWHQzC.js";
14
- import { n as PatternOptions, t as PatternConfig } from "./fast-globe-options-CUaH5spu.js";
11
+ import { a as OmitStrict, c as PrettifyOptions, r as DefaultPrettifyOptions, s as Prettify } from "./extra-haYf2y7g.js";
12
+ import { n as generatePackageBanner, r as PackageJson, t as GeneratePackageBannerOptions } from "./index-D5uQ7OdQ.js";
13
+ import { t as CommandIdentity } from "./index-BU6nzu6M.js";
14
+ import { n as PatternOptions, r as PatternRuntimePolicy, t as PatternConfig } from "./fast-globe-options-DiPYSmWl.js";
15
15
  import { ChildProcess, SpawnOptions, StdioOptions, spawn } from "node:child_process";
16
16
  import * as acorn from "acorn";
17
17
 
@@ -162,10 +162,7 @@ type BaseOptions<FilesOnly extends boolean = false, ForceUnique extends boolean
162
162
  * - `filesOnly`: Ensures only files are matched.
163
163
  * - `forceUnique`: Deduplicates matched results.
164
164
  */
165
- declare const DEFAULT_CLEAN_PATTERN_POLICY: {
166
- readonly filesOnly: true;
167
- readonly forceUnique: true;
168
- };
165
+ declare const DEFAULT_CLEAN_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
169
166
  /** ----------------------------------------------------------------
170
167
  * * ***Resolved Pattern Options for **clean build artifact** operations.***
171
168
  * ----------------------------------------------------------------
@@ -548,10 +545,7 @@ declare function copyFileToDest(parameter: Set<CopyFileToDestParam>, options?: C
548
545
  * - `filesOnly`: Ensures only files are matched.
549
546
  * - `forceUnique`: Deduplicates matched results.
550
547
  */
551
- declare const DEFAULT_ECI_PATTERN_POLICY: {
552
- readonly filesOnly: true;
553
- readonly forceUnique: true;
554
- };
548
+ declare const DEFAULT_ECI_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
555
549
  /** ----------------------------------------------------------------
556
550
  * * ***Resolved Pattern Options for **ensure css import** operations.***
557
551
  * ----------------------------------------------------------------
@@ -645,10 +639,7 @@ declare const ensureCssImport: (pattern: StringCollection, options: EnsureCssImp
645
639
  * - `filesOnly`: Ensures only files are matched.
646
640
  * - `forceUnique`: Deduplicates matched results.
647
641
  */
648
- declare const DEFAULT_EFN_PATTERN_POLICY: {
649
- readonly filesOnly: true;
650
- readonly forceUnique: true;
651
- };
642
+ declare const DEFAULT_EFN_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
652
643
  /** ----------------------------------------------------------------
653
644
  * * ***Resolved Pattern Options for **ensure final newline** operations.***
654
645
  * ----------------------------------------------------------------
@@ -718,10 +709,7 @@ declare const ensureFinalNewline: (pattern: StringCollection, options?: EnsureFi
718
709
  * - `filesOnly`: Ensures only files are matched.
719
710
  * - `forceUnique`: Deduplicates matched results.
720
711
  */
721
- declare const DEFAULT_GRI_PATTERN_POLICY: {
722
- readonly filesOnly: true;
723
- readonly forceUnique: true;
724
- };
712
+ declare const DEFAULT_GRI_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
725
713
  /** ----------------------------------------------------------------
726
714
  * * ***Resolved Pattern Options for **generate reference index** operations.***
727
715
  * ----------------------------------------------------------------
@@ -1112,10 +1100,7 @@ declare const getPackageJson: (options?: GetPackageJsonOptions) => Promise<Packa
1112
1100
  * - `filesOnly`: Ensures only files are matched.
1113
1101
  * - `forceUnique`: Deduplicates matched results.
1114
1102
  */
1115
- declare const DEFAULT_IB_PATTERN_POLICY: {
1116
- readonly filesOnly: true;
1117
- readonly forceUnique: true;
1118
- };
1103
+ declare const DEFAULT_IB_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
1119
1104
  /** ----------------------------------------------------------------
1120
1105
  * * ***Resolved Pattern Options for **inject banner** operations.***
1121
1106
  * ----------------------------------------------------------------
@@ -1276,10 +1261,7 @@ declare const injectBanner: (pattern: StringCollection, bannerText: StringCollec
1276
1261
  * - `filesOnly`: Ensures only files are matched.
1277
1262
  * - `forceUnique`: Deduplicates matched results.
1278
1263
  */
1279
- declare const DEFAULT_ID_PATTERN_POLICY: {
1280
- readonly filesOnly: true;
1281
- readonly forceUnique: true;
1282
- };
1264
+ declare const DEFAULT_ID_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
1283
1265
  /** ----------------------------------------------------------------
1284
1266
  * * ***Resolved Pattern Options for **inject directive** operations.***
1285
1267
  * ----------------------------------------------------------------
@@ -1348,10 +1330,7 @@ declare const injectDirective: (pattern: StringCollection, directive: StringColl
1348
1330
  * - `filesOnly`: Ensures only files are matched.
1349
1331
  * - `forceUnique`: Deduplicates matched results.
1350
1332
  */
1351
- declare const DEFAULT_NJBN_PATTERN_POLICY: {
1352
- readonly filesOnly: true;
1353
- readonly forceUnique: true;
1354
- };
1333
+ declare const DEFAULT_NJBN_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
1355
1334
  /** ----------------------------------------------------------------
1356
1335
  * * ***Resolved Pattern Options for **normalize js build newlines** operations.***
1357
1336
  * ----------------------------------------------------------------
@@ -2082,10 +2061,7 @@ declare function runCommand(command: string, args: readonly string[], options: R
2082
2061
  * - `filesOnly`: Ensures only files are matched.
2083
2062
  * - `forceUnique`: Deduplicates matched results.
2084
2063
  */
2085
- declare const DEFAULT_SJC_PATTERN_POLICY: {
2086
- readonly filesOnly: true;
2087
- readonly forceUnique: true;
2088
- };
2064
+ declare const DEFAULT_SJC_PATTERN_POLICY: Required<PatternRuntimePolicy<true, true>>;
2089
2065
  /** ----------------------------------------------------------------
2090
2066
  * * ***Resolved Pattern Options for **strip js comments** operations.***
2091
2067
  * ----------------------------------------------------------------
package/dist/index.js CHANGED
@@ -2,16 +2,16 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.13`
5
+ * Version: `0.0.14-beta.0`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { C as isString, E as safeStableStringify, O as toObjectSet, S as isSet, _ as isNonEmptyString, b as isPlainObject, c as picocolors, d as flattenStrings, f as isArray, i as joinInline, k as toStringSet, l as plural, o as joinLinesLoose, p as isBoolean, r as formatOptionValue, t as EOL, w as isUndefined, x as isRegExp, y as isNumber } from "./formatter-BFgV1HhV.js";
12
- import { c as resolvePatternOptions, i as sourceOf, l as sourceOfPatternOptions, n as fsExtra, r as BUILD_LOGGER, s as defaultPatternOptions, t as fastGlob } from "./server-B1jiYLZq.js";
13
- import { t as CommandIdentity } from "./identity-DPB1Qgy4.js";
14
- import { n as getPackageJson, t as generatePackageBanner } from "./package-banner-BjakxfTu.js";
11
+ import { C as isString, E as safeStableStringify, O as toObjectSet, S as isSet, _ as isNonEmptyString, b as isPlainObject, c as picocolors, d as flattenStrings, f as isArray, i as joinInline, k as toStringSet, l as plural, o as joinLinesLoose, p as isBoolean, r as formatOptionValue, t as EOL, w as isUndefined, x as isRegExp, y as isNumber } from "./formatter-BK-4zd0G.js";
12
+ import { c as resolvePatternOptions, i as sourceOf, l as sourceOfPatternOptions, n as fsExtra, r as BUILD_LOGGER, s as defaultPatternOptions, t as fastGlob } from "./server-BM7JNptE.js";
13
+ import { t as CommandIdentity } from "./identity-BUYu2Hfa.js";
14
+ import { n as getPackageJson, t as generatePackageBanner } from "./package-banner-BDtg5TtW.js";
15
15
  import "@rzl-zone/node-only";
16
16
  import * as t from "@babel/types";
17
17
  import { parse } from "@babel/parser";
@@ -1480,12 +1480,12 @@ const DEFAULT_SJC_OPTIONS = {
1480
1480
  patternOptions: resolvedSjcPatternOption,
1481
1481
  logLevel: DEFAULT_LOG_LEVEL
1482
1482
  };
1483
- const VALID_SOURCE_TYPE = new Set([
1483
+ const VALID_SOURCE_TYPE = /* @__PURE__ */ new Set([
1484
1484
  "module",
1485
1485
  "script",
1486
1486
  "commonjs"
1487
1487
  ]);
1488
- const VALID_ECMA_VERSION = new Set([
1488
+ const VALID_ECMA_VERSION = /* @__PURE__ */ new Set([
1489
1489
  "latest",
1490
1490
  3,
1491
1491
  5,