@storm-software/config-tools 1.35.0 → 1.35.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/.eslintrc.json +1 -1
- package/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/declarations.d.ts +46 -11
- package/package.json +1 -1
- package/src/utilities/run.ts +7 -2
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.35.2 (2024-04-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Added code to invoke rolldown via command-line ([b365a74e](https://github.com/storm-software/storm-ops/commit/b365a74e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.35.1 (2024-04-08)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **git-tools:** Update release tool to use local function to get configuration ([53db7520](https://github.com/storm-software/storm-ops/commit/53db7520))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.35.0 (2024-04-07)
|
|
2
26
|
|
|
3
27
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
> [!IMPORTANT]
|
package/declarations.d.ts
CHANGED
|
@@ -29,7 +29,9 @@ export { findWorkspaceRoot };
|
|
|
29
29
|
*
|
|
30
30
|
* @param pathInsideMonorepo - The path inside the monorepo
|
|
31
31
|
*/
|
|
32
|
-
declare function findWorkspaceRootSafe(
|
|
32
|
+
declare function findWorkspaceRootSafe(
|
|
33
|
+
pathInsideMonorepo?: string
|
|
34
|
+
): string | undefined;
|
|
33
35
|
export { findWorkspaceRootSafe };
|
|
34
36
|
|
|
35
37
|
/**
|
|
@@ -63,7 +65,8 @@ export { loadStormConfig };
|
|
|
63
65
|
* @returns The function isStormError is returning a boolean value.
|
|
64
66
|
*/
|
|
65
67
|
declare function createStormConfig<
|
|
66
|
-
TExtensionName extends
|
|
68
|
+
TExtensionName extends
|
|
69
|
+
keyof StormConfig["extensions"] = keyof StormConfig["extensions"],
|
|
67
70
|
TExtensionConfig = any,
|
|
68
71
|
TExtensionSchema extends z.ZodTypeAny = z.ZodTypeAny
|
|
69
72
|
>(
|
|
@@ -109,7 +112,10 @@ export { handleProcess };
|
|
|
109
112
|
* @param config - The Storm configuration
|
|
110
113
|
* @param message - The message to write
|
|
111
114
|
*/
|
|
112
|
-
declare function writeFatal(
|
|
115
|
+
declare function writeFatal(
|
|
116
|
+
config: Partial<StormConfig>,
|
|
117
|
+
message: string
|
|
118
|
+
): void;
|
|
113
119
|
export { writeFatal };
|
|
114
120
|
|
|
115
121
|
/**
|
|
@@ -118,7 +124,10 @@ export { writeFatal };
|
|
|
118
124
|
* @param config - The Storm configuration
|
|
119
125
|
* @param message - The message to write
|
|
120
126
|
*/
|
|
121
|
-
declare function writeError(
|
|
127
|
+
declare function writeError(
|
|
128
|
+
config: Partial<StormConfig>,
|
|
129
|
+
message: string
|
|
130
|
+
): void;
|
|
122
131
|
export { writeError };
|
|
123
132
|
|
|
124
133
|
/**
|
|
@@ -127,7 +136,10 @@ export { writeError };
|
|
|
127
136
|
* @param config - The Storm configuration
|
|
128
137
|
* @param message - The message to write
|
|
129
138
|
*/
|
|
130
|
-
declare function writeWarning(
|
|
139
|
+
declare function writeWarning(
|
|
140
|
+
config: Partial<StormConfig>,
|
|
141
|
+
message: string
|
|
142
|
+
): void;
|
|
131
143
|
export { writeWarning };
|
|
132
144
|
|
|
133
145
|
/**
|
|
@@ -145,7 +157,10 @@ export { writeInfo };
|
|
|
145
157
|
* @param config - The Storm configuration
|
|
146
158
|
* @param message - The message to write
|
|
147
159
|
*/
|
|
148
|
-
declare function writeSuccess(
|
|
160
|
+
declare function writeSuccess(
|
|
161
|
+
config: Partial<StormConfig>,
|
|
162
|
+
message: string
|
|
163
|
+
): void;
|
|
149
164
|
export { writeSuccess };
|
|
150
165
|
|
|
151
166
|
/**
|
|
@@ -154,7 +169,10 @@ export { writeSuccess };
|
|
|
154
169
|
* @param config - The Storm configuration
|
|
155
170
|
* @param message - The message to write
|
|
156
171
|
*/
|
|
157
|
-
declare function writeDebug(
|
|
172
|
+
declare function writeDebug(
|
|
173
|
+
config: Partial<StormConfig>,
|
|
174
|
+
message: string
|
|
175
|
+
): void;
|
|
158
176
|
export { writeDebug };
|
|
159
177
|
|
|
160
178
|
/**
|
|
@@ -163,7 +181,10 @@ export { writeDebug };
|
|
|
163
181
|
* @param config - The Storm configuration
|
|
164
182
|
* @param message - The message to write
|
|
165
183
|
*/
|
|
166
|
-
declare function writeTrace(
|
|
184
|
+
declare function writeTrace(
|
|
185
|
+
config: Partial<StormConfig>,
|
|
186
|
+
message: string
|
|
187
|
+
): void;
|
|
167
188
|
export { writeTrace };
|
|
168
189
|
|
|
169
190
|
/**
|
|
@@ -172,7 +193,10 @@ export { writeTrace };
|
|
|
172
193
|
* @param config - The Storm configuration
|
|
173
194
|
* @param message - The message to write
|
|
174
195
|
*/
|
|
175
|
-
declare function writeSystem(
|
|
196
|
+
declare function writeSystem(
|
|
197
|
+
config: Partial<StormConfig>,
|
|
198
|
+
message: string
|
|
199
|
+
): void;
|
|
176
200
|
export { writeSystem };
|
|
177
201
|
|
|
178
202
|
/**
|
|
@@ -185,6 +209,10 @@ declare function getStopwatch(name: string): () => void;
|
|
|
185
209
|
export { getStopwatch };
|
|
186
210
|
|
|
187
211
|
declare const LARGE_BUFFER: number;
|
|
212
|
+
export type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
|
|
213
|
+
export type StdioOptions =
|
|
214
|
+
| IOType
|
|
215
|
+
| Array<IOType | "ipc" | number | null | undefined>;
|
|
188
216
|
|
|
189
217
|
/**
|
|
190
218
|
* Run a command line process
|
|
@@ -197,7 +225,12 @@ declare const LARGE_BUFFER: number;
|
|
|
197
225
|
* @param cwd - The current working directory
|
|
198
226
|
* @returns The result of the command
|
|
199
227
|
*/
|
|
200
|
-
declare function run(
|
|
228
|
+
declare function run(
|
|
229
|
+
config: StormConfig,
|
|
230
|
+
command: string,
|
|
231
|
+
cwd: string = config.workspaceRoot,
|
|
232
|
+
stdio: StdioOptions = "inherit"
|
|
233
|
+
): any;
|
|
201
234
|
export { run };
|
|
202
235
|
|
|
203
236
|
declare function getLogLevel(label?: string): LogLevel;
|
|
@@ -226,7 +259,9 @@ declare function applyWorkspaceProjectTokens(
|
|
|
226
259
|
): Promise<string>;
|
|
227
260
|
export { applyWorkspaceProjectTokens };
|
|
228
261
|
|
|
229
|
-
declare function applyWorkspaceTokens<
|
|
262
|
+
declare function applyWorkspaceTokens<
|
|
263
|
+
TConfig extends BaseTokenizerOptions = BaseTokenizerOptions
|
|
264
|
+
>(
|
|
230
265
|
options: Record<string, any>,
|
|
231
266
|
config: TConfig,
|
|
232
267
|
tokenizerFn: (option: string, config: TConfig) => string | Promise<string>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
package/src/utilities/run.ts
CHANGED
|
@@ -2,6 +2,10 @@ import type { StormConfig } from "@storm-software/config";
|
|
|
2
2
|
import { execSync } from "node:child_process";
|
|
3
3
|
|
|
4
4
|
export const LARGE_BUFFER = 1024 * 1000000;
|
|
5
|
+
export type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
|
|
6
|
+
export type StdioOptions =
|
|
7
|
+
| IOType
|
|
8
|
+
| Array<IOType | "ipc" | number | null | undefined>;
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* Run a command line process
|
|
@@ -17,7 +21,8 @@ export const LARGE_BUFFER = 1024 * 1000000;
|
|
|
17
21
|
export const run = (
|
|
18
22
|
config: StormConfig,
|
|
19
23
|
command: string,
|
|
20
|
-
cwd: string = config.workspaceRoot ?? process.cwd()
|
|
24
|
+
cwd: string = config.workspaceRoot ?? process.cwd(),
|
|
25
|
+
stdio: StdioOptions = "inherit"
|
|
21
26
|
) => {
|
|
22
27
|
return execSync(command, {
|
|
23
28
|
cwd,
|
|
@@ -25,7 +30,7 @@ export const run = (
|
|
|
25
30
|
...process.env,
|
|
26
31
|
FORCE_COLOR: "true"
|
|
27
32
|
},
|
|
28
|
-
stdio
|
|
33
|
+
stdio,
|
|
29
34
|
maxBuffer: LARGE_BUFFER,
|
|
30
35
|
killSignal: "SIGTERM"
|
|
31
36
|
});
|