@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": ["../../.eslintrc.json", "../../.eslintrc.base.json"],
2
+ "extends": ["../../.eslintrc.base.json"],
3
3
  "ignorePatterns": ["!**/*", "node_modules/*"],
4
4
  "overrides": [
5
5
  {
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
- [![Version](https://img.shields.io/badge/version-1.34.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.35.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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(pathInsideMonorepo?: string): string | undefined;
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 keyof StormConfig["extensions"] = keyof StormConfig["extensions"],
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(config: Partial<StormConfig>, message: string): void;
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(config: Partial<StormConfig>, message: string): void;
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(config: Partial<StormConfig>, message: string): void;
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(config: Partial<StormConfig>, message: string): void;
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(config: Partial<StormConfig>, message: string): void;
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(config: Partial<StormConfig>, message: string): void;
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(config: Partial<StormConfig>, message: string): void;
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(config: StormConfig, command: string, cwd: string = config.workspaceRoot): any;
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<TConfig extends BaseTokenizerOptions = BaseTokenizerOptions>(
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.0",
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": {
@@ -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: "inherit",
33
+ stdio,
29
34
  maxBuffer: LARGE_BUFFER,
30
35
  killSignal: "SIGTERM"
31
36
  });