@storm-software/esbuild 0.45.9 → 0.45.10
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-2JMFLXH3.cjs} +28 -28
- package/dist/{chunk-JPZ25OGN.cjs → chunk-3JFDE22F.cjs} +22 -22
- package/dist/{chunk-G5UIJPDD.js → chunk-3KAQDHXL.js} +2 -2
- package/dist/{chunk-AJHP5LOA.js → chunk-3YVOWCAB.js} +1 -1
- package/dist/{chunk-6LRS4DYX.cjs → chunk-6L3YNXKR.cjs} +6 -6
- package/dist/{chunk-VS6CDXH5.js → chunk-DIL4WQTJ.js} +7 -7
- package/dist/{chunk-24MAAJ23.cjs → chunk-F2NJ73NZ.cjs} +3 -3
- package/dist/{chunk-4BLTG225.js → chunk-ILM53PNV.js} +1 -1
- package/dist/{chunk-BKOUQVED.js → chunk-KJK3P5UO.js} +1 -1
- package/dist/{chunk-EZI7IWCO.cjs → chunk-QL4ZOUN7.cjs} +3 -3
- package/dist/{chunk-G4SJWWJB.cjs → chunk-RET46WWD.cjs} +3 -3
- package/dist/{chunk-LVJIYUGI.js → chunk-SAG2CV6H.js} +2 -2
- package/dist/{chunk-XX2GNHNI.js → chunk-SS4BBXDD.js} +1 -1
- package/dist/{chunk-Z2W5FM4B.js → chunk-SS6CH5JE.js} +2 -2
- package/dist/{chunk-VJOUBIZH.js → chunk-TOMSZL2Z.js} +1 -1
- package/dist/{chunk-CNQNTV4A.cjs → chunk-UFQFYP6V.cjs} +10 -10
- package/dist/{chunk-B6E7GJXU.js → chunk-VILCU64S.js} +3 -3
- package/dist/{chunk-HBIJ4J5R.cjs → chunk-VMF7XRRH.cjs} +84 -84
- package/dist/{chunk-ZMPH4C3L.cjs → chunk-VUTUHYN5.cjs} +5 -5
- package/dist/{chunk-NJO2B5FC.cjs → chunk-XYMSPNIE.cjs} +3 -3
- 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 _chunkVUTUHYN5cjs = require('./chunk-VUTUHYN5.cjs');
|
|
4
|
+
require('./chunk-2JMFLXH3.cjs');
|
|
5
|
+
require('./chunk-VMF7XRRH.cjs');
|
|
6
6
|
require('./chunk-REAX6FSO.cjs');
|
|
7
7
|
require('./chunk-4ICWACJM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkVUTUHYN5cjs.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-SS6CH5JE.js";
|
|
4
|
+
import "./chunk-3YVOWCAB.js";
|
|
5
|
+
import "./chunk-3KAQDHXL.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 _chunk3JFDE22Fcjs = require('./chunk-3JFDE22F.cjs');
|
|
4
|
+
require('./chunk-F2NJ73NZ.cjs');
|
|
5
|
+
require('./chunk-VUTUHYN5.cjs');
|
|
6
|
+
require('./chunk-QL4ZOUN7.cjs');
|
|
7
|
+
require('./chunk-UFQFYP6V.cjs');
|
|
8
|
+
require('./chunk-XYMSPNIE.cjs');
|
|
9
|
+
require('./chunk-6L3YNXKR.cjs');
|
|
10
|
+
require('./chunk-2JMFLXH3.cjs');
|
|
11
|
+
require('./chunk-RET46WWD.cjs');
|
|
12
|
+
require('./chunk-VMF7XRRH.cjs');
|
|
13
13
|
require('./chunk-REAX6FSO.cjs');
|
|
14
14
|
require('./chunk-4ICWACJM.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.build =
|
|
17
|
+
exports.build = _chunk3JFDE22Fcjs.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-DIL4WQTJ.js";
|
|
4
|
+
import "./chunk-TOMSZL2Z.js";
|
|
5
|
+
import "./chunk-SS6CH5JE.js";
|
|
6
|
+
import "./chunk-KJK3P5UO.js";
|
|
7
|
+
import "./chunk-VILCU64S.js";
|
|
8
|
+
import "./chunk-SS4BBXDD.js";
|
|
9
|
+
import "./chunk-SAG2CV6H.js";
|
|
10
|
+
import "./chunk-3YVOWCAB.js";
|
|
11
|
+
import "./chunk-ILM53PNV.js";
|
|
12
|
+
import "./chunk-3KAQDHXL.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 _chunkVMF7XRRHcjs = require('./chunk-VMF7XRRH.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
|
+
_chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.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 : _chunkVMF7XRRHcjs.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 || _chunkVMF7XRRHcjs.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 : _chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.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
|
+
) ? _chunkVMF7XRRHcjs.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_`) && _chunkVMF7XRRHcjs.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 === _chunkVMF7XRRHcjs.STORM_DEFAULT_DOCS) {
|
|
457
|
+
if (config.homepage === _chunkVMF7XRRHcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
458
|
+
config.docs = `${_chunkVMF7XRRHcjs.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 === _chunkVMF7XRRHcjs.STORM_DEFAULT_LICENSING) {
|
|
464
|
+
if (config.homepage === _chunkVMF7XRRHcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
465
|
+
config.licensing = `${_chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVMF7XRRHcjs.LogLevel.DEBUG ? true : false
|
|
768
768
|
);
|
|
769
|
-
process.env.RUST_BACKTRACE =
|
|
769
|
+
process.env.RUST_BACKTRACE = _chunkVMF7XRRHcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVMF7XRRHcjs.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 = _chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.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 _chunkVMF7XRRHcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
905
|
+
result = _chunkVMF7XRRHcjs.applyDefaultConfig.call(void 0,
|
|
906
|
+
await _chunkVMF7XRRHcjs.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
|
+
_chunkVMF7XRRHcjs.writeTrace.call(void 0,
|
|
949
949
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
950
|
-
${
|
|
950
|
+
${_chunkVMF7XRRHcjs.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 = _chunkVMF7XRRHcjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
965
965
|
}
|
|
966
966
|
return getConfig(workspaceRoot, skipLogs);
|
|
967
967
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
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 _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
|
-
var
|
|
3
|
+
var _chunkF2NJ73NZcjs = require('./chunk-F2NJ73NZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVUTUHYN5cjs = require('./chunk-VUTUHYN5.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkQL4ZOUN7cjs = require('./chunk-QL4ZOUN7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUFQFYP6Vcjs = require('./chunk-UFQFYP6V.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk6L3YNXKRcjs = require('./chunk-6L3YNXKR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkRET46WWDcjs = require('./chunk-RET46WWD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ var _chunkG4SJWWJBcjs = require('./chunk-G4SJWWJB.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkVMF7XRRHcjs = require('./chunk-VMF7XRRH.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
@@ -35,17 +35,17 @@ var _globby = require('globby');
|
|
|
35
35
|
async function reportResults(context) {
|
|
36
36
|
if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
|
|
37
37
|
if (context.result.warnings.length > 0) {
|
|
38
|
-
|
|
38
|
+
_chunkVMF7XRRHcjs.writeWarning.call(void 0,
|
|
39
39
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
40
40
|
context.workspaceConfig
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
_chunkVMF7XRRHcjs.writeSuccess.call(void 0,
|
|
44
44
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
45
45
|
context.workspaceConfig
|
|
46
46
|
);
|
|
47
47
|
} else if (_optionalChain([context, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.errors]) && _optionalChain([context, 'access', _6 => _6.result, 'optionalAccess', _7 => _7.errors, 'access', _8 => _8.length]) > 0) {
|
|
48
|
-
|
|
48
|
+
_chunkVMF7XRRHcjs.writeError.call(void 0,
|
|
49
49
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
50
50
|
context.workspaceConfig
|
|
51
51
|
);
|
|
@@ -74,7 +74,7 @@ async function dependencyCheck(options) {
|
|
|
74
74
|
write: false,
|
|
75
75
|
// no need to write for analysis
|
|
76
76
|
outdir: "out",
|
|
77
|
-
plugins: [
|
|
77
|
+
plugins: [_chunkF2NJ73NZcjs.depsCheckPlugin.call(void 0, options.bundle)]
|
|
78
78
|
});
|
|
79
79
|
await buildPromise.catch(() => {
|
|
80
80
|
});
|
|
@@ -82,36 +82,36 @@ async function dependencyCheck(options) {
|
|
|
82
82
|
}
|
|
83
83
|
async function cleanOutputPath(context) {
|
|
84
84
|
if (context.clean !== false && context.outputPath) {
|
|
85
|
-
|
|
85
|
+
_chunkVMF7XRRHcjs.writeDebug.call(void 0,
|
|
86
86
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
87
87
|
context.workspaceConfig
|
|
88
88
|
);
|
|
89
|
-
const stopwatch =
|
|
90
|
-
await
|
|
89
|
+
const stopwatch = _chunkVMF7XRRHcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
90
|
+
await _chunkQL4ZOUN7cjs.cleanDirectories.call(void 0, context.outputPath);
|
|
91
91
|
stopwatch();
|
|
92
92
|
}
|
|
93
93
|
return context;
|
|
94
94
|
}
|
|
95
95
|
async function build2(options) {
|
|
96
|
-
|
|
97
|
-
const stopwatch =
|
|
96
|
+
_chunkVMF7XRRHcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
97
|
+
const stopwatch = _chunkVMF7XRRHcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
98
98
|
try {
|
|
99
99
|
const opts = Array.isArray(options) ? options : [options];
|
|
100
100
|
if (opts.length === 0) {
|
|
101
101
|
throw new Error("No build options were provided");
|
|
102
102
|
}
|
|
103
|
-
const context = await
|
|
103
|
+
const context = await _chunkUFQFYP6Vcjs.resolveContext.call(void 0, options);
|
|
104
104
|
await cleanOutputPath(context);
|
|
105
105
|
await Promise.all([
|
|
106
106
|
dependencyCheck(context.options),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_chunk6L3YNXKRcjs.generatePackageJson.call(void 0, context),
|
|
108
|
+
_chunkVUTUHYN5cjs.copyBuildAssets.call(void 0, context),
|
|
109
|
+
_chunkRET46WWDcjs.executeTsup.call(void 0, context)
|
|
110
110
|
]);
|
|
111
111
|
await reportResults(context);
|
|
112
|
-
|
|
112
|
+
_chunkVMF7XRRHcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
113
113
|
} catch (error) {
|
|
114
|
-
|
|
114
|
+
_chunkVMF7XRRHcjs.writeFatal.call(void 0,
|
|
115
115
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
116
116
|
);
|
|
117
117
|
throw error;
|
|
@@ -68,7 +68,7 @@ init_esm_shims();
|
|
|
68
68
|
|
|
69
69
|
// ../config/src/schema.ts
|
|
70
70
|
init_esm_shims();
|
|
71
|
-
import z from "zod";
|
|
71
|
+
import * as z from "zod/v4";
|
|
72
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
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
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");
|
|
@@ -284,7 +284,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
284
284
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
285
285
|
"Storm theme config values used for styling various package elements"
|
|
286
286
|
),
|
|
287
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
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
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2JMFLXH3cjs = require('./chunk-2JMFLXH3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkVMF7XRRHcjs = require('./chunk-VMF7XRRH.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
|
|
@@ -20,8 +20,8 @@ var _fs = require('fs');
|
|
|
20
20
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
21
21
|
async function generatePackageJson(context) {
|
|
22
22
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkREAX6FSOcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
23
|
-
|
|
24
|
-
const stopwatch =
|
|
23
|
+
_chunkVMF7XRRHcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
24
|
+
const stopwatch = _chunkVMF7XRRHcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
25
25
|
const packageJsonPath = _chunkREAX6FSOcjs.joinPaths.call(void 0,
|
|
26
26
|
context.options.projectRoot,
|
|
27
27
|
"project.json"
|
|
@@ -41,13 +41,13 @@ async function generatePackageJson(context) {
|
|
|
41
41
|
if (!packageJson) {
|
|
42
42
|
throw new Error("Cannot find package.json configuration file");
|
|
43
43
|
}
|
|
44
|
-
packageJson = await
|
|
44
|
+
packageJson = await _chunk2JMFLXH3cjs.addPackageDependencies.call(void 0,
|
|
45
45
|
context.workspaceConfig.workspaceRoot,
|
|
46
46
|
context.options.projectRoot,
|
|
47
47
|
context.projectName,
|
|
48
48
|
packageJson
|
|
49
49
|
);
|
|
50
|
-
packageJson = await
|
|
50
|
+
packageJson = await _chunk2JMFLXH3cjs.addWorkspacePackageJsonFields.call(void 0,
|
|
51
51
|
context.workspaceConfig,
|
|
52
52
|
context.options.projectRoot,
|
|
53
53
|
context.sourceRoot,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
depsCheckPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TOMSZL2Z.js";
|
|
4
4
|
import {
|
|
5
5
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SS6CH5JE.js";
|
|
7
7
|
import {
|
|
8
8
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KJK3P5UO.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VILCU64S.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SAG2CV6H.js";
|
|
16
16
|
import {
|
|
17
17
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ILM53PNV.js";
|
|
19
19
|
import {
|
|
20
20
|
getStopwatch,
|
|
21
21
|
writeDebug,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeFatal,
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3KAQDHXL.js";
|
|
27
27
|
import {
|
|
28
28
|
init_esm_shims
|
|
29
29
|
} from "./chunk-GL7N7ANS.js";
|
|
@@ -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 _chunkVMF7XRRHcjs = require('./chunk-VMF7XRRH.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
|
+
_chunkVMF7XRRHcjs.writeWarning.call(void 0,
|
|
79
79
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
_chunkVMF7XRRHcjs.writeError.call(void 0,
|
|
82
82
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
83
83
|
);
|
|
84
84
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVMF7XRRHcjs = require('./chunk-VMF7XRRH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
@@ -10,8 +10,8 @@ var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
|
10
10
|
_chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
var _promises = require('fs/promises');
|
|
12
12
|
async function clean(name = "ESBuild", directory, config) {
|
|
13
|
-
|
|
14
|
-
const stopwatch =
|
|
13
|
+
_chunkVMF7XRRHcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
14
|
+
const stopwatch = _chunkVMF7XRRHcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
15
15
|
await cleanDirectories(directory);
|
|
16
16
|
stopwatch();
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard2(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 _nullishCoalesce2(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain2(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; } var _class2;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVMF7XRRHcjs = require('./chunk-VMF7XRRH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
|
|
@@ -2668,11 +2668,11 @@ module.exports = exports.default;
|
|
|
2668
2668
|
_chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
2669
2669
|
var import_tsup = _chunk4ICWACJMcjs.__toESM.call(void 0, require_dist(), 1);
|
|
2670
2670
|
async function executeTsup(context) {
|
|
2671
|
-
|
|
2671
|
+
_chunkVMF7XRRHcjs.writeDebug.call(void 0,
|
|
2672
2672
|
` \u{1F680} Running ${context.options.name} build`,
|
|
2673
2673
|
context.workspaceConfig
|
|
2674
2674
|
);
|
|
2675
|
-
const stopwatch =
|
|
2675
|
+
const stopwatch = _chunkVMF7XRRHcjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
2676
2676
|
await (0, import_tsup.build)({
|
|
2677
2677
|
...context.options,
|
|
2678
2678
|
outDir: context.options.distDir ? _chunkREAX6FSOcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3YVOWCAB.js";
|
|
5
5
|
import {
|
|
6
6
|
getStopwatch,
|
|
7
7
|
writeDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3KAQDHXL.js";
|
|
9
9
|
import {
|
|
10
10
|
joinPaths
|
|
11
11
|
} from "./chunk-A7I6K5HC.js";
|