@storm-software/config-tools 1.119.0 → 1.130.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/README.md +1 -1
- package/dist/chunk-4IYEDNYJ.mjs +426 -0
- package/dist/chunk-5QZ7AV2J.js +27 -0
- package/dist/chunk-64RYHF5D.mjs +51 -0
- package/dist/chunk-66ACWURQ.mjs +125 -0
- package/dist/chunk-6OYLNZFT.mjs +169 -0
- package/dist/chunk-6SJLAEJ3.js +70 -0
- package/dist/chunk-6WPG3DXV.js +32 -0
- package/dist/chunk-7KVSSDMX.mjs +545 -0
- package/dist/chunk-7XY63NME.js +44 -0
- package/dist/chunk-A7VLTBS6.mjs +271 -0
- package/dist/chunk-BS5OC5E6.js +426 -0
- package/dist/chunk-E3IN3SQD.mjs +6 -0
- package/dist/chunk-FW22KPOW.mjs +27 -0
- package/dist/chunk-GIZ23UUE.js +189 -0
- package/dist/chunk-GOQAHXJF.mjs +28 -0
- package/dist/chunk-H6XXDZ7A.js +28 -0
- package/dist/chunk-HCF3QA4H.js +102 -0
- package/dist/chunk-JDK3PXQR.js +545 -0
- package/dist/chunk-K6TQN2LZ.js +6 -0
- package/dist/chunk-LKZSRXS7.js +169 -0
- package/dist/chunk-MGI2M3SX.js +6 -0
- package/dist/chunk-N32EGEJB.js +90 -0
- package/dist/chunk-N4BRCEYB.js +27 -0
- package/dist/chunk-OXK45X3L.js +125 -0
- package/dist/chunk-PEHVR33I.js +67 -0
- package/dist/chunk-PQNCKJAR.js +271 -0
- package/dist/chunk-PVPSTJNJ.mjs +90 -0
- package/dist/chunk-QHVHX67K.js +6 -0
- package/dist/chunk-QUVGIEZZ.mjs +6 -0
- package/dist/chunk-RAWSXKTG.mjs +189 -0
- package/dist/chunk-SJO5XZQA.js +6 -0
- package/dist/chunk-TEKFJAJJ.mjs +70 -0
- package/dist/chunk-TTCXDK6S.mjs +27 -0
- package/dist/chunk-UCUOC6LA.mjs +70 -0
- package/dist/chunk-VQLOUFMG.mjs +32 -0
- package/dist/chunk-WRFJFYOU.mjs +51 -0
- package/dist/chunk-WXOSG64C.js +70 -0
- package/dist/chunk-WXYJGX4C.mjs +6 -0
- package/dist/chunk-X6VIYUJR.mjs +6 -0
- package/dist/chunk-XJEQHMOE.js +49 -0
- package/dist/chunk-XLMGW4ZW.mjs +67 -0
- package/dist/chunk-XXHENMLT.mjs +44 -0
- package/dist/chunk-Z2EXWNIQ.mjs +102 -0
- package/dist/chunk-ZVXEYJQO.js +51 -0
- package/dist/config-file/get-config-file.d.mts +20 -0
- package/dist/config-file/get-config-file.d.ts +20 -0
- package/dist/config-file/get-config-file.js +23 -0
- package/dist/config-file/get-config-file.mjs +23 -0
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.d.ts +4 -0
- package/dist/config-file/index.js +24 -0
- package/dist/config-file/index.mjs +24 -0
- package/dist/create-storm-config.d.mts +29 -0
- package/dist/create-storm-config.d.ts +29 -0
- package/dist/create-storm-config.js +30 -0
- package/dist/create-storm-config.mjs +30 -0
- package/dist/env/get-env.d.mts +19 -0
- package/dist/env/get-env.d.ts +19 -0
- package/dist/env/get-env.js +13 -0
- package/dist/env/get-env.mjs +13 -0
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.d.ts +5 -0
- package/dist/env/index.js +20 -0
- package/dist/env/index.mjs +20 -0
- package/{src/env/get-env.d.ts → dist/env/set-env.d.mts} +7 -4
- package/{src → dist}/env/set-env.d.ts +7 -3
- package/dist/env/set-env.js +12 -0
- package/dist/env/set-env.mjs +12 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +132 -0
- package/dist/index.mjs +132 -0
- package/dist/logger/chalk.d.mts +25 -0
- package/{src/utilities → dist/logger}/chalk.d.ts +4 -2
- package/dist/logger/chalk.js +7 -0
- package/dist/logger/chalk.mjs +7 -0
- package/dist/logger/console.d.mts +82 -0
- package/{src/utilities/logger.d.ts → dist/logger/console.d.ts} +18 -14
- package/dist/logger/console.js +35 -0
- package/dist/logger/console.mjs +35 -0
- package/dist/logger/get-log-level.d.mts +27 -0
- package/{src/utilities → dist/logger}/get-log-level.d.ts +9 -4
- package/dist/logger/get-log-level.js +12 -0
- package/dist/logger/get-log-level.mjs +12 -0
- package/dist/logger/index.d.mts +6 -0
- package/dist/logger/index.d.ts +6 -0
- package/dist/logger/index.js +46 -0
- package/dist/logger/index.mjs +46 -0
- package/dist/types-DGWqy1xb.d.mts +1395 -0
- package/dist/types-DGWqy1xb.d.ts +1395 -0
- package/dist/types.d.mts +40 -0
- package/{src → dist}/types.d.ts +14 -7
- package/dist/types.js +9 -0
- package/dist/types.mjs +9 -0
- package/dist/utilities/apply-workspace-tokens.d.mts +9 -0
- package/dist/utilities/apply-workspace-tokens.d.ts +9 -0
- package/dist/utilities/apply-workspace-tokens.js +14 -0
- package/dist/utilities/apply-workspace-tokens.mjs +14 -0
- package/dist/utilities/correct-paths.d.mts +19 -0
- package/dist/utilities/correct-paths.d.ts +19 -0
- package/dist/utilities/correct-paths.js +9 -0
- package/dist/utilities/correct-paths.mjs +9 -0
- package/dist/utilities/file-path-utils.d.mts +4 -0
- package/dist/utilities/file-path-utils.d.ts +4 -0
- package/dist/utilities/file-path-utils.js +9 -0
- package/dist/utilities/file-path-utils.mjs +9 -0
- package/dist/utilities/find-up.d.mts +6 -0
- package/dist/utilities/find-up.d.ts +6 -0
- package/dist/utilities/find-up.js +7 -0
- package/dist/utilities/find-up.mjs +7 -0
- package/dist/utilities/find-workspace-root.d.mts +16 -0
- package/{src → dist}/utilities/find-workspace-root.d.ts +4 -2
- package/dist/utilities/find-workspace-root.js +11 -0
- package/dist/utilities/find-workspace-root.mjs +11 -0
- package/dist/utilities/get-default-config.d.mts +15 -0
- package/dist/utilities/get-default-config.d.ts +15 -0
- package/dist/utilities/get-default-config.js +13 -0
- package/dist/utilities/get-default-config.mjs +13 -0
- package/dist/utilities/index.d.mts +11 -0
- package/dist/utilities/index.d.ts +11 -0
- package/dist/utilities/index.js +58 -0
- package/dist/utilities/index.mjs +58 -0
- package/dist/utilities/process-handler.d.mts +8 -0
- package/dist/utilities/process-handler.d.ts +8 -0
- package/dist/utilities/process-handler.js +20 -0
- package/dist/utilities/process-handler.mjs +20 -0
- package/dist/utilities/run.d.mts +36 -0
- package/dist/utilities/run.d.ts +36 -0
- package/dist/utilities/run.js +11 -0
- package/dist/utilities/run.mjs +11 -0
- package/package.json +1 -24
- package/CHANGELOG.md +0 -3122
- package/declarations.d.ts +0 -304
- package/index.cjs +0 -67508
- package/index.js +0 -67463
- package/meta.cjs.json +0 -5352
- package/meta.esm.json +0 -5413
- package/src/config-file/get-config-file.d.ts +0 -16
- package/src/config-file/index.d.ts +0 -1
- package/src/create-storm-config.d.ts +0 -26
- package/src/env/index.d.ts +0 -2
- package/src/index.d.ts +0 -13
- package/src/utilities/apply-workspace-tokens.d.ts +0 -4
- package/src/utilities/correct-paths.d.ts +0 -1
- package/src/utilities/file-path-utils.d.ts +0 -2
- package/src/utilities/find-up.d.ts +0 -4
- package/src/utilities/get-default-config.d.ts +0 -15
- package/src/utilities/index.d.ts +0 -10
- package/src/utilities/process-handler.d.ts +0 -4
- package/src/utilities/run.d.ts +0 -18
- package/utilities/chalk.cjs +0 -1610
- package/utilities/chalk.js +0 -1605
- package/utilities/find-workspace-root.cjs +0 -118
- package/utilities/find-workspace-root.js +0 -91
- package/utilities/logger.cjs +0 -5914
- package/utilities/logger.js +0 -5897
package/declarations.d.ts
DELETED
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
import type { StormConfig, StormConfigInput } from "@storm-software/config";
|
|
2
|
-
import type { CosmiconfigResult } from "cosmiconfig";
|
|
3
|
-
import type * as z from "zod";
|
|
4
|
-
import type {
|
|
5
|
-
BaseTokenizerOptions,
|
|
6
|
-
LogLevel,
|
|
7
|
-
LogLevelLabel,
|
|
8
|
-
ProjectTokenizerOptions
|
|
9
|
-
} from "./src/types";
|
|
10
|
-
|
|
11
|
-
export * from "./src/types";
|
|
12
|
-
export { findWorkspaceRoot };
|
|
13
|
-
|
|
14
|
-
export type DeepPartial<T> = T extends object
|
|
15
|
-
? {
|
|
16
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
17
|
-
}
|
|
18
|
-
: T;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Find the root of the current monorepo
|
|
22
|
-
*
|
|
23
|
-
* @param pathInsideMonorepo - The path inside the monorepo
|
|
24
|
-
*/
|
|
25
|
-
declare function findWorkspaceRoot(pathInsideMonorepo?: string): string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Find the root of the current monorepo safely (do not throw an error if it cannot be found)
|
|
29
|
-
*
|
|
30
|
-
* @param pathInsideMonorepo - The path inside the monorepo
|
|
31
|
-
*/
|
|
32
|
-
declare function findWorkspaceRootSafe(
|
|
33
|
-
pathInsideMonorepo?: string
|
|
34
|
-
): string | undefined;
|
|
35
|
-
export { findWorkspaceRootSafe };
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Type-check to determine if `obj` is a `StormError` object
|
|
39
|
-
*
|
|
40
|
-
* @param value - the object to check
|
|
41
|
-
* @returns The function isStormError is returning a boolean value.
|
|
42
|
-
*/
|
|
43
|
-
declare function createConfig(workspaceRoot?: string): StormConfig;
|
|
44
|
-
export { createConfig };
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Get the config file values for the current Storm workspace
|
|
48
|
-
*/
|
|
49
|
-
declare function getConfigFile(
|
|
50
|
-
filePath?: string,
|
|
51
|
-
additionalFileNames: string[] = []
|
|
52
|
-
): Promise<Partial<StormConfigInput>>;
|
|
53
|
-
export { getConfigFile };
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Load the config file values for the current Storm workspace into environment variables
|
|
57
|
-
*/
|
|
58
|
-
declare function loadStormConfig(workspaceRoot?: string): Promise<StormConfig>;
|
|
59
|
-
export { loadStormConfig };
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Type-check to determine if `obj` is a `StormError` object
|
|
63
|
-
*
|
|
64
|
-
* @param value - the object to check
|
|
65
|
-
* @returns The function isStormError is returning a boolean value.
|
|
66
|
-
*/
|
|
67
|
-
declare function createStormConfig<
|
|
68
|
-
TExtensionName extends
|
|
69
|
-
keyof StormConfig["extensions"] = keyof StormConfig["extensions"],
|
|
70
|
-
TExtensionConfig = any,
|
|
71
|
-
TExtensionSchema extends z.ZodTypeAny = z.ZodTypeAny
|
|
72
|
-
>(
|
|
73
|
-
extensionName?: TExtensionName,
|
|
74
|
-
schema?: TExtensionSchema,
|
|
75
|
-
workspaceRoot?: string
|
|
76
|
-
): StormConfig<TExtensionName, TExtensionConfig>;
|
|
77
|
-
export { createStormConfig };
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Get the config file for the current Storm workspace
|
|
81
|
-
*
|
|
82
|
-
* @param fileName - The name of the config file to search for
|
|
83
|
-
* @param filePath - The path to search for the config file in
|
|
84
|
-
* @returns The config file for the current Storm workspace
|
|
85
|
-
*/
|
|
86
|
-
declare function getConfigFileByName(
|
|
87
|
-
fileName: string,
|
|
88
|
-
filePath?: string
|
|
89
|
-
): Promise<CosmiconfigResult>;
|
|
90
|
-
export { getConfigFileByName };
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Get the config file for the current Storm workspace
|
|
94
|
-
*
|
|
95
|
-
* @returns The config file for the current Storm workspace
|
|
96
|
-
*/
|
|
97
|
-
declare function defineConfig(input: StormConfigInput): StormConfigInput;
|
|
98
|
-
export { defineConfig };
|
|
99
|
-
|
|
100
|
-
declare function exitWithError(config?: StormConfig): void;
|
|
101
|
-
export { exitWithError };
|
|
102
|
-
|
|
103
|
-
declare function exitWithSuccess(config?: StormConfig): void;
|
|
104
|
-
export { exitWithSuccess };
|
|
105
|
-
|
|
106
|
-
declare function handleProcess(config?: StormConfig): void;
|
|
107
|
-
export { handleProcess };
|
|
108
|
-
|
|
109
|
-
declare function formatLogMessage(
|
|
110
|
-
message?: any,
|
|
111
|
-
options?: { prefix?: string; skip?: string[] }
|
|
112
|
-
): string;
|
|
113
|
-
export { formatLogMessage };
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Write a message to the console at the `fatal` log level
|
|
117
|
-
*
|
|
118
|
-
* @param message - The message to write
|
|
119
|
-
* @param config - The Storm configuration
|
|
120
|
-
*/
|
|
121
|
-
declare function writeFatal(
|
|
122
|
-
message: string,
|
|
123
|
-
config?: Partial<StormConfig>
|
|
124
|
-
): void;
|
|
125
|
-
export { writeFatal };
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Write a message to the console at the `error` log level
|
|
129
|
-
*
|
|
130
|
-
* @param message - The message to write
|
|
131
|
-
* @param config - The Storm configuration
|
|
132
|
-
*/
|
|
133
|
-
declare function writeError(
|
|
134
|
-
message: string,
|
|
135
|
-
config?: Partial<StormConfig>
|
|
136
|
-
): void;
|
|
137
|
-
export { writeError };
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Write a message to the console at the `warning` log level
|
|
141
|
-
*
|
|
142
|
-
* @param message - The message to write
|
|
143
|
-
* @param config - The Storm configuration
|
|
144
|
-
*/
|
|
145
|
-
declare function writeWarning(
|
|
146
|
-
message: string,
|
|
147
|
-
config?: Partial<StormConfig>
|
|
148
|
-
): void;
|
|
149
|
-
export { writeWarning };
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Write a message to the console at the `info` log level
|
|
153
|
-
*
|
|
154
|
-
* @param message - The message to write
|
|
155
|
-
* @param config - The Storm configuration
|
|
156
|
-
*/
|
|
157
|
-
declare function writeInfo(
|
|
158
|
-
message: string,
|
|
159
|
-
config?: Partial<StormConfig>
|
|
160
|
-
): void;
|
|
161
|
-
export { writeInfo };
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Write a message to the console at the `success` log level
|
|
165
|
-
*
|
|
166
|
-
* @param message - The message to write
|
|
167
|
-
* @param config - The Storm configuration
|
|
168
|
-
*/
|
|
169
|
-
declare function writeSuccess(
|
|
170
|
-
message: string,
|
|
171
|
-
config?: Partial<StormConfig>
|
|
172
|
-
): void;
|
|
173
|
-
export { writeSuccess };
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Write a message to the console at the `debug` log level
|
|
177
|
-
*
|
|
178
|
-
* @param message - The message to write
|
|
179
|
-
* @param config - The Storm configuration
|
|
180
|
-
*/
|
|
181
|
-
declare function writeDebug(
|
|
182
|
-
message: string,
|
|
183
|
-
config?: Partial<StormConfig>
|
|
184
|
-
): void;
|
|
185
|
-
export { writeDebug };
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Write a message to the console at the `trace` log level
|
|
189
|
-
*
|
|
190
|
-
* @param message - The message to write
|
|
191
|
-
* @param config - The Storm configuration
|
|
192
|
-
*/
|
|
193
|
-
declare function writeTrace(
|
|
194
|
-
message: string,
|
|
195
|
-
config?: Partial<StormConfig>
|
|
196
|
-
): void;
|
|
197
|
-
export { writeTrace };
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Write a message to the console at the `all` log level
|
|
201
|
-
*
|
|
202
|
-
* @param message - The message to write
|
|
203
|
-
* @param config - The Storm configuration
|
|
204
|
-
*/
|
|
205
|
-
declare function writeSystem(
|
|
206
|
-
message: string,
|
|
207
|
-
config?: Partial<StormConfig>
|
|
208
|
-
): void;
|
|
209
|
-
export { writeSystem };
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Get a stopwatch function
|
|
213
|
-
*
|
|
214
|
-
* @param name - The name of the process
|
|
215
|
-
* @returns The stopwatch function
|
|
216
|
-
*/
|
|
217
|
-
declare function getStopwatch(name: string): () => void;
|
|
218
|
-
export { getStopwatch };
|
|
219
|
-
|
|
220
|
-
declare const LARGE_BUFFER: number;
|
|
221
|
-
export type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
|
|
222
|
-
export type StdioOptions =
|
|
223
|
-
| IOType
|
|
224
|
-
| Array<IOType | "ipc" | number | null | undefined>;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Run a command line process
|
|
228
|
-
*
|
|
229
|
-
* @remarks
|
|
230
|
-
* A wrapper around execa to run our command line processes
|
|
231
|
-
*
|
|
232
|
-
* @param config - The Storm configuration object
|
|
233
|
-
* @param command - The command to run
|
|
234
|
-
* @param cwd - The current working directory
|
|
235
|
-
* @returns The result of the command
|
|
236
|
-
*/
|
|
237
|
-
declare function run(
|
|
238
|
-
config: StormConfig,
|
|
239
|
-
command: string,
|
|
240
|
-
cwd: string = config.workspaceRoot,
|
|
241
|
-
stdio: StdioOptions = "inherit"
|
|
242
|
-
): any;
|
|
243
|
-
export { run };
|
|
244
|
-
|
|
245
|
-
declare function getLogLevel(label?: string): LogLevel;
|
|
246
|
-
export { getLogLevel };
|
|
247
|
-
|
|
248
|
-
declare function getLogLevelLabel(logLevel: number): LogLevelLabel;
|
|
249
|
-
export { getLogLevelLabel };
|
|
250
|
-
|
|
251
|
-
declare module "fs-extra/esm" {}
|
|
252
|
-
|
|
253
|
-
declare function removeExtension(filePath?: string): string;
|
|
254
|
-
export { removeExtension };
|
|
255
|
-
|
|
256
|
-
declare function findFileName(filePath?: string): string;
|
|
257
|
-
export { findFileName };
|
|
258
|
-
|
|
259
|
-
declare function applyWorkspaceBaseTokens(
|
|
260
|
-
option: string,
|
|
261
|
-
tokenizerOptions: BaseTokenizerOptions
|
|
262
|
-
): Promise<string>;
|
|
263
|
-
export { applyWorkspaceBaseTokens };
|
|
264
|
-
|
|
265
|
-
declare function applyWorkspaceProjectTokens(
|
|
266
|
-
option: string,
|
|
267
|
-
tokenizerOptions: ProjectTokenizerOptions
|
|
268
|
-
): Promise<string>;
|
|
269
|
-
export { applyWorkspaceProjectTokens };
|
|
270
|
-
|
|
271
|
-
declare function applyWorkspaceTokens<
|
|
272
|
-
TConfig extends BaseTokenizerOptions = BaseTokenizerOptions
|
|
273
|
-
>(
|
|
274
|
-
options: Record<string, any>,
|
|
275
|
-
config: TConfig,
|
|
276
|
-
tokenizerFn: (option: string, config: TConfig) => string | Promise<string>
|
|
277
|
-
): Promise<Record<string, any>>;
|
|
278
|
-
export { applyWorkspaceTokens };
|
|
279
|
-
|
|
280
|
-
export type GetChalkReturn = {
|
|
281
|
-
hex: (_: string) => (message?: string) => string | undefined;
|
|
282
|
-
bgHex: (_: string) => {
|
|
283
|
-
whiteBright: (message?: string) => string | undefined;
|
|
284
|
-
};
|
|
285
|
-
whiteBright: (message?: string) => string | undefined;
|
|
286
|
-
bold: {
|
|
287
|
-
hex: (_: string) => (message?: string) => string | undefined;
|
|
288
|
-
bgHex: (_: string) => {
|
|
289
|
-
whiteBright: (message?: string) => string | undefined;
|
|
290
|
-
};
|
|
291
|
-
whiteBright: (message?: string) => string | undefined;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Get the chalk instance
|
|
297
|
-
*
|
|
298
|
-
* @remarks
|
|
299
|
-
* Annoying polyfill to temporarily fix the issue with the `chalk` import
|
|
300
|
-
*
|
|
301
|
-
* @returns The chalk instance
|
|
302
|
-
*/
|
|
303
|
-
declare function getChalk(): GetChalkReturn;
|
|
304
|
-
export { getChalk };
|