@rzl-zone/build-tools 0.0.5

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/dist/.references/index.d.cts +18 -0
  3. package/dist/.references/index.d.ts +18 -0
  4. package/dist/bundler/rolldown.cjs +32 -0
  5. package/dist/bundler/rolldown.cjs.map +1 -0
  6. package/dist/bundler/rolldown.d.cts +162 -0
  7. package/dist/bundler/rolldown.d.ts +162 -0
  8. package/dist/bundler/rolldown.js +25 -0
  9. package/dist/bundler/rolldown.js.map +1 -0
  10. package/dist/bundler/tsdown.cjs +132 -0
  11. package/dist/bundler/tsdown.cjs.map +1 -0
  12. package/dist/bundler/tsdown.d.cts +1165 -0
  13. package/dist/bundler/tsdown.d.ts +1165 -0
  14. package/dist/bundler/tsdown.js +124 -0
  15. package/dist/bundler/tsdown.js.map +1 -0
  16. package/dist/bundler/utils.cjs +24 -0
  17. package/dist/bundler/utils.cjs.map +1 -0
  18. package/dist/bundler/utils.d.cts +40 -0
  19. package/dist/bundler/utils.d.ts +40 -0
  20. package/dist/bundler/utils.js +21 -0
  21. package/dist/bundler/utils.js.map +1 -0
  22. package/dist/client-XhkdKJ4d.js +160 -0
  23. package/dist/client-XhkdKJ4d.js.map +1 -0
  24. package/dist/client-u8yLSxEI.cjs +221 -0
  25. package/dist/client-u8yLSxEI.cjs.map +1 -0
  26. package/dist/commander-kit/index.cjs +569 -0
  27. package/dist/commander-kit/index.cjs.map +1 -0
  28. package/dist/commander-kit/index.d.cts +1383 -0
  29. package/dist/commander-kit/index.d.ts +1383 -0
  30. package/dist/commander-kit/index.js +550 -0
  31. package/dist/commander-kit/index.js.map +1 -0
  32. package/dist/extra-CVuXMpEw.d.ts +994 -0
  33. package/dist/extra-CxDwtQEy.d.cts +994 -0
  34. package/dist/fast-globe-options-6r2aj6UC.d.ts +126 -0
  35. package/dist/fast-globe-options-BFt__e__.d.cts +126 -0
  36. package/dist/helper-BdjaR8Yv.js +215 -0
  37. package/dist/helper-BdjaR8Yv.js.map +1 -0
  38. package/dist/helper-DorgNsB9.cjs +377 -0
  39. package/dist/helper-DorgNsB9.cjs.map +1 -0
  40. package/dist/identity-BJ0QX7AJ.js +88 -0
  41. package/dist/identity-BJ0QX7AJ.js.map +1 -0
  42. package/dist/identity-CxR9DRMh.cjs +100 -0
  43. package/dist/identity-CxR9DRMh.cjs.map +1 -0
  44. package/dist/index-B-NeF7PU.d.cts +670 -0
  45. package/dist/index-CzxZta4Z.d.ts +356 -0
  46. package/dist/index-Idak1iwg.d.cts +356 -0
  47. package/dist/index-PXsb85LI.d.ts +670 -0
  48. package/dist/index.cjs +1689 -0
  49. package/dist/index.cjs.map +1 -0
  50. package/dist/index.d.cts +2193 -0
  51. package/dist/index.d.ts +2193 -0
  52. package/dist/index.js +1641 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/package-banner-6RzEf-mV.cjs +54 -0
  55. package/dist/package-banner-6RzEf-mV.cjs.map +1 -0
  56. package/dist/package-banner-BzheZbxy.js +41 -0
  57. package/dist/package-banner-BzheZbxy.js.map +1 -0
  58. package/dist/server-B2hBoGDR.cjs +181 -0
  59. package/dist/server-B2hBoGDR.cjs.map +1 -0
  60. package/dist/server-CWrDd29Y.js +142 -0
  61. package/dist/server-CWrDd29Y.js.map +1 -0
  62. package/dist/utils/client.cjs +23 -0
  63. package/dist/utils/client.d.cts +887 -0
  64. package/dist/utils/client.d.ts +887 -0
  65. package/dist/utils/client.js +12 -0
  66. package/dist/utils/server.cjs +17 -0
  67. package/dist/utils/server.d.cts +124 -0
  68. package/dist/utils/server.d.ts +124 -0
  69. package/dist/utils/server.js +12 -0
  70. package/package.json +151 -0
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * ========================================================================
3
+ * @rzl-zone/build-tools
4
+ * ------------------------------------------------------------------------
5
+ * Version: `0.0.5`
6
+ * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
+ * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
+ * ========================================================================
9
+ */
10
+
11
+ import { a as joinInline, c as padText, i as formatOptionValue, l as picocolors, n as EOL, o as joinLines, r as NEWLINE, s as joinLinesLoose, t as ConfigurationError, u as plural } from "../client-XhkdKJ4d.js";
12
+ export { ConfigurationError, EOL, NEWLINE, formatOptionValue, joinInline, joinLines, joinLinesLoose, padText, picocolors, plural };
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * ========================================================================
3
+ * @rzl-zone/build-tools
4
+ * ------------------------------------------------------------------------
5
+ * Version: `0.0.5`
6
+ * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
+ * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
+ * ========================================================================
9
+ */
10
+
11
+ "use strict";
12
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
+ const require_server = require('../server-B2hBoGDR.cjs');
14
+ exports.ICONS = require_server.ICONS;
15
+ exports.defaultPatternOptions = require_server.defaultPatternOptions;
16
+ exports.fastGlob = require_server.fastGlob;
17
+ exports.fsExtra = require_server.fsExtra;
@@ -0,0 +1,124 @@
1
+ /*!
2
+ * ========================================================================
3
+ * @rzl-zone/build-tools
4
+ * ------------------------------------------------------------------------
5
+ * Version: `0.0.5`
6
+ * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
+ * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
+ * ========================================================================
9
+ */
10
+
11
+ import { n as PatternOptions, r as defaultPatternOptions, t as PatternConfig } from "../fast-globe-options-BFt__e__.cjs";
12
+ import _fastGlob from "fast-glob";
13
+ import _fsExtra from "fs-extra";
14
+ type Icons = { readonly [K in keyof typeof emojiIcons]: string };
15
+ declare const emojiIcons: {
16
+ readonly start: "🕐";
17
+ readonly arrowRight: "▶️";
18
+ readonly arrowRightMini: "›";
19
+ readonly bulletBold: "●";
20
+ readonly bullet: "•";
21
+ readonly whiteCircle: "○";
22
+ readonly whiteBullet: "◦";
23
+ readonly smallSquare: "▪";
24
+ readonly success: "✅";
25
+ readonly warn: "⚠️";
26
+ readonly error: "❌";
27
+ readonly config: "⚙️";
28
+ readonly settings: "🛠️";
29
+ readonly file: "📄";
30
+ readonly files: "📁";
31
+ readonly folder: "📂";
32
+ readonly path: "🧭";
33
+ readonly add: "➕";
34
+ readonly remove: "➖";
35
+ readonly update: "♻️";
36
+ readonly copy: "📋";
37
+ readonly move: "📦";
38
+ readonly clean: "🧹";
39
+ readonly build: "🏗️";
40
+ readonly generate: "🧩";
41
+ readonly compile: "⚡";
42
+ readonly watch: "👀";
43
+ readonly info: "ℹ️";
44
+ readonly debug: "🐛";
45
+ readonly question: "❓";
46
+ readonly separator: "━";
47
+ };
48
+ /** ----------------------------------------------------------------
49
+ * * ***CLI icon mapping (emoji or ASCII fallback).***
50
+ * ----------------------------------------------------------------
51
+ *
52
+ * Provides a centralized set of visual symbols used across the CLI
53
+ * for rendering flow indicators, status messages, filesystem labels,
54
+ * and action markers.
55
+ *
56
+ * - *The icon set is determined at runtime via the environment variable:*
57
+ * - `FORCE_EMOJI=1` ➜ Emoji icons are enabled.
58
+ * - Otherwise ➜ ASCII-safe fallback icons are used.
59
+ *
60
+ * - *This ensures compatibility with:*
61
+ * - Terminals that do not support emoji rendering.
62
+ * - CI environments.
63
+ * - Minimal shells or log files.
64
+ * - *Behavior:*
65
+ * - The object shape is identical in both modes.
66
+ * - Only the visual representation changes.
67
+ * - The value is resolved once at module evaluation time.
68
+ * ----------------------------------------------------------------
69
+ * #### Environment Control
70
+ * ```bash
71
+ * FORCE_EMOJI=1
72
+ * ```
73
+ * ----------------------------------------------------------------
74
+ * @remarks
75
+ * This constant is intended for internal CLI rendering only, do not mutate the returned object.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * console.log(`${ICONS.success} Build completed`);
80
+ * ```
81
+ *
82
+ */
83
+ declare const ICONS: Readonly<Icons>;
84
+ /** ----------------------------------------------------------------
85
+ * * ***Node.js–only filesystem utilities (fs-extra).***
86
+ * ----------------------------------------------------------------
87
+ *
88
+ * This export is a **thin re-export** of the `fs-extra` package,
89
+ * intended for **server-side / Node.js environments only**.
90
+ *
91
+ * ⚠️ **DO NOT import this in browser or client-side code.**
92
+ * The underlying implementation depends on Node.js built-in
93
+ * modules such as `fs`, `path`, and `process`.
94
+ *
95
+ * - *Typical use cases:*
96
+ * - CLI tools.
97
+ * - Build scripts.
98
+ * - File system manipulation on the server.
99
+ *
100
+ * @see {@link https://github.com/jprichardson/node-fs-extra | **`https://github.com/jprichardson/node-fs-extra`**}.
101
+ * @environment node
102
+ */
103
+ declare const fsExtra: typeof _fsExtra;
104
+ /** ----------------------------------------------------------------
105
+ * * ***High-performance file system globbing utility (fast-glob).***
106
+ * ----------------------------------------------------------------
107
+ *
108
+ * This export re-exports the default export of `fast-glob`,
109
+ * which is implemented using **CommonJS `export =` semantics**.
110
+ *
111
+ * Due to its reliance on Node.js APIs, this module is
112
+ * **server-side only** and must not be bundled for the browser.
113
+ *
114
+ * - *Typical use cases:*
115
+ * - Resolving file patterns in build tools.
116
+ * - Scanning project directories.
117
+ * - CLI and automation scripts.
118
+ *
119
+ * @see {@link https://github.com/mrmlnc/fast-glob | **`https://github.com/mrmlnc/fast-glob`**}.
120
+ * @environment node
121
+ */
122
+ declare const fastGlob: typeof _fastGlob;
123
+ export { ICONS, type PatternConfig, type PatternOptions, defaultPatternOptions, fastGlob, fsExtra };
124
+ //# sourceMappingURL=server.d.cts.map
@@ -0,0 +1,124 @@
1
+ /*!
2
+ * ========================================================================
3
+ * @rzl-zone/build-tools
4
+ * ------------------------------------------------------------------------
5
+ * Version: `0.0.5`
6
+ * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
+ * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
+ * ========================================================================
9
+ */
10
+
11
+ import { n as PatternOptions, r as defaultPatternOptions, t as PatternConfig } from "../fast-globe-options-6r2aj6UC.js";
12
+ import _fastGlob from "fast-glob";
13
+ import _fsExtra from "fs-extra";
14
+ type Icons = { readonly [K in keyof typeof emojiIcons]: string };
15
+ declare const emojiIcons: {
16
+ readonly start: "🕐";
17
+ readonly arrowRight: "▶️";
18
+ readonly arrowRightMini: "›";
19
+ readonly bulletBold: "●";
20
+ readonly bullet: "•";
21
+ readonly whiteCircle: "○";
22
+ readonly whiteBullet: "◦";
23
+ readonly smallSquare: "▪";
24
+ readonly success: "✅";
25
+ readonly warn: "⚠️";
26
+ readonly error: "❌";
27
+ readonly config: "⚙️";
28
+ readonly settings: "🛠️";
29
+ readonly file: "📄";
30
+ readonly files: "📁";
31
+ readonly folder: "📂";
32
+ readonly path: "🧭";
33
+ readonly add: "➕";
34
+ readonly remove: "➖";
35
+ readonly update: "♻️";
36
+ readonly copy: "📋";
37
+ readonly move: "📦";
38
+ readonly clean: "🧹";
39
+ readonly build: "🏗️";
40
+ readonly generate: "🧩";
41
+ readonly compile: "⚡";
42
+ readonly watch: "👀";
43
+ readonly info: "ℹ️";
44
+ readonly debug: "🐛";
45
+ readonly question: "❓";
46
+ readonly separator: "━";
47
+ };
48
+ /** ----------------------------------------------------------------
49
+ * * ***CLI icon mapping (emoji or ASCII fallback).***
50
+ * ----------------------------------------------------------------
51
+ *
52
+ * Provides a centralized set of visual symbols used across the CLI
53
+ * for rendering flow indicators, status messages, filesystem labels,
54
+ * and action markers.
55
+ *
56
+ * - *The icon set is determined at runtime via the environment variable:*
57
+ * - `FORCE_EMOJI=1` ➜ Emoji icons are enabled.
58
+ * - Otherwise ➜ ASCII-safe fallback icons are used.
59
+ *
60
+ * - *This ensures compatibility with:*
61
+ * - Terminals that do not support emoji rendering.
62
+ * - CI environments.
63
+ * - Minimal shells or log files.
64
+ * - *Behavior:*
65
+ * - The object shape is identical in both modes.
66
+ * - Only the visual representation changes.
67
+ * - The value is resolved once at module evaluation time.
68
+ * ----------------------------------------------------------------
69
+ * #### Environment Control
70
+ * ```bash
71
+ * FORCE_EMOJI=1
72
+ * ```
73
+ * ----------------------------------------------------------------
74
+ * @remarks
75
+ * This constant is intended for internal CLI rendering only, do not mutate the returned object.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * console.log(`${ICONS.success} Build completed`);
80
+ * ```
81
+ *
82
+ */
83
+ declare const ICONS: Readonly<Icons>;
84
+ /** ----------------------------------------------------------------
85
+ * * ***Node.js–only filesystem utilities (fs-extra).***
86
+ * ----------------------------------------------------------------
87
+ *
88
+ * This export is a **thin re-export** of the `fs-extra` package,
89
+ * intended for **server-side / Node.js environments only**.
90
+ *
91
+ * ⚠️ **DO NOT import this in browser or client-side code.**
92
+ * The underlying implementation depends on Node.js built-in
93
+ * modules such as `fs`, `path`, and `process`.
94
+ *
95
+ * - *Typical use cases:*
96
+ * - CLI tools.
97
+ * - Build scripts.
98
+ * - File system manipulation on the server.
99
+ *
100
+ * @see {@link https://github.com/jprichardson/node-fs-extra | **`https://github.com/jprichardson/node-fs-extra`**}.
101
+ * @environment node
102
+ */
103
+ declare const fsExtra: typeof _fsExtra;
104
+ /** ----------------------------------------------------------------
105
+ * * ***High-performance file system globbing utility (fast-glob).***
106
+ * ----------------------------------------------------------------
107
+ *
108
+ * This export re-exports the default export of `fast-glob`,
109
+ * which is implemented using **CommonJS `export =` semantics**.
110
+ *
111
+ * Due to its reliance on Node.js APIs, this module is
112
+ * **server-side only** and must not be bundled for the browser.
113
+ *
114
+ * - *Typical use cases:*
115
+ * - Resolving file patterns in build tools.
116
+ * - Scanning project directories.
117
+ * - CLI and automation scripts.
118
+ *
119
+ * @see {@link https://github.com/mrmlnc/fast-glob | **`https://github.com/mrmlnc/fast-glob`**}.
120
+ * @environment node
121
+ */
122
+ declare const fastGlob: typeof _fastGlob;
123
+ export { ICONS, type PatternConfig, type PatternOptions, defaultPatternOptions, fastGlob, fsExtra };
124
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * ========================================================================
3
+ * @rzl-zone/build-tools
4
+ * ------------------------------------------------------------------------
5
+ * Version: `0.0.5`
6
+ * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
+ * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
+ * ========================================================================
9
+ */
10
+
11
+ import { i as defaultPatternOptions, n as fsExtra, r as ICONS, t as fastGlob } from "../server-CWrDd29Y.js";
12
+ export { ICONS, defaultPatternOptions, fastGlob, fsExtra };
package/package.json ADDED
@@ -0,0 +1,151 @@
1
+ {
2
+ "name": "@rzl-zone/build-tools",
3
+ "version": "0.0.5",
4
+ "description": "Toolkit to standardize and improve build outputs for TypeScript and JavaScript packages.",
5
+ "license": "MIT",
6
+ "author": "Rizalvin Dwiky <rizalvindwiky1998@gmail.com>",
7
+ "contributors": [
8
+ "Rizalvin Dwiky <rizalvindwiky1998@gmail.com>"
9
+ ],
10
+ "homepage": "https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/rzl-zone/rzl-zone.git",
14
+ "directory": "packages/build-tools"
15
+ },
16
+ "keywords": [
17
+ "build",
18
+ "build tools",
19
+ "build-tools",
20
+ "typescript",
21
+ "javascript",
22
+ "ts",
23
+ "js",
24
+ "tools",
25
+ "build tools rzl",
26
+ "rzl build tools",
27
+ "rzl build",
28
+ "@rzl-zone",
29
+ "@rzl-zone/build-tools",
30
+ "rzl",
31
+ "rzl-zone",
32
+ "rzl zone"
33
+ ],
34
+ "type": "module",
35
+ "sideEffects": false,
36
+ "engineStrict": true,
37
+ "engines": {
38
+ "node": ">=18"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "README.md",
46
+ "LICENSE.md",
47
+ "!**/*.test.*"
48
+ ],
49
+ "exports": {
50
+ "./.references": {
51
+ "import": {
52
+ "types": "./dist/.references/index.d.ts"
53
+ },
54
+ "require": {
55
+ "types": "./dist/.references/index.d.cts"
56
+ }
57
+ },
58
+ ".": {
59
+ "import": {
60
+ "types": "./dist/index.d.ts",
61
+ "default": "./dist/index.js"
62
+ },
63
+ "require": {
64
+ "types": "./dist/index.d.cts",
65
+ "default": "./dist/index.cjs"
66
+ }
67
+ },
68
+ "./bundler/*": {
69
+ "import": {
70
+ "types": "./dist/bundler/*.d.ts",
71
+ "default": "./dist/bundler/*.js"
72
+ },
73
+ "require": {
74
+ "types": "./dist/bundler/*.d.cts",
75
+ "default": "./dist/bundler/*.cjs"
76
+ }
77
+ },
78
+ "./utils": {
79
+ "import": {
80
+ "types": "./dist/utils/client.d.ts",
81
+ "default": "./dist/utils/client.js"
82
+ },
83
+ "require": {
84
+ "types": "./dist/utils/client.d.cts",
85
+ "default": "./dist/utils/client.cjs"
86
+ }
87
+ },
88
+ "./utils/server": {
89
+ "import": {
90
+ "types": "./dist/utils/server.d.ts",
91
+ "default": "./dist/utils/server.js"
92
+ },
93
+ "require": {
94
+ "types": "./dist/utils/server.d.cts",
95
+ "default": "./dist/utils/server.cjs"
96
+ }
97
+ },
98
+ "./commander-kit": {
99
+ "import": {
100
+ "types": "./dist/commander-kit/index.d.ts",
101
+ "default": "./dist/commander-kit/index.js"
102
+ },
103
+ "require": {
104
+ "types": "./dist/commander-kit/index.d.cts",
105
+ "default": "./dist/commander-kit/index.cjs"
106
+ }
107
+ }
108
+ },
109
+ "dependencies": {
110
+ "@babel/parser": "^7.29.2",
111
+ "@babel/traverse": "^7.29.0",
112
+ "@babel/types": "^7.29.0",
113
+ "acorn": "^8.16.0",
114
+ "commander": "^14.0.3",
115
+ "dotenv": "^17.4.2",
116
+ "fast-glob": "^3.3.3",
117
+ "fs-extra": "^11.3.4",
118
+ "picocolors": "^1.1.1",
119
+ "semver": "^7.7.4",
120
+ "@rzl-zone/node-only": "0.0.5"
121
+ },
122
+ "devDependencies": {
123
+ "@types/babel__traverse": "^7.28.0",
124
+ "@types/fs-extra": "^11.0.4",
125
+ "eslint": "^9.39.2",
126
+ "rolldown": "^1.0.0-rc.15",
127
+ "terser": "^5.46.1",
128
+ "tsdown": "0.21.8",
129
+ "type-fest": "5.5.0",
130
+ "typescript": "^6.0.2",
131
+ "@workspace/eslint-config": "0.0.0",
132
+ "@workspace/typescript-config": "0.0.0"
133
+ },
134
+ "peerDependencies": {
135
+ "rolldown": ">=1",
136
+ "tsdown": "^0.21.x"
137
+ },
138
+ "peerDependenciesMeta": {
139
+ "rolldown": {
140
+ "optional": true
141
+ },
142
+ "tsdown": {
143
+ "optional": true
144
+ }
145
+ },
146
+ "scripts": {
147
+ "check-types:package": "tsc --noEmit",
148
+ "build": "tsdown --config-loader unrun",
149
+ "dev:package-build-tools": "tsdown --watch \"./src/**/*\" --config-loader unrun"
150
+ }
151
+ }