@storm-software/esbuild 0.45.9 → 0.45.11
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/assets.cjs +4 -4
- package/dist/assets.js +3 -3
- package/dist/build.cjs +11 -11
- package/dist/build.js +10 -10
- package/dist/{chunk-4UCSWAYL.cjs → chunk-4T66RHLZ.cjs} +28 -28
- package/dist/{chunk-24MAAJ23.cjs → chunk-CBRUGQFQ.cjs} +3 -3
- package/dist/{chunk-HBIJ4J5R.cjs → chunk-DMCSA7GD.cjs} +87 -87
- package/dist/{chunk-XX2GNHNI.js → chunk-DONA32WC.js} +1 -1
- package/dist/{chunk-VJOUBIZH.js → chunk-J23YJYET.js} +1 -1
- package/dist/{chunk-AJHP5LOA.js → chunk-KFVVARZW.js} +1 -1
- package/dist/{chunk-VS6CDXH5.js → chunk-LGDQLIWM.js} +7 -7
- package/dist/{chunk-JPZ25OGN.cjs → chunk-LXFI4QN3.cjs} +22 -22
- package/dist/{chunk-CNQNTV4A.cjs → chunk-NXN35NZ7.cjs} +10 -10
- package/dist/{chunk-Z2W5FM4B.js → chunk-OHC4AOQG.js} +2 -2
- package/dist/{chunk-4BLTG225.js → chunk-OVF7EMMD.js} +1 -1
- package/dist/{chunk-6LRS4DYX.cjs → chunk-P3LL3C3V.cjs} +6 -6
- package/dist/{chunk-ZMPH4C3L.cjs → chunk-PHUOQP5F.cjs} +5 -5
- package/dist/{chunk-NJO2B5FC.cjs → chunk-Q45WICGX.cjs} +3 -3
- package/dist/{chunk-G5UIJPDD.js → chunk-S4OFPSFS.js} +5 -5
- package/dist/{chunk-LVJIYUGI.js → chunk-VREJONM4.js} +2 -2
- package/dist/{chunk-EZI7IWCO.cjs → chunk-VYYRT4J4.cjs} +3 -3
- package/dist/{chunk-B6E7GJXU.js → chunk-WMU243HH.js} +3 -3
- package/dist/{chunk-G4SJWWJB.cjs → chunk-Y2WVY5RS.cjs} +3 -3
- package/dist/{chunk-BKOUQVED.js → chunk-YYB2TDMT.js} +1 -1
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/config.cjs +4 -4
- package/dist/config.js +3 -3
- package/dist/context.cjs +5 -5
- package/dist/context.js +4 -4
- package/dist/index.cjs +11 -11
- package/dist/index.js +10 -10
- package/dist/package-json.cjs +4 -4
- package/dist/package-json.js +3 -3
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/tsup.cjs +3 -3
- package/dist/tsup.js +2 -2
- package/dist/watch.cjs +3 -3
- package/dist/watch.js +1 -1
- package/package.json +4 -4
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/dist/assets.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkPHUOQP5Fcjs = require('./chunk-PHUOQP5F.cjs');
|
|
4
|
+
require('./chunk-4T66RHLZ.cjs');
|
|
5
|
+
require('./chunk-DMCSA7GD.cjs');
|
|
6
6
|
require('./chunk-REAX6FSO.cjs');
|
|
7
7
|
require('./chunk-4ICWACJM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkPHUOQP5Fcjs.copyBuildAssets;
|
package/dist/assets.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-OHC4AOQG.js";
|
|
4
|
+
import "./chunk-KFVVARZW.js";
|
|
5
|
+
import "./chunk-S4OFPSFS.js";
|
|
6
6
|
import "./chunk-A7I6K5HC.js";
|
|
7
7
|
import "./chunk-GL7N7ANS.js";
|
|
8
8
|
export {
|
package/dist/build.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
3
|
+
var _chunkLXFI4QN3cjs = require('./chunk-LXFI4QN3.cjs');
|
|
4
|
+
require('./chunk-CBRUGQFQ.cjs');
|
|
5
|
+
require('./chunk-PHUOQP5F.cjs');
|
|
6
|
+
require('./chunk-VYYRT4J4.cjs');
|
|
7
|
+
require('./chunk-NXN35NZ7.cjs');
|
|
8
|
+
require('./chunk-Q45WICGX.cjs');
|
|
9
|
+
require('./chunk-P3LL3C3V.cjs');
|
|
10
|
+
require('./chunk-4T66RHLZ.cjs');
|
|
11
|
+
require('./chunk-Y2WVY5RS.cjs');
|
|
12
|
+
require('./chunk-DMCSA7GD.cjs');
|
|
13
13
|
require('./chunk-REAX6FSO.cjs');
|
|
14
14
|
require('./chunk-4ICWACJM.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.build =
|
|
17
|
+
exports.build = _chunkLXFI4QN3cjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LGDQLIWM.js";
|
|
4
|
+
import "./chunk-J23YJYET.js";
|
|
5
|
+
import "./chunk-OHC4AOQG.js";
|
|
6
|
+
import "./chunk-YYB2TDMT.js";
|
|
7
|
+
import "./chunk-WMU243HH.js";
|
|
8
|
+
import "./chunk-DONA32WC.js";
|
|
9
|
+
import "./chunk-VREJONM4.js";
|
|
10
|
+
import "./chunk-KFVVARZW.js";
|
|
11
|
+
import "./chunk-OVF7EMMD.js";
|
|
12
|
+
import "./chunk-S4OFPSFS.js";
|
|
13
13
|
import "./chunk-A7I6K5HC.js";
|
|
14
14
|
import "./chunk-GL7N7ANS.js";
|
|
15
15
|
export {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -65,7 +65,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
65
65
|
output: "src/"
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
_chunkDMCSA7GDcjs.writeTrace.call(void 0,
|
|
69
69
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
70
70
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkREAX6FSOcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
71
71
|
config
|
|
@@ -78,7 +78,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
78
78
|
});
|
|
79
79
|
await assetHandler.processAllAssetsOnce();
|
|
80
80
|
if (includeSrc === true) {
|
|
81
|
-
|
|
81
|
+
_chunkDMCSA7GDcjs.writeDebug.call(void 0,
|
|
82
82
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkREAX6FSOcjs.joinPaths.call(void 0,
|
|
83
83
|
outputPath,
|
|
84
84
|
"src"
|
|
@@ -163,7 +163,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
if (localPackages.length > 0) {
|
|
166
|
-
|
|
166
|
+
_chunkDMCSA7GDcjs.writeTrace.call(void 0,
|
|
167
167
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
168
168
|
);
|
|
169
169
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -211,12 +211,12 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
211
211
|
return ret;
|
|
212
212
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
213
213
|
} else {
|
|
214
|
-
|
|
214
|
+
_chunkDMCSA7GDcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
215
215
|
}
|
|
216
216
|
return packageJson;
|
|
217
217
|
};
|
|
218
218
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
219
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
219
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, );
|
|
220
220
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
221
221
|
_chunkREAX6FSOcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
222
222
|
"utf8"
|
|
@@ -270,7 +270,7 @@ _chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
|
270
270
|
var _c12 = require('c12');
|
|
271
271
|
|
|
272
272
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
273
|
-
const workspacePath = filePath ||
|
|
273
|
+
const workspacePath = filePath || _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
274
274
|
const configs = await Promise.all([
|
|
275
275
|
_c12.loadConfig.call(void 0, {
|
|
276
276
|
cwd: workspacePath,
|
|
@@ -305,12 +305,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
305
305
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
306
306
|
};
|
|
307
307
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
308
|
-
const workspacePath = filePath ? filePath :
|
|
308
|
+
const workspacePath = filePath ? filePath : _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
309
309
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
310
310
|
let config = result.config;
|
|
311
311
|
const configFile = result.configFile;
|
|
312
312
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
313
|
-
|
|
313
|
+
_chunkDMCSA7GDcjs.writeTrace.call(void 0,
|
|
314
314
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
315
315
|
{
|
|
316
316
|
logLevel: "all"
|
|
@@ -326,7 +326,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
326
326
|
for (const result2 of results) {
|
|
327
327
|
if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
|
|
328
328
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
329
|
-
|
|
329
|
+
_chunkDMCSA7GDcjs.writeTrace.call(void 0,
|
|
330
330
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
331
331
|
{
|
|
332
332
|
logLevel: "all"
|
|
@@ -436,13 +436,13 @@ var getConfigEnv = () => {
|
|
|
436
436
|
},
|
|
437
437
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
438
438
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
439
|
-
) ?
|
|
439
|
+
) ? _chunkDMCSA7GDcjs.getLogLevelLabel.call(void 0,
|
|
440
440
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
441
441
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
442
442
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
443
443
|
};
|
|
444
444
|
const themeNames = Object.keys(process.env).filter(
|
|
445
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
445
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkDMCSA7GDcjs.COLOR_KEYS.every(
|
|
446
446
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
447
447
|
)
|
|
448
448
|
);
|
|
@@ -453,16 +453,16 @@ var getConfigEnv = () => {
|
|
|
453
453
|
},
|
|
454
454
|
{}
|
|
455
455
|
) : getThemeColorConfigEnv(prefix);
|
|
456
|
-
if (config.docs ===
|
|
457
|
-
if (config.homepage ===
|
|
458
|
-
config.docs = `${
|
|
456
|
+
if (config.docs === _chunkDMCSA7GDcjs.STORM_DEFAULT_DOCS) {
|
|
457
|
+
if (config.homepage === _chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
458
|
+
config.docs = `${_chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
459
459
|
} else {
|
|
460
460
|
config.docs = `${config.homepage}/docs`;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
if (config.licensing ===
|
|
464
|
-
if (config.homepage ===
|
|
465
|
-
config.licensing = `${
|
|
463
|
+
if (config.licensing === _chunkDMCSA7GDcjs.STORM_DEFAULT_LICENSING) {
|
|
464
|
+
if (config.homepage === _chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
465
|
+
config.licensing = `${_chunkDMCSA7GDcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
466
466
|
} else {
|
|
467
467
|
config.licensing = `${config.homepage}/docs`;
|
|
468
468
|
}
|
|
@@ -764,9 +764,9 @@ var setConfigEnv = (config) => {
|
|
|
764
764
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
765
765
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
766
766
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
767
|
-
|
|
767
|
+
_chunkDMCSA7GDcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkDMCSA7GDcjs.LogLevel.DEBUG ? true : false
|
|
768
768
|
);
|
|
769
|
-
process.env.RUST_BACKTRACE =
|
|
769
|
+
process.env.RUST_BACKTRACE = _chunkDMCSA7GDcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkDMCSA7GDcjs.LogLevel.DEBUG ? "full" : "none";
|
|
770
770
|
}
|
|
771
771
|
if (config.skipConfigLogging !== void 0) {
|
|
772
772
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -886,13 +886,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
886
886
|
if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
887
887
|
let _workspaceRoot = workspaceRoot;
|
|
888
888
|
if (!_workspaceRoot) {
|
|
889
|
-
_workspaceRoot =
|
|
889
|
+
_workspaceRoot = _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, );
|
|
890
890
|
}
|
|
891
891
|
const configEnv = getConfigEnv();
|
|
892
892
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
893
893
|
if (!configFile) {
|
|
894
894
|
if (!skipLogs) {
|
|
895
|
-
|
|
895
|
+
_chunkDMCSA7GDcjs.writeWarning.call(void 0,
|
|
896
896
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
897
897
|
{ logLevel: "all" }
|
|
898
898
|
);
|
|
@@ -901,9 +901,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
901
901
|
return void 0;
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
const defaultConfig = await
|
|
905
|
-
result =
|
|
906
|
-
await
|
|
904
|
+
const defaultConfig = await _chunkDMCSA7GDcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
905
|
+
result = _chunkDMCSA7GDcjs.applyDefaultConfig.call(void 0,
|
|
906
|
+
await _chunkDMCSA7GDcjs.stormWorkspaceConfigSchema.parseAsync(
|
|
907
907
|
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
908
908
|
)
|
|
909
909
|
);
|
|
@@ -945,9 +945,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
945
945
|
);
|
|
946
946
|
setConfigEnv(config);
|
|
947
947
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
948
|
-
|
|
948
|
+
_chunkDMCSA7GDcjs.writeTrace.call(void 0,
|
|
949
949
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
950
|
-
${
|
|
950
|
+
${_chunkDMCSA7GDcjs.formatLogMessage.call(void 0, config)}`,
|
|
951
951
|
config
|
|
952
952
|
);
|
|
953
953
|
}
|
|
@@ -961,7 +961,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
|
961
961
|
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
962
962
|
let workspaceRoot = options.workspaceRoot;
|
|
963
963
|
if (!workspaceRoot) {
|
|
964
|
-
workspaceRoot =
|
|
964
|
+
workspaceRoot = _chunkDMCSA7GDcjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
965
965
|
}
|
|
966
966
|
return getConfig(workspaceRoot, skipLogs);
|
|
967
967
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDMCSA7GDcjs = require('./chunk-DMCSA7GD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -75,10 +75,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
75
75
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
76
76
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
_chunkDMCSA7GDcjs.writeWarning.call(void 0,
|
|
79
79
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
_chunkDMCSA7GDcjs.writeError.call(void 0,
|
|
82
82
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
83
83
|
);
|
|
84
84
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
4
|
var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
|
|
@@ -68,22 +68,22 @@ _chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
|
68
68
|
|
|
69
69
|
// ../config/src/schema.ts
|
|
70
70
|
_chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
71
|
-
var
|
|
72
|
-
var DarkColorSchema =
|
|
73
|
-
var LightColorSchema =
|
|
74
|
-
var BrandColorSchema =
|
|
75
|
-
var AlternateColorSchema =
|
|
76
|
-
var AccentColorSchema =
|
|
77
|
-
var LinkColorSchema =
|
|
78
|
-
var HelpColorSchema =
|
|
79
|
-
var SuccessColorSchema =
|
|
80
|
-
var InfoColorSchema =
|
|
81
|
-
var WarningColorSchema =
|
|
82
|
-
var DangerColorSchema =
|
|
83
|
-
var FatalColorSchema =
|
|
84
|
-
var PositiveColorSchema =
|
|
85
|
-
var NegativeColorSchema =
|
|
86
|
-
var DarkThemeColorConfigSchema =
|
|
71
|
+
var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
|
|
72
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
73
|
+
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
74
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
75
|
+
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
76
|
+
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
77
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
78
|
+
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
79
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
80
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
81
|
+
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
82
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
83
|
+
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
84
|
+
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
85
|
+
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
86
|
+
var DarkThemeColorConfigSchema = z.object({
|
|
87
87
|
foreground: LightColorSchema,
|
|
88
88
|
background: DarkColorSchema,
|
|
89
89
|
brand: BrandColorSchema,
|
|
@@ -99,7 +99,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
|
|
|
99
99
|
positive: PositiveColorSchema,
|
|
100
100
|
negative: NegativeColorSchema
|
|
101
101
|
});
|
|
102
|
-
var LightThemeColorConfigSchema =
|
|
102
|
+
var LightThemeColorConfigSchema = z.object({
|
|
103
103
|
foreground: DarkColorSchema,
|
|
104
104
|
background: LightColorSchema,
|
|
105
105
|
brand: BrandColorSchema,
|
|
@@ -115,11 +115,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
|
|
|
115
115
|
positive: PositiveColorSchema,
|
|
116
116
|
negative: NegativeColorSchema
|
|
117
117
|
});
|
|
118
|
-
var MultiThemeColorConfigSchema =
|
|
118
|
+
var MultiThemeColorConfigSchema = z.object({
|
|
119
119
|
dark: DarkThemeColorConfigSchema,
|
|
120
120
|
light: LightThemeColorConfigSchema
|
|
121
121
|
});
|
|
122
|
-
var SingleThemeColorConfigSchema =
|
|
122
|
+
var SingleThemeColorConfigSchema = z.object({
|
|
123
123
|
dark: DarkColorSchema,
|
|
124
124
|
light: LightColorSchema,
|
|
125
125
|
brand: BrandColorSchema,
|
|
@@ -135,8 +135,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
|
|
|
135
135
|
positive: PositiveColorSchema,
|
|
136
136
|
negative: NegativeColorSchema
|
|
137
137
|
});
|
|
138
|
-
var RegistryUrlConfigSchema =
|
|
139
|
-
var RegistryConfigSchema =
|
|
138
|
+
var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
139
|
+
var RegistryConfigSchema = z.object({
|
|
140
140
|
github: RegistryUrlConfigSchema,
|
|
141
141
|
npm: RegistryUrlConfigSchema,
|
|
142
142
|
cargo: RegistryUrlConfigSchema,
|
|
@@ -146,122 +146,122 @@ var RegistryConfigSchema = _zod2.default.object({
|
|
|
146
146
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
147
147
|
MultiThemeColorConfigSchema
|
|
148
148
|
).describe("Colors used for various workspace elements");
|
|
149
|
-
var ColorConfigMapSchema =
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
var ColorConfigMapSchema = z.union([
|
|
150
|
+
z.object({ base: ColorConfigSchema }),
|
|
151
|
+
z.record(z.string(), ColorConfigSchema)
|
|
152
152
|
]);
|
|
153
|
-
var ExtendsItemSchema =
|
|
153
|
+
var ExtendsItemSchema = z.string().trim().describe(
|
|
154
154
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
155
155
|
);
|
|
156
156
|
var ExtendsSchema = ExtendsItemSchema.or(
|
|
157
|
-
|
|
157
|
+
z.array(ExtendsItemSchema)
|
|
158
158
|
).describe(
|
|
159
159
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
160
160
|
);
|
|
161
|
-
var WorkspaceBotConfigSchema =
|
|
162
|
-
name:
|
|
161
|
+
var WorkspaceBotConfigSchema = z.object({
|
|
162
|
+
name: z.string().trim().default("stormie-bot").describe(
|
|
163
163
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
164
164
|
),
|
|
165
|
-
email:
|
|
165
|
+
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
166
166
|
}).describe(
|
|
167
167
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
168
168
|
);
|
|
169
|
-
var WorkspaceReleaseConfigSchema =
|
|
170
|
-
banner:
|
|
169
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
170
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
|
|
171
171
|
"A URL to a banner image used to display the workspace's release"
|
|
172
172
|
),
|
|
173
|
-
header:
|
|
173
|
+
header: z.string().trim().optional().describe(
|
|
174
174
|
"A header message appended to the start of the workspace's release notes"
|
|
175
175
|
),
|
|
176
|
-
footer:
|
|
176
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
|
|
177
177
|
"A footer message appended to the end of the workspace's release notes"
|
|
178
178
|
)
|
|
179
179
|
}).describe("The workspace's release config used during the release process");
|
|
180
|
-
var WorkspaceAccountConfigSchema =
|
|
181
|
-
twitter:
|
|
182
|
-
discord:
|
|
183
|
-
telegram:
|
|
184
|
-
slack:
|
|
185
|
-
medium:
|
|
186
|
-
github:
|
|
180
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
181
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
182
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
183
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
184
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
185
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
186
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
187
187
|
}).describe(
|
|
188
188
|
"The workspace's account config used to store various social media links"
|
|
189
189
|
);
|
|
190
|
-
var WorkspaceDirectoryConfigSchema =
|
|
191
|
-
cache:
|
|
190
|
+
var WorkspaceDirectoryConfigSchema = z.object({
|
|
191
|
+
cache: z.string().trim().optional().describe(
|
|
192
192
|
"The directory used to store the environment's cached file data"
|
|
193
193
|
),
|
|
194
|
-
data:
|
|
195
|
-
config:
|
|
194
|
+
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
195
|
+
config: z.string().trim().optional().describe(
|
|
196
196
|
"The directory used to store the environment's configuration files"
|
|
197
197
|
),
|
|
198
|
-
temp:
|
|
199
|
-
log:
|
|
200
|
-
build:
|
|
198
|
+
temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
199
|
+
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
200
|
+
build: z.string().trim().default("dist").describe(
|
|
201
201
|
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
202
202
|
)
|
|
203
203
|
}).describe(
|
|
204
204
|
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
205
205
|
);
|
|
206
|
-
var errorConfigSchema =
|
|
207
|
-
codesFile:
|
|
208
|
-
url:
|
|
206
|
+
var errorConfigSchema = z.object({
|
|
207
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
208
|
+
url: z.string().trim().url().optional().describe(
|
|
209
209
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
210
210
|
)
|
|
211
211
|
}).describe("The workspace's error config used during the error process");
|
|
212
|
-
var organizationConfigSchema =
|
|
213
|
-
name:
|
|
214
|
-
description:
|
|
215
|
-
logo:
|
|
216
|
-
icon:
|
|
217
|
-
url:
|
|
212
|
+
var organizationConfigSchema = z.object({
|
|
213
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
214
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
215
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
216
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
217
|
+
url: z.string().trim().url().optional().describe(
|
|
218
218
|
"A URL to a page that provides more information about the organization"
|
|
219
219
|
)
|
|
220
220
|
}).describe("The workspace's organization details");
|
|
221
|
-
var stormWorkspaceConfigSchema =
|
|
222
|
-
$schema:
|
|
223
|
-
"https://
|
|
224
|
-
).
|
|
225
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
221
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
222
|
+
$schema: z.string().trim().default(
|
|
223
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
224
|
+
).describe(
|
|
225
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
226
226
|
),
|
|
227
227
|
extends: ExtendsSchema.optional(),
|
|
228
|
-
name:
|
|
228
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
229
229
|
"The name of the service/package/scope using this configuration"
|
|
230
230
|
),
|
|
231
|
-
namespace:
|
|
232
|
-
organization: organizationConfigSchema.or(
|
|
231
|
+
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
232
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
233
233
|
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
234
234
|
),
|
|
235
|
-
repository:
|
|
236
|
-
license:
|
|
237
|
-
homepage:
|
|
238
|
-
docs:
|
|
239
|
-
portal:
|
|
240
|
-
licensing:
|
|
241
|
-
contact:
|
|
242
|
-
support:
|
|
235
|
+
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
236
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
237
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
238
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
239
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
240
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
241
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
242
|
+
support: z.string().trim().url().optional().describe(
|
|
243
243
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
244
244
|
),
|
|
245
|
-
branch:
|
|
246
|
-
preid:
|
|
247
|
-
owner:
|
|
245
|
+
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
246
|
+
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
247
|
+
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
248
248
|
bot: WorkspaceBotConfigSchema,
|
|
249
249
|
release: WorkspaceReleaseConfigSchema,
|
|
250
250
|
account: WorkspaceAccountConfigSchema,
|
|
251
251
|
error: errorConfigSchema,
|
|
252
|
-
mode:
|
|
253
|
-
workspaceRoot:
|
|
254
|
-
externalPackagePatterns:
|
|
252
|
+
mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
|
|
253
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
254
|
+
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
255
255
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
256
256
|
),
|
|
257
|
-
skipCache:
|
|
257
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
258
258
|
directories: WorkspaceDirectoryConfigSchema,
|
|
259
|
-
packageManager:
|
|
259
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
260
260
|
"The JavaScript/TypeScript package manager used by the repository"
|
|
261
261
|
),
|
|
262
|
-
timezone:
|
|
263
|
-
locale:
|
|
264
|
-
logLevel:
|
|
262
|
+
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
263
|
+
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
264
|
+
logLevel: z.enum([
|
|
265
265
|
"silent",
|
|
266
266
|
"fatal",
|
|
267
267
|
"error",
|
|
@@ -274,17 +274,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
274
274
|
]).default("info").describe(
|
|
275
275
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
276
276
|
),
|
|
277
|
-
skipConfigLogging:
|
|
277
|
+
skipConfigLogging: z.boolean().optional().describe(
|
|
278
278
|
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
279
279
|
),
|
|
280
280
|
registry: RegistryConfigSchema,
|
|
281
|
-
configFile:
|
|
281
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
282
282
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
283
283
|
),
|
|
284
284
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
285
285
|
"Storm theme config values used for styling various package elements"
|
|
286
286
|
),
|
|
287
|
-
extensions:
|
|
287
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
288
288
|
}).describe(
|
|
289
289
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
290
290
|
);
|