@storm-software/config-tools 1.187.13 → 1.187.15
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 +2 -2
- package/bin/config.js +2 -2
- package/dist/{chunk-CHH7IMWB.cjs → chunk-MYIDZXUS.cjs} +6 -6
- package/dist/{chunk-GNSE4ODH.js → chunk-WOLTMI7X.js} +6 -6
- package/dist/get-config.cjs +2 -2
- package/dist/get-config.d.cts +3 -3
- package/dist/get-config.d.ts +3 -3
- package/dist/get-config.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/config.cjs
CHANGED
|
@@ -1434,9 +1434,9 @@ ${formatLogMessage(config)}`,
|
|
|
1434
1434
|
};
|
|
1435
1435
|
|
|
1436
1436
|
// src/get-config.ts
|
|
1437
|
-
|
|
1437
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1438
1438
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1439
|
-
}
|
|
1439
|
+
}
|
|
1440
1440
|
|
|
1441
1441
|
// bin/config.ts
|
|
1442
1442
|
function createProgram() {
|
package/bin/config.js
CHANGED
|
@@ -1409,9 +1409,9 @@ ${formatLogMessage(config)}`,
|
|
|
1409
1409
|
};
|
|
1410
1410
|
|
|
1411
1411
|
// src/get-config.ts
|
|
1412
|
-
|
|
1412
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1413
1413
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1414
|
-
}
|
|
1414
|
+
}
|
|
1415
1415
|
|
|
1416
1416
|
// bin/config.ts
|
|
1417
1417
|
function createProgram() {
|
|
@@ -7,17 +7,17 @@ var _chunkYVVHMY32cjs = require('./chunk-YVVHMY32.cjs');
|
|
|
7
7
|
var _chunkCV4CBBNCcjs = require('./chunk-CV4CBBNC.cjs');
|
|
8
8
|
|
|
9
9
|
// src/get-config.ts
|
|
10
|
-
|
|
10
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
11
11
|
return _chunkYVVHMY32cjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
|
|
12
|
-
}
|
|
13
|
-
|
|
12
|
+
}
|
|
13
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
14
14
|
let workspaceRoot = options.workspaceRoot;
|
|
15
15
|
if (!workspaceRoot) {
|
|
16
16
|
workspaceRoot = _chunkCV4CBBNCcjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
17
17
|
}
|
|
18
18
|
return getConfig(workspaceRoot, skipLogs);
|
|
19
|
-
}
|
|
20
|
-
|
|
19
|
+
}
|
|
20
|
+
async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
|
|
21
21
|
try {
|
|
22
22
|
let workspaceRoot = options.workspaceRoot;
|
|
23
23
|
if (!workspaceRoot) {
|
|
@@ -31,7 +31,7 @@ var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
|
|
|
31
31
|
} catch (e) {
|
|
32
32
|
return void 0;
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
} from "./chunk-4A2P7H63.js";
|
|
8
8
|
|
|
9
9
|
// src/get-config.ts
|
|
10
|
-
|
|
10
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
11
11
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
12
|
-
}
|
|
13
|
-
|
|
12
|
+
}
|
|
13
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
14
14
|
let workspaceRoot = options.workspaceRoot;
|
|
15
15
|
if (!workspaceRoot) {
|
|
16
16
|
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
17
17
|
}
|
|
18
18
|
return getConfig(workspaceRoot, skipLogs);
|
|
19
|
-
}
|
|
20
|
-
|
|
19
|
+
}
|
|
20
|
+
async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
|
|
21
21
|
try {
|
|
22
22
|
let workspaceRoot = options.workspaceRoot;
|
|
23
23
|
if (!workspaceRoot) {
|
|
@@ -31,7 +31,7 @@ var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
|
|
|
31
31
|
} catch {
|
|
32
32
|
return void 0;
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
35
|
|
|
36
36
|
export {
|
|
37
37
|
getConfig,
|
package/dist/get-config.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMYIDZXUScjs = require('./chunk-MYIDZXUS.cjs');
|
|
6
6
|
require('./chunk-YVVHMY32.cjs');
|
|
7
7
|
require('./chunk-ZF73HG6K.cjs');
|
|
8
8
|
require('./chunk-3COHMHPU.cjs');
|
|
@@ -31,4 +31,4 @@ require('./chunk-IRCFHYKZ.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
exports.getConfig =
|
|
34
|
+
exports.getConfig = _chunkMYIDZXUScjs.getConfig; exports.getWorkspaceConfig = _chunkMYIDZXUScjs.getWorkspaceConfig; exports.tryGetWorkspaceConfig = _chunkMYIDZXUScjs.tryGetWorkspaceConfig;
|
package/dist/get-config.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
|
7
7
|
* @param skipLogs - Skip writing logs to the console
|
|
8
8
|
* @returns The config for the current Storm workspace
|
|
9
9
|
*/
|
|
10
|
-
declare
|
|
10
|
+
declare function getConfig(workspaceRoot?: string, skipLogs?: boolean): Promise<StormWorkspaceConfig>;
|
|
11
11
|
type GetWorkspaceConfigOptions = {
|
|
12
12
|
/**
|
|
13
13
|
* The root directory of the workspace
|
|
@@ -31,7 +31,7 @@ type GetWorkspaceConfigOptions = {
|
|
|
31
31
|
* @param options - Options for getting the workspace config
|
|
32
32
|
* @returns The config for the current Storm workspace, or throws an error if the config file could not be loaded
|
|
33
33
|
*/
|
|
34
|
-
declare
|
|
34
|
+
declare function getWorkspaceConfig(skipLogs?: boolean, options?: GetWorkspaceConfigOptions): Promise<StormWorkspaceConfig>;
|
|
35
35
|
/**
|
|
36
36
|
* Try to get the config for the current Storm workspace
|
|
37
37
|
*
|
|
@@ -39,6 +39,6 @@ declare const getWorkspaceConfig: (skipLogs?: boolean, options?: GetWorkspaceCon
|
|
|
39
39
|
* @param options - Options for getting the workspace config
|
|
40
40
|
* @returns The config for the current Storm workspace, or undefined if the config file could not be loaded
|
|
41
41
|
*/
|
|
42
|
-
declare
|
|
42
|
+
declare function tryGetWorkspaceConfig(skipLogs?: boolean, options?: GetWorkspaceConfigOptions): Promise<StormWorkspaceConfig | undefined>;
|
|
43
43
|
|
|
44
44
|
export { type GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig };
|
package/dist/get-config.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
|
7
7
|
* @param skipLogs - Skip writing logs to the console
|
|
8
8
|
* @returns The config for the current Storm workspace
|
|
9
9
|
*/
|
|
10
|
-
declare
|
|
10
|
+
declare function getConfig(workspaceRoot?: string, skipLogs?: boolean): Promise<StormWorkspaceConfig>;
|
|
11
11
|
type GetWorkspaceConfigOptions = {
|
|
12
12
|
/**
|
|
13
13
|
* The root directory of the workspace
|
|
@@ -31,7 +31,7 @@ type GetWorkspaceConfigOptions = {
|
|
|
31
31
|
* @param options - Options for getting the workspace config
|
|
32
32
|
* @returns The config for the current Storm workspace, or throws an error if the config file could not be loaded
|
|
33
33
|
*/
|
|
34
|
-
declare
|
|
34
|
+
declare function getWorkspaceConfig(skipLogs?: boolean, options?: GetWorkspaceConfigOptions): Promise<StormWorkspaceConfig>;
|
|
35
35
|
/**
|
|
36
36
|
* Try to get the config for the current Storm workspace
|
|
37
37
|
*
|
|
@@ -39,6 +39,6 @@ declare const getWorkspaceConfig: (skipLogs?: boolean, options?: GetWorkspaceCon
|
|
|
39
39
|
* @param options - Options for getting the workspace config
|
|
40
40
|
* @returns The config for the current Storm workspace, or undefined if the config file could not be loaded
|
|
41
41
|
*/
|
|
42
|
-
declare
|
|
42
|
+
declare function tryGetWorkspaceConfig(skipLogs?: boolean, options?: GetWorkspaceConfigOptions): Promise<StormWorkspaceConfig | undefined>;
|
|
43
43
|
|
|
44
44
|
export { type GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig };
|
package/dist/get-config.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMYIDZXUScjs = require('./chunk-MYIDZXUS.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -194,4 +194,4 @@ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
|
|
197
|
-
exports.CONSOLE_ICONS = _chunkWBQ4VS7Ecjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunk6Y623TCScjs.LARGE_BUFFER; exports.LogLevel = _chunkIRCFHYKZcjs.LogLevel; exports.LogLevelLabel = _chunkIRCFHYKZcjs.LogLevelLabel; exports.applyDefaultConfig = _chunkOLPXRL4Xcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkODW5CAKDcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkODW5CAKDcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkODW5CAKDcjs.applyWorkspaceTokens; exports.basename = _chunkBDATZ3UBcjs.basename; exports.correctPaths = _chunkBDATZ3UBcjs.correctPaths; exports.createConfigExtension = _chunkYVVHMY32cjs.createConfigExtension; exports.createLogger = _chunkESUPAI3Ycjs.createLogger; exports.createStormWorkspaceConfig = _chunkYVVHMY32cjs.createStormWorkspaceConfig; exports.dirname = _chunkBDATZ3UBcjs.dirname; exports.exitWithError = _chunkCRQ64CT5cjs.exitWithError; exports.exitWithSuccess = _chunkCRQ64CT5cjs.exitWithSuccess; exports.extname = _chunkBDATZ3UBcjs.extname; exports.findFileName = _chunk2WBD2G3Ecjs.findFileName; exports.findFilePath = _chunk2WBD2G3Ecjs.findFilePath; exports.findWorkspaceRoot = _chunkCV4CBBNCcjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkCV4CBBNCcjs.findWorkspaceRootSafe; exports.format = _chunkBDATZ3UBcjs.format; exports.formatLogMessage = _chunk72EOBSKWcjs.formatLogMessage; exports.formatTimestamp = _chunkBN6MEGGYcjs.formatTimestamp; exports.getChalk = _chunkLOY6ICHZcjs.getChalk; exports.getColor = _chunkMKPH762Ocjs.getColor; exports.getColors = _chunkMKPH762Ocjs.getColors; exports.getConfig =
|
|
197
|
+
exports.CONSOLE_ICONS = _chunkWBQ4VS7Ecjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunk6Y623TCScjs.LARGE_BUFFER; exports.LogLevel = _chunkIRCFHYKZcjs.LogLevel; exports.LogLevelLabel = _chunkIRCFHYKZcjs.LogLevelLabel; exports.applyDefaultConfig = _chunkOLPXRL4Xcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkODW5CAKDcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkODW5CAKDcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkODW5CAKDcjs.applyWorkspaceTokens; exports.basename = _chunkBDATZ3UBcjs.basename; exports.correctPaths = _chunkBDATZ3UBcjs.correctPaths; exports.createConfigExtension = _chunkYVVHMY32cjs.createConfigExtension; exports.createLogger = _chunkESUPAI3Ycjs.createLogger; exports.createStormWorkspaceConfig = _chunkYVVHMY32cjs.createStormWorkspaceConfig; exports.dirname = _chunkBDATZ3UBcjs.dirname; exports.exitWithError = _chunkCRQ64CT5cjs.exitWithError; exports.exitWithSuccess = _chunkCRQ64CT5cjs.exitWithSuccess; exports.extname = _chunkBDATZ3UBcjs.extname; exports.findFileName = _chunk2WBD2G3Ecjs.findFileName; exports.findFilePath = _chunk2WBD2G3Ecjs.findFilePath; exports.findWorkspaceRoot = _chunkCV4CBBNCcjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkCV4CBBNCcjs.findWorkspaceRootSafe; exports.format = _chunkBDATZ3UBcjs.format; exports.formatLogMessage = _chunk72EOBSKWcjs.formatLogMessage; exports.formatTimestamp = _chunkBN6MEGGYcjs.formatTimestamp; exports.getChalk = _chunkLOY6ICHZcjs.getChalk; exports.getColor = _chunkMKPH762Ocjs.getColor; exports.getColors = _chunkMKPH762Ocjs.getColors; exports.getConfig = _chunkMYIDZXUScjs.getConfig; exports.getConfigEnv = _chunkJL3JIFMNcjs.getConfigEnv; exports.getConfigFile = _chunkZF73HG6Kcjs.getConfigFile; exports.getConfigFileByName = _chunkZF73HG6Kcjs.getConfigFileByName; exports.getExtensionEnv = _chunkJL3JIFMNcjs.getExtensionEnv; exports.getGradient = _chunkMKPH762Ocjs.getGradient; exports.getLogFn = _chunk72EOBSKWcjs.getLogFn; exports.getLogLevel = _chunk4PX5UVANcjs.getLogLevel; exports.getLogLevelLabel = _chunk4PX5UVANcjs.getLogLevelLabel; exports.getPackageJsonConfig = _chunkOLPXRL4Xcjs.getPackageJsonConfig; exports.getStopwatch = _chunk72EOBSKWcjs.getStopwatch; exports.getWorkspaceConfig = _chunkMYIDZXUScjs.getWorkspaceConfig; exports.handleProcess = _chunkCRQ64CT5cjs.handleProcess; exports.isAbsolute = _chunkBDATZ3UBcjs.isAbsolute; exports.isUnicodeSupported = _chunkDTGT4OI3cjs.isUnicodeSupported; exports.isVerbose = _chunk4PX5UVANcjs.isVerbose; exports.joinPaths = _chunkBDATZ3UBcjs.joinPaths; exports.loadStormWorkspaceConfig = _chunkYVVHMY32cjs.loadStormWorkspaceConfig; exports.modifyCargoNestedTable = _chunk363CTBPHcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunk363CTBPHcjs.modifyCargoTable; exports.normalizeString = _chunkBDATZ3UBcjs.normalizeString; exports.normalizeWindowsPath = _chunkBDATZ3UBcjs.normalizeWindowsPath; exports.parse = _chunkBDATZ3UBcjs.parse; exports.parseCargoToml = _chunk363CTBPHcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunk363CTBPHcjs.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 = _chunkDW7S5IU3cjs.setConfigEnv; exports.setExtensionEnv = _chunkDW7S5IU3cjs.setExtensionEnv; exports.stringifyCargoToml = _chunk363CTBPHcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkBDATZ3UBcjs.toNamespacedPath; exports.tryGetWorkspaceConfig = _chunkMYIDZXUScjs.tryGetWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkYVVHMY32cjs.tryLoadStormWorkspaceConfig; exports.writeDebug = _chunk72EOBSKWcjs.writeDebug; exports.writeError = _chunk72EOBSKWcjs.writeError; exports.writeFatal = _chunk72EOBSKWcjs.writeFatal; exports.writeInfo = _chunk72EOBSKWcjs.writeInfo; exports.writeSuccess = _chunk72EOBSKWcjs.writeSuccess; exports.writeSystem = _chunk72EOBSKWcjs.writeSystem; exports.writeTrace = _chunk72EOBSKWcjs.writeTrace; exports.writeWarning = _chunk72EOBSKWcjs.writeWarning;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.187.
|
|
3
|
+
"version": "1.187.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various utilities to support custom workspace configurations and environment management for Storm Software projects, including configuration file handling, environment variable management, and logging utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
],
|
|
212
212
|
"dependencies": {
|
|
213
213
|
"@ltd/j-toml": "1.38.0",
|
|
214
|
-
"@storm-software/config": "^1.133.
|
|
214
|
+
"@storm-software/config": "^1.133.10",
|
|
215
215
|
"c12": "^2.0.0-beta.2",
|
|
216
216
|
"chalk": "^4.1.2",
|
|
217
217
|
"commander": "^12.1.0",
|
|
@@ -224,5 +224,5 @@
|
|
|
224
224
|
"devDependencies": { "@types/node": "^22.10.2", "tsup": "8.4.0" },
|
|
225
225
|
"publishConfig": { "access": "public" },
|
|
226
226
|
"sideEffects": false,
|
|
227
|
-
"gitHead": "
|
|
227
|
+
"gitHead": "cf3b0a3f2a3390e2e62adeeb56c0571a6bf75b2d"
|
|
228
228
|
}
|