@storm-software/config-tools 1.135.0 → 1.136.0
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-ZRER4HVA.mjs → chunk-BD24V6H5.mjs} +4 -4
- package/dist/{chunk-6YGTRWBL.js → chunk-C7HSZII7.js} +4 -4
- package/dist/{chunk-ECOO5OEH.js → chunk-EVQ2JHE4.js} +4 -4
- package/dist/{chunk-NE7YN3QU.mjs → chunk-XVKAQI34.mjs} +1 -1
- package/dist/config-file/get-config-file.js +2 -2
- package/dist/config-file/get-config-file.mjs +1 -1
- package/dist/config-file/index.js +2 -2
- package/dist/config-file/index.mjs +1 -1
- package/dist/create-storm-config.js +3 -3
- package/dist/create-storm-config.mjs +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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 -->
|
|
@@ -483,26 +483,26 @@ import "dotenv";
|
|
|
483
483
|
// src/config-file/get-config-file.ts
|
|
484
484
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
485
485
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
486
|
-
let config = loadConfig({
|
|
486
|
+
let config = await loadConfig({
|
|
487
487
|
cwd: workspacePath,
|
|
488
488
|
packageJson: true,
|
|
489
489
|
name: fileName,
|
|
490
490
|
envName: fileName?.toUpperCase(),
|
|
491
491
|
jitiOptions: {
|
|
492
492
|
debug: false,
|
|
493
|
-
|
|
493
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
494
494
|
},
|
|
495
495
|
...options
|
|
496
496
|
});
|
|
497
497
|
if (!config || Object.keys(config).length === 0) {
|
|
498
|
-
config = loadConfig({
|
|
498
|
+
config = await loadConfig({
|
|
499
499
|
cwd: workspacePath,
|
|
500
500
|
packageJson: true,
|
|
501
501
|
name: fileName,
|
|
502
502
|
envName: fileName?.toUpperCase(),
|
|
503
503
|
jitiOptions: {
|
|
504
504
|
debug: false,
|
|
505
|
-
|
|
505
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
506
506
|
},
|
|
507
507
|
configFile: fileName,
|
|
508
508
|
...options
|
|
@@ -483,26 +483,26 @@ var _perfectdebounce = require('perfect-debounce');
|
|
|
483
483
|
// src/config-file/get-config-file.ts
|
|
484
484
|
var getConfigFileByName = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
485
485
|
const workspacePath = filePath || _chunkT7WO327Sjs.findWorkspaceRoot.call(void 0, filePath);
|
|
486
|
-
let config = loadConfig({
|
|
486
|
+
let config = await loadConfig({
|
|
487
487
|
cwd: workspacePath,
|
|
488
488
|
packageJson: true,
|
|
489
489
|
name: fileName,
|
|
490
490
|
envName: _optionalChain([fileName, 'optionalAccess', _9 => _9.toUpperCase, 'call', _10 => _10()]),
|
|
491
491
|
jitiOptions: {
|
|
492
492
|
debug: false,
|
|
493
|
-
|
|
493
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkJYGRRNZPjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
494
494
|
},
|
|
495
495
|
...options
|
|
496
496
|
});
|
|
497
497
|
if (!config || Object.keys(config).length === 0) {
|
|
498
|
-
config = loadConfig({
|
|
498
|
+
config = await loadConfig({
|
|
499
499
|
cwd: workspacePath,
|
|
500
500
|
packageJson: true,
|
|
501
501
|
name: fileName,
|
|
502
502
|
envName: _optionalChain([fileName, 'optionalAccess', _11 => _11.toUpperCase, 'call', _12 => _12()]),
|
|
503
503
|
jitiOptions: {
|
|
504
504
|
debug: false,
|
|
505
|
-
|
|
505
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkJYGRRNZPjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
|
|
506
506
|
},
|
|
507
507
|
configFile: fileName,
|
|
508
508
|
...options
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkC7HSZII7js = require('./chunk-C7HSZII7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -40,7 +40,7 @@ var createStormConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (ex
|
|
|
40
40
|
if (!_optionalChain([_static_cache, 'optionalAccess', _ => _.data]) || !_optionalChain([_static_cache, 'optionalAccess', _2 => _2.timestamp]) || _static_cache.timestamp < Date.now() - 3e4) {
|
|
41
41
|
const config = _chunkAYVEVLX7js.getConfigEnv.call(void 0, );
|
|
42
42
|
const defaultConfig = _chunkUNJVNXY7js.getDefaultConfig.call(void 0, workspaceRoot);
|
|
43
|
-
result = _chunk7LUIP6PQjs.StormConfigSchema.parse(
|
|
43
|
+
result = _chunk7LUIP6PQjs.StormConfigSchema.parse(_chunkC7HSZII7js.defu.call(void 0, config, defaultConfig));
|
|
44
44
|
result.workspaceRoot ??= defaultConfig.workspaceRoot || _chunkT7WO327Sjs.findWorkspaceRoot.call(void 0, workspaceRoot);
|
|
45
45
|
} else {
|
|
46
46
|
result = _static_cache.data;
|
|
@@ -81,13 +81,13 @@ var loadStormConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, async
|
|
|
81
81
|
if (!_workspaceRoot) {
|
|
82
82
|
_workspaceRoot = _chunkT7WO327Sjs.findWorkspaceRoot.call(void 0, );
|
|
83
83
|
}
|
|
84
|
-
const configFile = await
|
|
84
|
+
const configFile = await _chunkC7HSZII7js.getConfigFile.call(void 0, _workspaceRoot);
|
|
85
85
|
if (!configFile) {
|
|
86
86
|
_chunkTOFECHBMjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
87
87
|
logLevel: "all"
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
config =
|
|
90
|
+
config = _chunkC7HSZII7js.defu.call(void 0, _chunkAYVEVLX7js.getConfigEnv.call(void 0, ), configFile, _chunkUNJVNXY7js.getDefaultConfig.call(void 0, _workspaceRoot));
|
|
91
91
|
_chunkCO2NVYPRjs.setConfigEnv.call(void 0, config);
|
|
92
92
|
_chunkTOFECHBMjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
93
93
|
${_chunkTOFECHBMjs.formatLogMessage.call(void 0, config)}`, config);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkC7HSZII7js = require('../chunk-C7HSZII7.js');
|
|
5
5
|
require('../chunk-22DJFJ62.js');
|
|
6
6
|
require('../chunk-7GSJ2YLJ.js');
|
|
7
7
|
require('../chunk-SSRF7DP6.js');
|
|
@@ -23,4 +23,4 @@ require('../chunk-RBSVNX4W.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.getConfigFile =
|
|
26
|
+
exports.getConfigFile = _chunkC7HSZII7js.getConfigFile; exports.getConfigFileByName = _chunkC7HSZII7js.getConfigFileByName;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkC7HSZII7js = require('../chunk-C7HSZII7.js');
|
|
6
6
|
require('../chunk-22DJFJ62.js');
|
|
7
7
|
require('../chunk-7GSJ2YLJ.js');
|
|
8
8
|
require('../chunk-SSRF7DP6.js');
|
|
@@ -24,4 +24,4 @@ require('../chunk-RBSVNX4W.js');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.getConfigFile =
|
|
27
|
+
exports.getConfigFile = _chunkC7HSZII7js.getConfigFile; exports.getConfigFileByName = _chunkC7HSZII7js.getConfigFileByName;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkEVQ2JHE4js = require('./chunk-EVQ2JHE4.js');
|
|
7
|
+
require('./chunk-C7HSZII7.js');
|
|
8
8
|
require('./chunk-22DJFJ62.js');
|
|
9
9
|
require('./chunk-7GSJ2YLJ.js');
|
|
10
10
|
require('./chunk-SSRF7DP6.js');
|
|
@@ -30,4 +30,4 @@ require('./chunk-RBSVNX4W.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.createConfig =
|
|
33
|
+
exports.createConfig = _chunkEVQ2JHE4js.createConfig; exports.createConfigExtension = _chunkEVQ2JHE4js.createConfigExtension; exports.createStormConfig = _chunkEVQ2JHE4js.createStormConfig; exports.loadStormConfig = _chunkEVQ2JHE4js.loadStormConfig;
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
createConfigExtension,
|
|
4
4
|
createStormConfig,
|
|
5
5
|
loadStormConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XVKAQI34.mjs";
|
|
7
|
+
import "./chunk-BD24V6H5.mjs";
|
|
8
8
|
import "./chunk-LQGTS5ON.mjs";
|
|
9
9
|
import "./chunk-LJLITR54.mjs";
|
|
10
10
|
import "./chunk-Y7RRG653.mjs";
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEVQ2JHE4js = require('./chunk-EVQ2JHE4.js');
|
|
8
8
|
require('./chunk-OLORJVVT.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkC7HSZII7js = require('./chunk-C7HSZII7.js');
|
|
13
13
|
require('./chunk-22DJFJ62.js');
|
|
14
14
|
|
|
15
15
|
|
|
@@ -141,4 +141,4 @@ _chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
exports.CONSOLE_ICONS = _chunk6AYXKAF5js.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkUNJVNXY7js.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkZ5UYG3QUjs.LARGE_BUFFER; exports.LogLevel = _chunkOQLT27Y3js.LogLevel; exports.LogLevelLabel = _chunkOQLT27Y3js.LogLevelLabel; exports.applyWorkspaceBaseTokens = _chunkVK6ZC6XPjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkVK6ZC6XPjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkVK6ZC6XPjs.applyWorkspaceTokens; exports.correctPaths = _chunkJYGRRNZPjs.correctPaths; exports.createConfig =
|
|
144
|
+
exports.CONSOLE_ICONS = _chunk6AYXKAF5js.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkUNJVNXY7js.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkZ5UYG3QUjs.LARGE_BUFFER; exports.LogLevel = _chunkOQLT27Y3js.LogLevel; exports.LogLevelLabel = _chunkOQLT27Y3js.LogLevelLabel; exports.applyWorkspaceBaseTokens = _chunkVK6ZC6XPjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkVK6ZC6XPjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkVK6ZC6XPjs.applyWorkspaceTokens; exports.correctPaths = _chunkJYGRRNZPjs.correctPaths; exports.createConfig = _chunkEVQ2JHE4js.createConfig; exports.createConfigExtension = _chunkEVQ2JHE4js.createConfigExtension; exports.createStormConfig = _chunkEVQ2JHE4js.createStormConfig; exports.exitWithError = _chunkSSRF7DP6js.exitWithError; exports.exitWithSuccess = _chunkSSRF7DP6js.exitWithSuccess; exports.findFileName = _chunk7GSJ2YLJjs.findFileName; exports.findWorkspaceRoot = _chunkT7WO327Sjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkT7WO327Sjs.findWorkspaceRootSafe; exports.formatLogMessage = _chunkTOFECHBMjs.formatLogMessage; exports.formatTimestamp = _chunkPYKV5UE3js.formatTimestamp; exports.getChalk = _chunkPYET3L7Xjs.getChalk; exports.getConfigEnv = _chunkAYVEVLX7js.getConfigEnv; exports.getConfigFile = _chunkC7HSZII7js.getConfigFile; exports.getConfigFileByName = _chunkC7HSZII7js.getConfigFileByName; exports.getDefaultConfig = _chunkUNJVNXY7js.getDefaultConfig; exports.getExtensionEnv = _chunkAYVEVLX7js.getExtensionEnv; exports.getLogFn = _chunkTOFECHBMjs.getLogFn; exports.getLogLevel = _chunkT3JLYD7Fjs.getLogLevel; exports.getLogLevelLabel = _chunkT3JLYD7Fjs.getLogLevelLabel; exports.getStopwatch = _chunkTOFECHBMjs.getStopwatch; exports.handleProcess = _chunkSSRF7DP6js.handleProcess; exports.isUnicodeSupported = _chunkSEQZA3NMjs.isUnicodeSupported; exports.isVerbose = _chunkT3JLYD7Fjs.isVerbose; exports.joinPaths = _chunkJYGRRNZPjs.joinPaths; exports.loadStormConfig = _chunkEVQ2JHE4js.loadStormConfig; exports.removeExtension = _chunk7GSJ2YLJjs.removeExtension; exports.run = _chunkZ5UYG3QUjs.run; exports.runAsync = _chunkZ5UYG3QUjs.runAsync; exports.setConfigEnv = _chunkCO2NVYPRjs.setConfigEnv; exports.setExtensionEnv = _chunkCO2NVYPRjs.setExtensionEnv; exports.writeDebug = _chunkTOFECHBMjs.writeDebug; exports.writeError = _chunkTOFECHBMjs.writeError; exports.writeFatal = _chunkTOFECHBMjs.writeFatal; exports.writeInfo = _chunkTOFECHBMjs.writeInfo; exports.writeSuccess = _chunkTOFECHBMjs.writeSuccess; exports.writeSystem = _chunkTOFECHBMjs.writeSystem; exports.writeTrace = _chunkTOFECHBMjs.writeTrace; exports.writeWarning = _chunkTOFECHBMjs.writeWarning;
|
package/dist/index.mjs
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
createConfigExtension,
|
|
5
5
|
createStormConfig,
|
|
6
6
|
loadStormConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XVKAQI34.mjs";
|
|
8
8
|
import "./chunk-5GHDZSSH.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfigFile,
|
|
11
11
|
getConfigFileByName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BD24V6H5.mjs";
|
|
13
13
|
import "./chunk-LQGTS5ON.mjs";
|
|
14
14
|
import {
|
|
15
15
|
findFileName,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@storm-software/config-tools","version":"1.
|
|
1
|
+
{"name":"@storm-software/config-tools","version":"1.136.0","description":"⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/config-tools"},"homepage":"https://stormsoftware.com","bugs":{"url":"https://stormsoftware.com/support","email":"support@stormsoftware.com"},"author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"contributors":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"}],"funding":{"type":"github","url":"https://github.com/sponsors/storm-software"},"license":"Apache-2.0","private":false,"main":"./dist/index.js","module":"./dist/index.mjs","exports":{"./package.json":"./package.json","./types":{"import":{"types":"./dist/types.d.mts","default":"./dist/types.mjs"},"require":{"types":"./dist/types.d.ts","default":"./dist/types.js"},"default":{"types":"./dist/types.d.ts","default":"./dist/types.js"}},"./index":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./create-storm-config":{"import":{"types":"./dist/create-storm-config.d.mts","default":"./dist/create-storm-config.mjs"},"require":{"types":"./dist/create-storm-config.d.ts","default":"./dist/create-storm-config.js"},"default":{"types":"./dist/create-storm-config.d.ts","default":"./dist/create-storm-config.js"}},"./config-file":{"import":{"types":"./dist/config-file/index.d.mts","default":"./dist/config-file/index.mjs"},"require":{"types":"./dist/config-file/index.d.ts","default":"./dist/config-file/index.js"},"default":{"types":"./dist/config-file/index.d.ts","default":"./dist/config-file/index.js"}},"./config-file/*":{"import":{"types":"./dist/config-file/*.d.mts","default":"./dist/config-file/*.mjs"},"require":{"types":"./dist/config-file/*.d.ts","default":"./dist/config-file/*.js"},"default":{"types":"./dist/config-file/*.d.ts","default":"./dist/config-file/*.js"}},"./env":{"import":{"types":"./dist/env/index.d.mts","default":"./dist/env/index.mjs"},"require":{"types":"./dist/env/index.d.ts","default":"./dist/env/index.js"},"default":{"types":"./dist/env/index.d.ts","default":"./dist/env/index.js"}},"./env/*":{"import":{"types":"./dist/env/*.d.mts","default":"./dist/env/*.mjs"},"require":{"types":"./dist/env/*.d.ts","default":"./dist/env/*.js"},"default":{"types":"./dist/env/*.d.ts","default":"./dist/env/*.js"}},"./logger":{"import":{"types":"./dist/logger/index.d.mts","default":"./dist/logger/index.mjs"},"require":{"types":"./dist/logger/index.d.ts","default":"./dist/logger/index.js"},"default":{"types":"./dist/logger/index.d.ts","default":"./dist/logger/index.js"}},"./logger/*":{"import":{"types":"./dist/logger/*.d.mts","default":"./dist/logger/*.mjs"},"require":{"types":"./dist/logger/*.d.ts","default":"./dist/logger/*.js"},"default":{"types":"./dist/logger/*.d.ts","default":"./dist/logger/*.js"}},"./utilities":{"import":{"types":"./dist/utilities/index.d.mts","default":"./dist/utilities/index.mjs"},"require":{"types":"./dist/utilities/index.d.ts","default":"./dist/utilities/index.js"},"default":{"types":"./dist/utilities/index.d.ts","default":"./dist/utilities/index.js"}},"./utilities/*":{"import":{"types":"./dist/utilities/*.d.mts","default":"./dist/utilities/*.mjs"},"require":{"types":"./dist/utilities/*.d.ts","default":"./dist/utilities/*.js"},"default":{"types":"./dist/utilities/*.d.ts","default":"./dist/utilities/*.js"}}},"types":"./dist/index.d.ts","files":["dist/**/*"],"keywords":["storm-stack","storm-software","storm","stormstack","storm-ops","acidic","acidic-lang","acidic-model","cyclone-ui","nextjs","prisma","graphql","sullivanpj","monorepo"],"dependencies":{"zod":"^3.24.0"},"devDependencies":{"@types/node":"^22.10.2","c12":"^2.0.0-beta.2","chalk":"^4.1.2","defu":"6.1.4","tsup":"8.3.5"},"publishConfig":{"access":"public"},"sideEffects":false}
|