@storm-software/config-tools 1.190.119 → 1.190.121
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/README.md +1 -1
- package/bin/config.cjs +1213 -1558
- package/bin/config.mjs +1271 -0
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/config-file/get-config-file.cjs +67 -28
- package/dist/config-file/get-config-file.d.cts +5 -5
- package/dist/config-file/{get-config-file.d.ts → get-config-file.d.mts} +7 -5
- package/dist/config-file/get-config-file.mjs +66 -0
- package/dist/config-file/index.cjs +4 -29
- package/dist/config-file/index.d.cts +2 -3
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.mjs +5 -0
- package/dist/create-storm-config.cjs +115 -34
- package/dist/create-storm-config.d.cts +5 -5
- package/dist/{create-storm-config.d.ts → create-storm-config.d.mts} +7 -5
- package/dist/create-storm-config.mjs +113 -0
- package/dist/env/get-env.cjs +202 -11
- package/dist/env/get-env.d.cts +5 -5
- package/dist/env/{get-env.d.ts → get-env.d.mts} +7 -5
- package/dist/env/get-env.mjs +203 -0
- package/dist/env/index.cjs +7 -18
- package/dist/env/index.d.cts +3 -4
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.mjs +6 -0
- package/dist/env/set-env.cjs +230 -11
- package/dist/env/set-env.d.cts +8 -8
- package/dist/env/{set-env.d.ts → set-env.d.mts} +10 -8
- package/dist/env/set-env.mjs +231 -0
- package/dist/get-config.cjs +46 -34
- package/dist/get-config.d.cts +18 -18
- package/dist/{get-config.d.ts → get-config.d.mts} +20 -18
- package/dist/get-config.mjs +46 -0
- package/dist/index.cjs +98 -201
- package/dist/index.d.cts +27 -28
- package/dist/index.d.mts +29 -0
- package/dist/index.mjs +26 -0
- package/dist/logger/chalk.cjs +43 -6
- package/dist/logger/chalk.d.cts +18 -17
- package/dist/logger/chalk.d.mts +37 -0
- package/dist/logger/chalk.mjs +43 -0
- package/dist/logger/console-icons.cjs +18 -8
- package/dist/logger/console-icons.d.cts +5 -8
- package/dist/logger/console-icons.d.mts +7 -0
- package/dist/logger/console-icons.mjs +20 -0
- package/dist/logger/console.cjs +195 -37
- package/dist/logger/console.d.cts +25 -25
- package/dist/logger/{console.d.ts → console.d.mts} +27 -25
- package/dist/logger/console.mjs +185 -0
- package/dist/logger/create-logger.cjs +34 -14
- package/dist/logger/create-logger.d.cts +5 -6
- package/dist/logger/{create-logger.d.ts → create-logger.d.mts} +7 -6
- package/dist/logger/create-logger.mjs +34 -0
- package/dist/logger/format-timestamp.cjs +14 -6
- package/dist/logger/format-timestamp.d.cts +3 -2
- package/dist/logger/{format-timestamp.d.ts → format-timestamp.d.mts} +5 -2
- package/dist/logger/format-timestamp.mjs +16 -0
- package/dist/logger/get-log-level.cjs +54 -11
- package/dist/logger/get-log-level.d.cts +4 -5
- package/dist/logger/{get-log-level.d.ts → get-log-level.d.mts} +6 -5
- package/dist/logger/get-log-level.mjs +54 -0
- package/dist/logger/index.cjs +29 -61
- package/dist/logger/index.d.cts +8 -10
- package/dist/logger/index.d.mts +10 -0
- package/dist/logger/index.mjs +11 -0
- package/dist/logger/is-unicode-supported.cjs +8 -6
- package/dist/logger/is-unicode-supported.d.cts +3 -2
- package/dist/logger/is-unicode-supported.d.mts +6 -0
- package/dist/logger/is-unicode-supported.mjs +10 -0
- package/dist/types.cjs +29 -8
- package/dist/types.d.cts +39 -41
- package/dist/types.d.mts +53 -0
- package/dist/types.mjs +30 -0
- package/dist/utilities/apply-workspace-tokens.cjs +37 -13
- package/dist/utilities/apply-workspace-tokens.d.cts +4 -5
- package/dist/utilities/{apply-workspace-tokens.d.ts → apply-workspace-tokens.d.mts} +6 -5
- package/dist/utilities/apply-workspace-tokens.mjs +37 -0
- package/dist/utilities/colors.cjs +98 -12
- package/dist/utilities/colors.d.cts +4 -4
- package/dist/utilities/{colors.d.ts → colors.d.mts} +6 -4
- package/dist/utilities/colors.mjs +97 -0
- package/dist/utilities/correct-paths.cjs +201 -32
- package/dist/utilities/correct-paths.d.cts +4 -4
- package/dist/utilities/{correct-paths.d.ts → correct-paths.d.mts} +6 -4
- package/dist/utilities/correct-paths.mjs +190 -0
- package/dist/utilities/file-path-utils.cjs +48 -11
- package/dist/utilities/file-path-utils.d.cts +15 -14
- package/dist/utilities/{file-path-utils.d.ts → file-path-utils.d.mts} +17 -14
- package/dist/utilities/file-path-utils.mjs +48 -0
- package/dist/utilities/find-up.cjs +17 -6
- package/dist/utilities/find-up.d.cts +3 -2
- package/dist/utilities/{find-up.d.ts → find-up.d.mts} +5 -2
- package/dist/utilities/find-up.mjs +19 -0
- package/dist/utilities/find-workspace-root.cjs +72 -10
- package/dist/utilities/find-workspace-root.d.cts +3 -2
- package/dist/utilities/{find-workspace-root.d.ts → find-workspace-root.d.mts} +5 -2
- package/dist/utilities/find-workspace-root.mjs +73 -0
- package/dist/utilities/get-default-config.cjs +73 -11
- package/dist/utilities/get-default-config.d.cts +4 -4
- package/dist/utilities/{get-default-config.d.ts → get-default-config.d.mts} +6 -4
- package/dist/utilities/get-default-config.mjs +74 -0
- package/dist/utilities/index.cjs +49 -109
- package/dist/utilities/index.d.cts +10 -14
- package/dist/utilities/index.d.mts +12 -0
- package/dist/utilities/index.mjs +13 -0
- package/dist/utilities/process-handler.cjs +38 -18
- package/dist/utilities/process-handler.d.cts +4 -4
- package/dist/utilities/process-handler.d.mts +9 -0
- package/dist/utilities/process-handler.mjs +38 -0
- package/dist/utilities/run.cjs +64 -10
- package/dist/utilities/run.d.cts +5 -6
- package/dist/utilities/{run.d.ts → run.d.mts} +7 -6
- package/dist/utilities/run.mjs +64 -0
- package/dist/utilities/toml.cjs +37 -24
- package/dist/utilities/toml.d.cts +148 -147
- package/dist/utilities/toml.d.mts +192 -0
- package/dist/utilities/toml.mjs +33 -0
- package/package.json +106 -158
- package/bin/config.js +0 -1616
- package/dist/chunk-24B36RDB.cjs +0 -81
- package/dist/chunk-27N3QEX5.js +0 -40
- package/dist/chunk-2AVLCXLT.js +0 -0
- package/dist/chunk-2RLMTBVZ.js +0 -233
- package/dist/chunk-2WBD2G3E.cjs +0 -38
- package/dist/chunk-3COHMHPU.cjs +0 -1
- package/dist/chunk-4Q45WJYQ.js +0 -165
- package/dist/chunk-5C7PIENF.js +0 -92
- package/dist/chunk-5J2SS4QU.js +0 -83
- package/dist/chunk-65SWKEHV.cjs +0 -1
- package/dist/chunk-6Y623TCS.cjs +0 -40
- package/dist/chunk-7PV6L7I7.cjs +0 -1
- package/dist/chunk-7QBTVNMR.cjs +0 -30
- package/dist/chunk-BDATZ3UB.cjs +0 -233
- package/dist/chunk-BZRTSWH4.cjs +0 -395
- package/dist/chunk-D3FRXXDE.js +0 -947
- package/dist/chunk-DTGT4OI3.cjs +0 -14
- package/dist/chunk-EC2KPWRG.cjs +0 -24
- package/dist/chunk-EENQN6N2.js +0 -40
- package/dist/chunk-ENI4UUSK.cjs +0 -35
- package/dist/chunk-FJNXECWU.js +0 -395
- package/dist/chunk-FMDVBSP6.cjs +0 -83
- package/dist/chunk-G2MK47WL.js +0 -14
- package/dist/chunk-HFS7WJVW.js +0 -81
- package/dist/chunk-HVVJHTFS.js +0 -36
- package/dist/chunk-IWD6YQKX.cjs +0 -1
- package/dist/chunk-IWQRXQ4N.cjs +0 -84
- package/dist/chunk-JK4TT5IV.js +0 -35
- package/dist/chunk-JWLDCEBZ.cjs +0 -70
- package/dist/chunk-JZAYHDV3.js +0 -8
- package/dist/chunk-KSMN3HSC.js +0 -38
- package/dist/chunk-L6UNTUC4.js +0 -0
- package/dist/chunk-LOY6ICHZ.cjs +0 -36
- package/dist/chunk-MBG2FTBL.cjs +0 -47
- package/dist/chunk-MQG74XF7.js +0 -102
- package/dist/chunk-MSAQEGBK.cjs +0 -92
- package/dist/chunk-NJFLUTGH.cjs +0 -25
- package/dist/chunk-PCYB64MB.cjs +0 -40
- package/dist/chunk-RALMUN5C.js +0 -30
- package/dist/chunk-RRKB32OH.js +0 -0
- package/dist/chunk-RUKM6FCF.js +0 -25
- package/dist/chunk-SIW7AXUG.js +0 -56
- package/dist/chunk-SLICWTO2.cjs +0 -165
- package/dist/chunk-SO3FWVXC.js +0 -84
- package/dist/chunk-SXPH7ILL.js +0 -70
- package/dist/chunk-T7YISGRS.cjs +0 -102
- package/dist/chunk-TZZRLM5J.cjs +0 -947
- package/dist/chunk-UJ77IBHD.cjs +0 -233
- package/dist/chunk-UKGRDKIH.js +0 -0
- package/dist/chunk-V3GMJ4TX.js +0 -233
- package/dist/chunk-WQJYIPSL.cjs +0 -8
- package/dist/chunk-YBVOKYAM.cjs +0 -56
- package/dist/chunk-YX4736HU.js +0 -47
- package/dist/chunk-ZFNAUMQS.js +0 -24
- package/dist/config-file/get-config-file.js +0 -28
- package/dist/config-file/index.d.ts +0 -3
- package/dist/config-file/index.js +0 -29
- package/dist/create-storm-config.js +0 -35
- package/dist/env/get-env.js +0 -11
- package/dist/env/index.d.ts +0 -4
- package/dist/env/index.js +0 -18
- package/dist/env/set-env.js +0 -11
- package/dist/get-config.js +0 -34
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -201
- package/dist/logger/chalk.d.ts +0 -34
- package/dist/logger/chalk.js +0 -6
- package/dist/logger/console-icons.d.ts +0 -8
- package/dist/logger/console-icons.js +0 -8
- package/dist/logger/console.js +0 -37
- package/dist/logger/create-logger.js +0 -14
- package/dist/logger/format-timestamp.js +0 -6
- package/dist/logger/get-log-level.js +0 -11
- package/dist/logger/index.d.ts +0 -10
- package/dist/logger/index.js +0 -61
- package/dist/logger/is-unicode-supported.d.ts +0 -3
- package/dist/logger/is-unicode-supported.js +0 -6
- package/dist/types.d.ts +0 -53
- package/dist/types.js +0 -8
- package/dist/utilities/apply-workspace-tokens.js +0 -13
- package/dist/utilities/colors.js +0 -12
- package/dist/utilities/correct-paths.js +0 -32
- package/dist/utilities/file-path-utils.js +0 -11
- package/dist/utilities/find-up.js +0 -6
- package/dist/utilities/find-workspace-root.js +0 -10
- package/dist/utilities/get-default-config.js +0 -11
- package/dist/utilities/index.d.ts +0 -14
- package/dist/utilities/index.js +0 -109
- package/dist/utilities/process-handler.d.ts +0 -7
- package/dist/utilities/process-handler.js +0 -18
- package/dist/utilities/run.js +0 -10
- package/dist/utilities/toml.d.ts +0 -189
- package/dist/utilities/toml.js +0 -24
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
4
|
+
//#region src/get-config.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* Get the config for the current Storm workspace
|
|
5
7
|
*
|
|
@@ -9,20 +11,20 @@ import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
|
9
11
|
*/
|
|
10
12
|
declare function getConfig(workspaceRoot?: string, skipLogs?: boolean): Promise<StormWorkspaceConfig>;
|
|
11
13
|
type GetWorkspaceConfigOptions = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The root directory of the workspace
|
|
16
|
+
*/
|
|
17
|
+
workspaceRoot?: string;
|
|
18
|
+
/**
|
|
19
|
+
* A directory inside the monorepo to start searching from
|
|
20
|
+
*/
|
|
21
|
+
cwd?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Use the default config if no config file is found
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue true
|
|
26
|
+
*/
|
|
27
|
+
useDefault?: boolean;
|
|
26
28
|
};
|
|
27
29
|
/**
|
|
28
30
|
* Get the config for the current Storm workspace
|
|
@@ -40,5 +42,5 @@ declare function getWorkspaceConfig(skipLogs?: boolean, options?: GetWorkspaceCo
|
|
|
40
42
|
* @returns The config for the current Storm workspace, or undefined if the config file could not be loaded
|
|
41
43
|
*/
|
|
42
44
|
declare function tryGetWorkspaceConfig(skipLogs?: boolean, options?: GetWorkspaceConfigOptions): Promise<StormWorkspaceConfig | undefined>;
|
|
43
|
-
|
|
44
|
-
export {
|
|
45
|
+
//#endregion
|
|
46
|
+
export { GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { findWorkspaceRoot } from "./utilities/find-workspace-root.mjs";
|
|
5
|
+
import { loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.mjs";
|
|
6
|
+
//#region src/get-config.ts
|
|
7
|
+
/**
|
|
8
|
+
* Get the config for the current Storm workspace
|
|
9
|
+
*
|
|
10
|
+
* @param workspaceRoot - The root directory of the workspace
|
|
11
|
+
* @param skipLogs - Skip writing logs to the console
|
|
12
|
+
* @returns The config for the current Storm workspace
|
|
13
|
+
*/
|
|
14
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
15
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get the config for the current Storm workspace
|
|
19
|
+
*
|
|
20
|
+
* @param skipLogs - Skip writing logs to the console
|
|
21
|
+
* @param options - Options for getting the workspace config
|
|
22
|
+
* @returns The config for the current Storm workspace, or throws an error if the config file could not be loaded
|
|
23
|
+
*/
|
|
24
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
25
|
+
let workspaceRoot = options.workspaceRoot;
|
|
26
|
+
if (!workspaceRoot) workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
27
|
+
return getConfig(workspaceRoot, skipLogs);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Try to get the config for the current Storm workspace
|
|
31
|
+
*
|
|
32
|
+
* @param skipLogs - Skip writing logs to the console
|
|
33
|
+
* @param options - Options for getting the workspace config
|
|
34
|
+
* @returns The config for the current Storm workspace, or undefined if the config file could not be loaded
|
|
35
|
+
*/
|
|
36
|
+
async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
|
|
37
|
+
try {
|
|
38
|
+
let workspaceRoot = options.workspaceRoot;
|
|
39
|
+
if (!workspaceRoot) workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
40
|
+
return tryLoadStormWorkspaceConfig(workspaceRoot, skipLogs, options.useDefault);
|
|
41
|
+
} catch {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { getConfig, getWorkspaceConfig, tryGetWorkspaceConfig };
|
package/dist/index.cjs
CHANGED
|
@@ -1,201 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
require(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
require(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var _chunkUJ77IBHDcjs = require('./chunk-UJ77IBHD.cjs');
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var _chunkBDATZ3UBcjs = require('./chunk-BDATZ3UB.cjs');
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var _chunkJWLDCEBZcjs = require('./chunk-JWLDCEBZ.cjs');
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.cjs');
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
exports.CONSOLE_ICONS = _chunkEC2KPWRGcjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkFMDVBSP6cjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunk6Y623TCScjs.LARGE_BUFFER; exports.LogLevel = _chunk7QBTVNMRcjs.LogLevel; exports.LogLevelLabel = _chunk7QBTVNMRcjs.LogLevelLabel; exports.applyDefaultConfig = _chunkT7YISGRScjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunk24B36RDBcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunk24B36RDBcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunk24B36RDBcjs.applyWorkspaceTokens; exports.basename = _chunkBDATZ3UBcjs.basename; exports.brandIcon = _chunkTZZRLM5Jcjs.brandIcon; exports.correctPaths = _chunkBDATZ3UBcjs.correctPaths; exports.createConfigExtension = _chunkSLICWTO2cjs.createConfigExtension; exports.createLogger = _chunkENI4UUSKcjs.createLogger; exports.createStormWorkspaceConfig = _chunkSLICWTO2cjs.createStormWorkspaceConfig; exports.dirname = _chunkBDATZ3UBcjs.dirname; exports.exitWithError = _chunkYBVOKYAMcjs.exitWithError; exports.exitWithSuccess = _chunkYBVOKYAMcjs.exitWithSuccess; exports.extname = _chunkBDATZ3UBcjs.extname; exports.findFileName = _chunk2WBD2G3Ecjs.findFileName; exports.findFilePath = _chunk2WBD2G3Ecjs.findFilePath; exports.findWorkspaceRoot = _chunkIWQRXQ4Ncjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkIWQRXQ4Ncjs.findWorkspaceRootSafe; exports.format = _chunkBDATZ3UBcjs.format; exports.formatLogMessage = _chunkTZZRLM5Jcjs.formatLogMessage; exports.formatTimestamp = _chunkWQJYIPSLcjs.formatTimestamp; exports.getChalk = _chunkLOY6ICHZcjs.getChalk; exports.getColor = _chunkFMDVBSP6cjs.getColor; exports.getColors = _chunkFMDVBSP6cjs.getColors; exports.getConfig = _chunkPCYB64MBcjs.getConfig; exports.getConfigEnv = _chunkUJ77IBHDcjs.getConfigEnv; exports.getConfigFile = _chunkMSAQEGBKcjs.getConfigFile; exports.getConfigFileByName = _chunkMSAQEGBKcjs.getConfigFileByName; exports.getExtensionEnv = _chunkUJ77IBHDcjs.getExtensionEnv; exports.getGradient = _chunkFMDVBSP6cjs.getGradient; exports.getLogFn = _chunkTZZRLM5Jcjs.getLogFn; exports.getLogLevel = _chunkJWLDCEBZcjs.getLogLevel; exports.getLogLevelLabel = _chunkJWLDCEBZcjs.getLogLevelLabel; exports.getPackageJsonConfig = _chunkT7YISGRScjs.getPackageJsonConfig; exports.getStopwatch = _chunkTZZRLM5Jcjs.getStopwatch; exports.getWorkspaceConfig = _chunkPCYB64MBcjs.getWorkspaceConfig; exports.handleProcess = _chunkYBVOKYAMcjs.handleProcess; exports.isAbsolute = _chunkBDATZ3UBcjs.isAbsolute; exports.isUnicodeSupported = _chunkDTGT4OI3cjs.isUnicodeSupported; exports.isVerbose = _chunkJWLDCEBZcjs.isVerbose; exports.joinPaths = _chunkBDATZ3UBcjs.joinPaths; exports.loadStormWorkspaceConfig = _chunkSLICWTO2cjs.loadStormWorkspaceConfig; exports.modifyCargoNestedTable = _chunkMBG2FTBLcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkMBG2FTBLcjs.modifyCargoTable; exports.normalizeString = _chunkBDATZ3UBcjs.normalizeString; exports.normalizeWindowsPath = _chunkBDATZ3UBcjs.normalizeWindowsPath; exports.parse = _chunkBDATZ3UBcjs.parse; exports.parseCargoToml = _chunkMBG2FTBLcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkMBG2FTBLcjs.parseCargoTomlWithTree; exports.relative = _chunkBDATZ3UBcjs.relative; exports.removeExtension = _chunk2WBD2G3Ecjs.removeExtension; exports.resolve = _chunkBDATZ3UBcjs.resolve; exports.run = _chunk6Y623TCScjs.run; exports.runAsync = _chunk6Y623TCScjs.runAsync; exports.sep = _chunkBDATZ3UBcjs.sep; exports.setConfigEnv = _chunkBZRTSWH4cjs.setConfigEnv; exports.setExtensionEnv = _chunkBZRTSWH4cjs.setExtensionEnv; exports.stringifyCargoToml = _chunkMBG2FTBLcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkBDATZ3UBcjs.toNamespacedPath; exports.tryGetWorkspaceConfig = _chunkPCYB64MBcjs.tryGetWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkSLICWTO2cjs.tryLoadStormWorkspaceConfig; exports.writeDebug = _chunkTZZRLM5Jcjs.writeDebug; exports.writeError = _chunkTZZRLM5Jcjs.writeError; exports.writeFatal = _chunkTZZRLM5Jcjs.writeFatal; exports.writeInfo = _chunkTZZRLM5Jcjs.writeInfo; exports.writePerformance = _chunkTZZRLM5Jcjs.writePerformance; exports.writeSuccess = _chunkTZZRLM5Jcjs.writeSuccess; exports.writeSystem = _chunkTZZRLM5Jcjs.writeSystem; exports.writeTrace = _chunkTZZRLM5Jcjs.writeTrace; exports.writeWarning = _chunkTZZRLM5Jcjs.writeWarning;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_types = require("./types.cjs");
|
|
3
|
+
const require_utilities_colors = require("./utilities/colors.cjs");
|
|
4
|
+
const require_logger_chalk = require("./logger/chalk.cjs");
|
|
5
|
+
const require_logger_is_unicode_supported = require("./logger/is-unicode-supported.cjs");
|
|
6
|
+
const require_logger_console_icons = require("./logger/console-icons.cjs");
|
|
7
|
+
const require_logger_format_timestamp = require("./logger/format-timestamp.cjs");
|
|
8
|
+
const require_logger_get_log_level = require("./logger/get-log-level.cjs");
|
|
9
|
+
const require_logger_console = require("./logger/console.cjs");
|
|
10
|
+
const require_utilities_correct_paths = require("./utilities/correct-paths.cjs");
|
|
11
|
+
const require_utilities_find_workspace_root = require("./utilities/find-workspace-root.cjs");
|
|
12
|
+
const require_utilities_apply_workspace_tokens = require("./utilities/apply-workspace-tokens.cjs");
|
|
13
|
+
const require_utilities_file_path_utils = require("./utilities/file-path-utils.cjs");
|
|
14
|
+
const require_utilities_get_default_config = require("./utilities/get-default-config.cjs");
|
|
15
|
+
const require_utilities_process_handler = require("./utilities/process-handler.cjs");
|
|
16
|
+
const require_utilities_run = require("./utilities/run.cjs");
|
|
17
|
+
const require_logger_create_logger = require("./logger/create-logger.cjs");
|
|
18
|
+
const require_utilities_toml = require("./utilities/toml.cjs");
|
|
19
|
+
const require_config_file_get_config_file = require("./config-file/get-config-file.cjs");
|
|
20
|
+
const require_env_get_env = require("./env/get-env.cjs");
|
|
21
|
+
const require_env_set_env = require("./env/set-env.cjs");
|
|
22
|
+
const require_create_storm_config = require("./create-storm-config.cjs");
|
|
23
|
+
const require_get_config = require("./get-config.cjs");
|
|
24
|
+
exports.CONSOLE_ICONS = require_logger_console_icons.CONSOLE_ICONS;
|
|
25
|
+
exports.DEFAULT_COLOR_CONFIG = require_utilities_colors.DEFAULT_COLOR_CONFIG;
|
|
26
|
+
exports.LARGE_BUFFER = require_utilities_run.LARGE_BUFFER;
|
|
27
|
+
exports.LogLevel = require_types.LogLevel;
|
|
28
|
+
exports.LogLevelLabel = require_types.LogLevelLabel;
|
|
29
|
+
exports.applyDefaultConfig = require_utilities_get_default_config.applyDefaultConfig;
|
|
30
|
+
exports.applyWorkspaceBaseTokens = require_utilities_apply_workspace_tokens.applyWorkspaceBaseTokens;
|
|
31
|
+
exports.applyWorkspaceProjectTokens = require_utilities_apply_workspace_tokens.applyWorkspaceProjectTokens;
|
|
32
|
+
exports.applyWorkspaceTokens = require_utilities_apply_workspace_tokens.applyWorkspaceTokens;
|
|
33
|
+
exports.basename = require_utilities_correct_paths.basename;
|
|
34
|
+
exports.brandIcon = require_logger_console.brandIcon;
|
|
35
|
+
exports.correctPaths = require_utilities_correct_paths.correctPaths;
|
|
36
|
+
exports.createConfigExtension = require_create_storm_config.createConfigExtension;
|
|
37
|
+
exports.createLogger = require_logger_create_logger.createLogger;
|
|
38
|
+
exports.createStormWorkspaceConfig = require_create_storm_config.createStormWorkspaceConfig;
|
|
39
|
+
exports.dirname = require_utilities_correct_paths.dirname;
|
|
40
|
+
exports.exitWithError = require_utilities_process_handler.exitWithError;
|
|
41
|
+
exports.exitWithSuccess = require_utilities_process_handler.exitWithSuccess;
|
|
42
|
+
exports.extname = require_utilities_correct_paths.extname;
|
|
43
|
+
exports.findFileName = require_utilities_file_path_utils.findFileName;
|
|
44
|
+
exports.findFilePath = require_utilities_file_path_utils.findFilePath;
|
|
45
|
+
exports.findWorkspaceRoot = require_utilities_find_workspace_root.findWorkspaceRoot;
|
|
46
|
+
exports.findWorkspaceRootSafe = require_utilities_find_workspace_root.findWorkspaceRootSafe;
|
|
47
|
+
exports.format = require_utilities_correct_paths.format;
|
|
48
|
+
exports.formatLogMessage = require_logger_console.formatLogMessage;
|
|
49
|
+
exports.formatTimestamp = require_logger_format_timestamp.formatTimestamp;
|
|
50
|
+
exports.getChalk = require_logger_chalk.getChalk;
|
|
51
|
+
exports.getColor = require_utilities_colors.getColor;
|
|
52
|
+
exports.getColors = require_utilities_colors.getColors;
|
|
53
|
+
exports.getConfig = require_get_config.getConfig;
|
|
54
|
+
exports.getConfigEnv = require_env_get_env.getConfigEnv;
|
|
55
|
+
exports.getConfigFile = require_config_file_get_config_file.getConfigFile;
|
|
56
|
+
exports.getConfigFileByName = require_config_file_get_config_file.getConfigFileByName;
|
|
57
|
+
exports.getExtensionEnv = require_env_get_env.getExtensionEnv;
|
|
58
|
+
exports.getGradient = require_utilities_colors.getGradient;
|
|
59
|
+
exports.getLogFn = require_logger_console.getLogFn;
|
|
60
|
+
exports.getLogLevel = require_logger_get_log_level.getLogLevel;
|
|
61
|
+
exports.getLogLevelLabel = require_logger_get_log_level.getLogLevelLabel;
|
|
62
|
+
exports.getPackageJsonConfig = require_utilities_get_default_config.getPackageJsonConfig;
|
|
63
|
+
exports.getStopwatch = require_logger_console.getStopwatch;
|
|
64
|
+
exports.getWorkspaceConfig = require_get_config.getWorkspaceConfig;
|
|
65
|
+
exports.handleProcess = require_utilities_process_handler.handleProcess;
|
|
66
|
+
exports.isAbsolute = require_utilities_correct_paths.isAbsolute;
|
|
67
|
+
exports.isUnicodeSupported = require_logger_is_unicode_supported.isUnicodeSupported;
|
|
68
|
+
exports.isVerbose = require_logger_get_log_level.isVerbose;
|
|
69
|
+
exports.joinPaths = require_utilities_correct_paths.joinPaths;
|
|
70
|
+
exports.loadStormWorkspaceConfig = require_create_storm_config.loadStormWorkspaceConfig;
|
|
71
|
+
exports.modifyCargoNestedTable = require_utilities_toml.modifyCargoNestedTable;
|
|
72
|
+
exports.modifyCargoTable = require_utilities_toml.modifyCargoTable;
|
|
73
|
+
exports.normalizeString = require_utilities_correct_paths.normalizeString;
|
|
74
|
+
exports.normalizeWindowsPath = require_utilities_correct_paths.normalizeWindowsPath;
|
|
75
|
+
exports.parse = require_utilities_correct_paths.parse;
|
|
76
|
+
exports.parseCargoToml = require_utilities_toml.parseCargoToml;
|
|
77
|
+
exports.parseCargoTomlWithTree = require_utilities_toml.parseCargoTomlWithTree;
|
|
78
|
+
exports.relative = require_utilities_correct_paths.relative;
|
|
79
|
+
exports.removeExtension = require_utilities_file_path_utils.removeExtension;
|
|
80
|
+
exports.resolve = require_utilities_correct_paths.resolve;
|
|
81
|
+
exports.run = require_utilities_run.run;
|
|
82
|
+
exports.runAsync = require_utilities_run.runAsync;
|
|
83
|
+
exports.sep = require_utilities_correct_paths.sep;
|
|
84
|
+
exports.setConfigEnv = require_env_set_env.setConfigEnv;
|
|
85
|
+
exports.setExtensionEnv = require_env_set_env.setExtensionEnv;
|
|
86
|
+
exports.stringifyCargoToml = require_utilities_toml.stringifyCargoToml;
|
|
87
|
+
exports.toNamespacedPath = require_utilities_correct_paths.toNamespacedPath;
|
|
88
|
+
exports.tryGetWorkspaceConfig = require_get_config.tryGetWorkspaceConfig;
|
|
89
|
+
exports.tryLoadStormWorkspaceConfig = require_create_storm_config.tryLoadStormWorkspaceConfig;
|
|
90
|
+
exports.writeDebug = require_logger_console.writeDebug;
|
|
91
|
+
exports.writeError = require_logger_console.writeError;
|
|
92
|
+
exports.writeFatal = require_logger_console.writeFatal;
|
|
93
|
+
exports.writeInfo = require_logger_console.writeInfo;
|
|
94
|
+
exports.writePerformance = require_logger_console.writePerformance;
|
|
95
|
+
exports.writeSuccess = require_logger_console.writeSuccess;
|
|
96
|
+
exports.writeSystem = require_logger_console.writeSystem;
|
|
97
|
+
exports.writeTrace = require_logger_console.writeTrace;
|
|
98
|
+
exports.writeWarning = require_logger_console.writeWarning;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
import 'node:child_process';
|
|
1
|
+
import { getConfigFile, getConfigFileByName } from "./config-file/get-config-file.cjs";
|
|
2
|
+
import "./config-file/index.cjs";
|
|
3
|
+
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.cjs";
|
|
4
|
+
import { BaseTokenizerOptions, DeepPartial, LogLevel, LogLevelLabel, Logger, ProjectTokenizerOptions } from "./types.cjs";
|
|
5
|
+
import { getConfigEnv, getExtensionEnv } from "./env/get-env.cjs";
|
|
6
|
+
import { setConfigEnv, setExtensionEnv } from "./env/set-env.cjs";
|
|
7
|
+
import "./env/index.cjs";
|
|
8
|
+
import { GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig } from "./get-config.cjs";
|
|
9
|
+
import { GetChalkReturn, getChalk } from "./logger/chalk.cjs";
|
|
10
|
+
import { FormatLogMessageOptions, GetLogFnOptions, brandIcon, formatLogMessage, getLogFn, getStopwatch, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning } from "./logger/console.cjs";
|
|
11
|
+
import { CONSOLE_ICONS } from "./logger/console-icons.cjs";
|
|
12
|
+
import { createLogger } from "./logger/create-logger.cjs";
|
|
13
|
+
import { formatTimestamp } from "./logger/format-timestamp.cjs";
|
|
14
|
+
import { getLogLevel, getLogLevelLabel, isVerbose } from "./logger/get-log-level.cjs";
|
|
15
|
+
import { isUnicodeSupported } from "./logger/is-unicode-supported.cjs";
|
|
16
|
+
import "./logger/index.cjs";
|
|
17
|
+
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.cjs";
|
|
18
|
+
import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilities/colors.cjs";
|
|
19
|
+
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.cjs";
|
|
20
|
+
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.cjs";
|
|
21
|
+
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.cjs";
|
|
22
|
+
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.cjs";
|
|
23
|
+
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.cjs";
|
|
24
|
+
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./utilities/run.cjs";
|
|
25
|
+
import { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./utilities/toml.cjs";
|
|
26
|
+
import "./utilities/index.cjs";
|
|
27
|
+
export { BaseTokenizerOptions, CONSOLE_ICONS, CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, DeepPartial, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, FormatLogMessageOptions, GetChalkReturn, GetLogFnOptions, GetWorkspaceConfigOptions, IOType, LARGE_BUFFER, LogLevel, LogLevelLabel, Logger, Metadata, Metadata2, Node, Package, ProjectTokenizerOptions, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { getConfigFile, getConfigFileByName } from "./config-file/get-config-file.mjs";
|
|
4
|
+
import "./config-file/index.mjs";
|
|
5
|
+
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.mjs";
|
|
6
|
+
import { BaseTokenizerOptions, DeepPartial, LogLevel, LogLevelLabel, Logger, ProjectTokenizerOptions } from "./types.mjs";
|
|
7
|
+
import { getConfigEnv, getExtensionEnv } from "./env/get-env.mjs";
|
|
8
|
+
import { setConfigEnv, setExtensionEnv } from "./env/set-env.mjs";
|
|
9
|
+
import "./env/index.mjs";
|
|
10
|
+
import { GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig } from "./get-config.mjs";
|
|
11
|
+
import { GetChalkReturn, getChalk } from "./logger/chalk.mjs";
|
|
12
|
+
import { FormatLogMessageOptions, GetLogFnOptions, brandIcon, formatLogMessage, getLogFn, getStopwatch, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning } from "./logger/console.mjs";
|
|
13
|
+
import { CONSOLE_ICONS } from "./logger/console-icons.mjs";
|
|
14
|
+
import { createLogger } from "./logger/create-logger.mjs";
|
|
15
|
+
import { formatTimestamp } from "./logger/format-timestamp.mjs";
|
|
16
|
+
import { getLogLevel, getLogLevelLabel, isVerbose } from "./logger/get-log-level.mjs";
|
|
17
|
+
import { isUnicodeSupported } from "./logger/is-unicode-supported.mjs";
|
|
18
|
+
import "./logger/index.mjs";
|
|
19
|
+
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.mjs";
|
|
20
|
+
import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilities/colors.mjs";
|
|
21
|
+
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.mjs";
|
|
22
|
+
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.mjs";
|
|
23
|
+
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.mjs";
|
|
24
|
+
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.mjs";
|
|
25
|
+
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.mjs";
|
|
26
|
+
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./utilities/run.mjs";
|
|
27
|
+
import { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./utilities/toml.mjs";
|
|
28
|
+
import "./utilities/index.mjs";
|
|
29
|
+
export { BaseTokenizerOptions, CONSOLE_ICONS, CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, DeepPartial, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, FormatLogMessageOptions, GetChalkReturn, GetLogFnOptions, GetWorkspaceConfigOptions, IOType, LARGE_BUFFER, LogLevel, LogLevelLabel, Logger, Metadata, Metadata2, Node, Package, ProjectTokenizerOptions, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { LogLevel, LogLevelLabel } from "./types.mjs";
|
|
5
|
+
import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilities/colors.mjs";
|
|
6
|
+
import { getChalk } from "./logger/chalk.mjs";
|
|
7
|
+
import { isUnicodeSupported } from "./logger/is-unicode-supported.mjs";
|
|
8
|
+
import { CONSOLE_ICONS } from "./logger/console-icons.mjs";
|
|
9
|
+
import { formatTimestamp } from "./logger/format-timestamp.mjs";
|
|
10
|
+
import { getLogLevel, getLogLevelLabel, isVerbose } from "./logger/get-log-level.mjs";
|
|
11
|
+
import { brandIcon, formatLogMessage, getLogFn, getStopwatch, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning } from "./logger/console.mjs";
|
|
12
|
+
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.mjs";
|
|
13
|
+
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.mjs";
|
|
14
|
+
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.mjs";
|
|
15
|
+
import { findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.mjs";
|
|
16
|
+
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.mjs";
|
|
17
|
+
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.mjs";
|
|
18
|
+
import { LARGE_BUFFER, run, runAsync } from "./utilities/run.mjs";
|
|
19
|
+
import { createLogger } from "./logger/create-logger.mjs";
|
|
20
|
+
import { modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./utilities/toml.mjs";
|
|
21
|
+
import { getConfigFile, getConfigFileByName } from "./config-file/get-config-file.mjs";
|
|
22
|
+
import { getConfigEnv, getExtensionEnv } from "./env/get-env.mjs";
|
|
23
|
+
import { setConfigEnv, setExtensionEnv } from "./env/set-env.mjs";
|
|
24
|
+
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.mjs";
|
|
25
|
+
import { getConfig, getWorkspaceConfig, tryGetWorkspaceConfig } from "./get-config.mjs";
|
|
26
|
+
export { CONSOLE_ICONS, DEFAULT_COLOR_CONFIG, LARGE_BUFFER, LogLevel, LogLevelLabel, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
package/dist/logger/chalk.cjs
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let chalk = require("chalk");
|
|
4
|
+
chalk = require_runtime.__toESM(chalk, 1);
|
|
5
|
+
//#region src/logger/chalk.ts
|
|
6
|
+
const chalkDefault = {
|
|
7
|
+
hex: (_) => (message) => message,
|
|
8
|
+
bgHex: (_) => ({
|
|
9
|
+
whiteBright: (message) => message,
|
|
10
|
+
white: (message) => message
|
|
11
|
+
}),
|
|
12
|
+
white: (message) => message,
|
|
13
|
+
whiteBright: (message) => message,
|
|
14
|
+
gray: (message) => message,
|
|
15
|
+
bold: {
|
|
16
|
+
hex: (_) => (message) => message,
|
|
17
|
+
bgHex: (_) => ({
|
|
18
|
+
whiteBright: (message) => message,
|
|
19
|
+
white: (message) => message
|
|
20
|
+
}),
|
|
21
|
+
whiteBright: (message) => message,
|
|
22
|
+
white: (message) => message
|
|
23
|
+
},
|
|
24
|
+
dim: {
|
|
25
|
+
hex: (_) => (message) => message,
|
|
26
|
+
gray: (message) => message
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get the chalk instance
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Annoying polyfill to temporarily fix the issue with the `chalk` import
|
|
34
|
+
*
|
|
35
|
+
* @returns The chalk instance
|
|
36
|
+
*/
|
|
37
|
+
const getChalk = () => {
|
|
38
|
+
let _chalk = chalk.default;
|
|
39
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) _chalk = chalkDefault;
|
|
40
|
+
return _chalk;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.getChalk = getChalk;
|
package/dist/logger/chalk.d.cts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
//#region src/logger/chalk.d.ts
|
|
1
2
|
type GetChalkReturn = {
|
|
3
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
4
|
+
bgHex: (_: string) => {
|
|
5
|
+
whiteBright: (message?: string) => string | undefined;
|
|
6
|
+
white: (message?: string) => string | undefined;
|
|
7
|
+
};
|
|
8
|
+
whiteBright: (message?: string) => string | undefined;
|
|
9
|
+
white: (message?: string) => string | undefined;
|
|
10
|
+
gray: (message?: string) => string | undefined;
|
|
11
|
+
bold: {
|
|
2
12
|
hex: (_: string) => (message?: string) => string | undefined;
|
|
3
13
|
bgHex: (_: string) => {
|
|
4
|
-
|
|
5
|
-
|
|
14
|
+
whiteBright: (message?: string) => string | undefined;
|
|
15
|
+
white: (message?: string) => string | undefined;
|
|
6
16
|
};
|
|
7
17
|
whiteBright: (message?: string) => string | undefined;
|
|
8
18
|
white: (message?: string) => string | undefined;
|
|
19
|
+
};
|
|
20
|
+
dim: {
|
|
21
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
9
22
|
gray: (message?: string) => string | undefined;
|
|
10
|
-
|
|
11
|
-
hex: (_: string) => (message?: string) => string | undefined;
|
|
12
|
-
bgHex: (_: string) => {
|
|
13
|
-
whiteBright: (message?: string) => string | undefined;
|
|
14
|
-
white: (message?: string) => string | undefined;
|
|
15
|
-
};
|
|
16
|
-
whiteBright: (message?: string) => string | undefined;
|
|
17
|
-
white: (message?: string) => string | undefined;
|
|
18
|
-
};
|
|
19
|
-
dim: {
|
|
20
|
-
hex: (_: string) => (message?: string) => string | undefined;
|
|
21
|
-
gray: (message?: string) => string | undefined;
|
|
22
|
-
};
|
|
23
|
+
};
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* Get the chalk instance
|
|
@@ -30,5 +31,5 @@ type GetChalkReturn = {
|
|
|
30
31
|
* @returns The chalk instance
|
|
31
32
|
*/
|
|
32
33
|
declare const getChalk: () => GetChalkReturn;
|
|
33
|
-
|
|
34
|
-
export {
|
|
34
|
+
//#endregion
|
|
35
|
+
export { GetChalkReturn, getChalk };
|