@storm-software/esbuild 0.23.12 → 0.23.14
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/build.cjs +8 -8
- package/dist/build.js +7 -7
- package/dist/{chunk-ZMQZFCEU.cjs → chunk-2Y2YLC5U.cjs} +39 -39
- package/dist/{chunk-EKAZKXNP.cjs → chunk-6PKWFA3L.cjs} +43 -37
- package/dist/{chunk-7B5IS3JU.cjs → chunk-7GH6IQLM.cjs} +3 -3
- package/dist/{chunk-7BNTMCVO.js → chunk-A3GRRLNW.js} +1 -1
- package/dist/{chunk-RAOTNBZB.js → chunk-DSL7ZVCY.js} +1 -1
- package/dist/{chunk-TVEZYOW4.cjs → chunk-EZPAK54E.cjs} +2 -2
- package/dist/{chunk-WRQFX4AD.js → chunk-FSNCUCKT.js} +4 -4
- package/dist/{chunk-NZA22OTO.js → chunk-MHEFQLIT.js} +18 -12
- package/dist/{chunk-GUU57L7S.js → chunk-O7T743WQ.js} +26 -15
- package/dist/{chunk-2TSSKHLN.js → chunk-RZ4ZXSK6.js} +1 -1
- package/dist/{chunk-YMPJ3GHZ.cjs → chunk-SUAWGD24.cjs} +26 -15
- package/dist/{chunk-HETBF2XF.js → chunk-TR3LJQBE.js} +1 -1
- package/dist/{chunk-URNZZJ4H.cjs → chunk-U5LZSTP3.cjs} +3 -3
- package/dist/{chunk-W7IOYOPN.cjs → chunk-WLOCBN4Z.cjs} +2 -2
- package/dist/clean.cjs +3 -3
- package/dist/clean.d.cts +3 -0
- package/dist/clean.d.ts +3 -0
- package/dist/clean.js +2 -2
- package/dist/config.cjs +5 -5
- package/dist/config.js +4 -4
- package/dist/index.cjs +8 -8
- package/dist/index.js +7 -7
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- 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/build.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunk2Y2YLC5Ucjs = require('./chunk-2Y2YLC5U.cjs');
|
|
5
|
+
require('./chunk-7GH6IQLM.cjs');
|
|
6
|
+
require('./chunk-6PKWFA3L.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-EZPAK54E.cjs');
|
|
10
10
|
require('./chunk-SSEYS7LI.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-WLOCBN4Z.cjs');
|
|
12
|
+
require('./chunk-U5LZSTP3.cjs');
|
|
13
|
+
require('./chunk-SUAWGD24.cjs');
|
|
14
14
|
require('./chunk-XITTOHOG.cjs');
|
|
15
15
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
16
16
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunk2Y2YLC5Ucjs.build; exports.cleanOutputPath = _chunk2Y2YLC5Ucjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
cleanOutputPath
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-FSNCUCKT.js";
|
|
5
|
+
import "./chunk-DSL7ZVCY.js";
|
|
6
|
+
import "./chunk-MHEFQLIT.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TR3LJQBE.js";
|
|
10
10
|
import "./chunk-Q3LOGZKI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-RZ4ZXSK6.js";
|
|
12
|
+
import "./chunk-A3GRRLNW.js";
|
|
13
|
+
import "./chunk-O7T743WQ.js";
|
|
14
14
|
import "./chunk-YMTDVMD6.js";
|
|
15
15
|
import "./chunk-YNQ45EAM.js";
|
|
16
16
|
import "./chunk-GWG4HOQ6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _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
|
-
var
|
|
3
|
+
var _chunk7GH6IQLMcjs = require('./chunk-7GH6IQLM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -14,10 +14,10 @@ var _chunk7B5IS3JUcjs = require('./chunk-7B5IS3JU.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk6PKWFA3Lcjs = require('./chunk-6PKWFA3L.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkU5LZSTP3cjs = require('./chunk-U5LZSTP3.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ var _chunkURNZZJ4Hcjs = require('./chunk-URNZZJ4H.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -278,9 +278,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
278
278
|
if (!workspaceRoot) {
|
|
279
279
|
throw new Error("Cannot find Nx workspace root");
|
|
280
280
|
}
|
|
281
|
-
const config = await
|
|
282
|
-
|
|
283
|
-
const stopwatch =
|
|
281
|
+
const config = await _chunk6PKWFA3Lcjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
282
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
283
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
284
284
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
285
285
|
exitOnError: true
|
|
286
286
|
});
|
|
@@ -295,17 +295,17 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
295
295
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
296
296
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
297
297
|
}
|
|
298
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
298
|
+
const options = _defu2.default.call(void 0, userOptions, _chunk6PKWFA3Lcjs.DEFAULT_BUILD_OPTIONS);
|
|
299
299
|
options.name ??= `${projectName}-${options.format}`;
|
|
300
|
-
options.target ??=
|
|
300
|
+
options.target ??= _chunk6PKWFA3Lcjs.DEFAULT_TARGET;
|
|
301
301
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
302
302
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
303
303
|
throw new Error("Cannot find package.json configuration");
|
|
304
304
|
}
|
|
305
305
|
const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
|
|
306
306
|
const packageJson = JSON.parse(packageJsonFile);
|
|
307
|
-
const outExtension =
|
|
308
|
-
const env =
|
|
307
|
+
const outExtension = _chunk6PKWFA3Lcjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
|
|
308
|
+
const env = _chunk6PKWFA3Lcjs.getEnv.call(void 0, "esbuild", options);
|
|
309
309
|
const result = {
|
|
310
310
|
...options,
|
|
311
311
|
config,
|
|
@@ -325,7 +325,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
325
325
|
...userOptions,
|
|
326
326
|
tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
327
327
|
format: options.format || "cjs",
|
|
328
|
-
entryPoints: await
|
|
328
|
+
entryPoints: await _chunk6PKWFA3Lcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
329
329
|
"./src/index.ts"
|
|
330
330
|
], userOptions.emitOnAll),
|
|
331
331
|
outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -336,7 +336,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
336
336
|
projectGraph,
|
|
337
337
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
338
338
|
minify: userOptions.minify || !userOptions.debug,
|
|
339
|
-
verbose: userOptions.verbose ||
|
|
339
|
+
verbose: userOptions.verbose || _chunkSUAWGD24cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
340
340
|
includeSrc: userOptions.includeSrc === true,
|
|
341
341
|
metafile: userOptions.metafile !== false,
|
|
342
342
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -350,8 +350,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
350
350
|
outExtension,
|
|
351
351
|
footer: userOptions.footer,
|
|
352
352
|
banner: {
|
|
353
|
-
js: options.banner ||
|
|
354
|
-
css: options.banner ||
|
|
353
|
+
js: options.banner || _chunk6PKWFA3Lcjs.DEFAULT_COMPILED_BANNER,
|
|
354
|
+
css: options.banner || _chunk6PKWFA3Lcjs.DEFAULT_COMPILED_BANNER
|
|
355
355
|
},
|
|
356
356
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
357
357
|
treeShaking: options.format === "esm",
|
|
@@ -377,14 +377,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
377
377
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
378
378
|
].filter(Boolean)
|
|
379
379
|
};
|
|
380
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
380
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunk6PKWFA3Lcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
381
381
|
stopwatch();
|
|
382
382
|
return result;
|
|
383
383
|
}, "resolveOptions");
|
|
384
384
|
async function generatePackageJson(context2) {
|
|
385
385
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
386
|
-
|
|
387
|
-
const stopwatch =
|
|
386
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
387
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
388
388
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
389
389
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
390
390
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -394,11 +394,11 @@ async function generatePackageJson(context2) {
|
|
|
394
394
|
if (!packageJson) {
|
|
395
395
|
throw new Error("Cannot find package.json configuration file");
|
|
396
396
|
}
|
|
397
|
-
packageJson = await
|
|
398
|
-
packageJson = await
|
|
397
|
+
packageJson = await _chunk6PKWFA3Lcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
398
|
+
packageJson = await _chunk6PKWFA3Lcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
399
399
|
packageJson.exports ??= {};
|
|
400
400
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
401
|
-
packageJson.exports["."] ??=
|
|
401
|
+
packageJson.exports["."] ??= _chunk6PKWFA3Lcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
402
402
|
let entryPoints = [
|
|
403
403
|
{
|
|
404
404
|
in: "./src/index.ts",
|
|
@@ -416,7 +416,7 @@ async function generatePackageJson(context2) {
|
|
|
416
416
|
const split = entryPoint.out.split(".");
|
|
417
417
|
split.pop();
|
|
418
418
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
419
|
-
packageJson.exports[`./${entry}`] ??=
|
|
419
|
+
packageJson.exports[`./${entry}`] ??= _chunk6PKWFA3Lcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -454,8 +454,8 @@ async function generateContext(getOptions) {
|
|
|
454
454
|
}
|
|
455
455
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
456
456
|
async function executeEsBuild(context2) {
|
|
457
|
-
|
|
458
|
-
const stopwatch =
|
|
457
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
458
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
459
459
|
if (process.env.WATCH === "true") {
|
|
460
460
|
const ctx = await esbuild.context(context2.options);
|
|
461
461
|
watch(ctx, context2.options);
|
|
@@ -471,9 +471,9 @@ async function executeEsBuild(context2) {
|
|
|
471
471
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
472
472
|
async function copyBuildAssets(context2) {
|
|
473
473
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
474
|
-
|
|
475
|
-
const stopwatch =
|
|
476
|
-
await
|
|
474
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
475
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
476
|
+
await _chunk6PKWFA3Lcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
477
477
|
stopwatch();
|
|
478
478
|
}
|
|
479
479
|
return context2;
|
|
@@ -482,9 +482,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
482
482
|
async function reportResults(context2) {
|
|
483
483
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
484
484
|
if (context2.result.warnings.length > 0) {
|
|
485
|
-
|
|
485
|
+
_chunkSUAWGD24cjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
_chunkSUAWGD24cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -510,7 +510,7 @@ async function dependencyCheck(options) {
|
|
|
510
510
|
write: false,
|
|
511
511
|
outdir: "out",
|
|
512
512
|
plugins: [
|
|
513
|
-
|
|
513
|
+
_chunkU5LZSTP3cjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
514
514
|
]
|
|
515
515
|
});
|
|
516
516
|
await buildPromise.catch(() => {
|
|
@@ -520,17 +520,17 @@ async function dependencyCheck(options) {
|
|
|
520
520
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
521
521
|
async function cleanOutputPath(context2) {
|
|
522
522
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
523
|
-
|
|
524
|
-
const stopwatch =
|
|
525
|
-
await
|
|
523
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
524
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
525
|
+
await _chunk7GH6IQLMcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
526
526
|
stopwatch();
|
|
527
527
|
}
|
|
528
528
|
return context2;
|
|
529
529
|
}
|
|
530
530
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
531
531
|
async function build2(options) {
|
|
532
|
-
|
|
533
|
-
const stopwatch =
|
|
532
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
533
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
534
534
|
try {
|
|
535
535
|
const opts = Array.isArray(options) ? options : [
|
|
536
536
|
options
|
|
@@ -540,9 +540,9 @@ async function build2(options) {
|
|
|
540
540
|
}
|
|
541
541
|
void transduce.async(opts, dependencyCheck);
|
|
542
542
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
543
|
-
|
|
543
|
+
_chunkSUAWGD24cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
544
544
|
} catch (error) {
|
|
545
|
-
|
|
545
|
+
_chunkSUAWGD24cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
546
546
|
throw error;
|
|
547
547
|
} finally {
|
|
548
548
|
stopwatch();
|
|
@@ -570,9 +570,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
570
570
|
return context2.rebuild();
|
|
571
571
|
});
|
|
572
572
|
if (rebuildResult instanceof Error) {
|
|
573
|
-
|
|
573
|
+
_chunkSUAWGD24cjs.writeError.call(void 0, rebuildResult.message);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
576
576
|
}, 10);
|
|
577
577
|
changeWatcher.on("change", fastRebuild);
|
|
578
578
|
return void 0;
|
|
@@ -6,13 +6,13 @@ var _chunkS6M44SSZcjs = require('./chunk-S6M44SSZ.cjs');
|
|
|
6
6
|
var _chunkWRBUO7H6cjs = require('./chunk-WRBUO7H6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkEZPAK54Ecjs = require('./chunk-EZPAK54E.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkWLOCBN4Zcjs = require('./chunk-WLOCBN4Z.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunkW7IOYOPNcjs = require('./chunk-W7IOYOPN.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -97,7 +97,7 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
|
|
|
97
97
|
output: "src/"
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
101
101
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
102
102
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
103
103
|
projectDir: projectRoot,
|
|
@@ -107,7 +107,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
107
107
|
});
|
|
108
108
|
await assetHandler.processAllAssetsOnce();
|
|
109
109
|
if (includeSrc === true) {
|
|
110
|
-
|
|
110
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
111
111
|
const files = await _glob.glob.call(void 0, [
|
|
112
112
|
_chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
113
113
|
_chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -145,7 +145,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
if (localPackages.length > 0) {
|
|
148
|
-
|
|
148
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
149
149
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
150
150
|
if (!ret[localPackage.name]) {
|
|
151
151
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -167,12 +167,12 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
167
167
|
return ret;
|
|
168
168
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
169
169
|
} else {
|
|
170
|
-
|
|
170
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
171
171
|
}
|
|
172
172
|
return packageJson;
|
|
173
173
|
}, "addPackageDependencies");
|
|
174
174
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
175
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
175
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, );
|
|
176
176
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
177
177
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
178
178
|
packageJson.type ??= "module";
|
|
@@ -241,7 +241,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
241
241
|
var _c12 = require('c12');
|
|
242
242
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
243
243
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
244
|
-
const workspacePath = filePath ||
|
|
244
|
+
const workspacePath = filePath || _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
245
245
|
const configs = await Promise.all([
|
|
246
246
|
_c12.loadConfig.call(void 0, {
|
|
247
247
|
cwd: workspacePath,
|
|
@@ -270,12 +270,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
270
270
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
271
271
|
}, "getConfigFileByName");
|
|
272
272
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
273
|
-
const workspacePath = filePath ? filePath :
|
|
274
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
273
|
+
const workspacePath = filePath ? filePath : _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
274
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
275
275
|
let config = result.config;
|
|
276
276
|
const configFile = result.configFile;
|
|
277
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
278
|
-
|
|
277
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
278
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
279
279
|
logLevel: "all"
|
|
280
280
|
});
|
|
281
281
|
}
|
|
@@ -283,9 +283,11 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
283
283
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
284
284
|
for (const result2 of results) {
|
|
285
285
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
287
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
288
|
+
logLevel: "all"
|
|
289
|
+
});
|
|
290
|
+
}
|
|
289
291
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
290
292
|
}
|
|
291
293
|
}
|
|
@@ -361,23 +363,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
361
363
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
362
364
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
363
365
|
},
|
|
364
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ?
|
|
366
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkSUAWGD24cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
367
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
365
368
|
};
|
|
366
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
369
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkSUAWGD24cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
367
370
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
368
371
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
369
372
|
return ret;
|
|
370
373
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
371
|
-
if (config.docs ===
|
|
372
|
-
if (config.homepage ===
|
|
373
|
-
config.docs = `${
|
|
374
|
+
if (config.docs === _chunkSUAWGD24cjs.STORM_DEFAULT_DOCS) {
|
|
375
|
+
if (config.homepage === _chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
376
|
+
config.docs = `${_chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
374
377
|
} else {
|
|
375
378
|
config.docs = `${config.homepage}/docs`;
|
|
376
379
|
}
|
|
377
380
|
}
|
|
378
|
-
if (config.licensing ===
|
|
379
|
-
if (config.homepage ===
|
|
380
|
-
config.licensing = `${
|
|
381
|
+
if (config.licensing === _chunkSUAWGD24cjs.STORM_DEFAULT_LICENSING) {
|
|
382
|
+
if (config.homepage === _chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
383
|
+
config.licensing = `${_chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
381
384
|
} else {
|
|
382
385
|
config.licensing = `${config.homepage}/docs`;
|
|
383
386
|
}
|
|
@@ -593,8 +596,11 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
593
596
|
if (config.logLevel) {
|
|
594
597
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
595
598
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
596
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
597
|
-
process.env.RUST_BACKTRACE =
|
|
599
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkSUAWGD24cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSUAWGD24cjs.LogLevel.DEBUG ? true : false);
|
|
600
|
+
process.env.RUST_BACKTRACE = _chunkSUAWGD24cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSUAWGD24cjs.LogLevel.DEBUG ? "full" : "none";
|
|
601
|
+
}
|
|
602
|
+
if (config.skipConfigLogging !== void 0) {
|
|
603
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
598
604
|
}
|
|
599
605
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
600
606
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -707,17 +713,17 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
|
|
|
707
713
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
708
714
|
let _workspaceRoot = workspaceRoot;
|
|
709
715
|
if (!_workspaceRoot) {
|
|
710
|
-
_workspaceRoot =
|
|
716
|
+
_workspaceRoot = _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, );
|
|
711
717
|
}
|
|
712
718
|
const configEnv = getConfigEnv();
|
|
713
|
-
const defaultConfig = await
|
|
719
|
+
const defaultConfig = await _chunkSUAWGD24cjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
714
720
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
715
721
|
if (!configFile && !skipLogs) {
|
|
716
|
-
|
|
722
|
+
_chunkSUAWGD24cjs.writeWarning.call(void 0, "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", {
|
|
717
723
|
logLevel: "all"
|
|
718
724
|
});
|
|
719
725
|
}
|
|
720
|
-
result = await
|
|
726
|
+
result = await _chunkSUAWGD24cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
721
727
|
result.workspaceRoot ??= _workspaceRoot;
|
|
722
728
|
} else {
|
|
723
729
|
result = _static_cache.data;
|
|
@@ -751,9 +757,9 @@ var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0
|
|
|
751
757
|
var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
752
758
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
753
759
|
setConfigEnv(config);
|
|
754
|
-
if (!skipLogs) {
|
|
755
|
-
|
|
756
|
-
${
|
|
760
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
761
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
762
|
+
${_chunkSUAWGD24cjs.formatLogMessage.call(void 0, config)}`, config);
|
|
757
763
|
}
|
|
758
764
|
return config;
|
|
759
765
|
}, "loadStormConfig");
|
|
@@ -766,7 +772,7 @@ var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspace
|
|
|
766
772
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
767
773
|
|
|
768
774
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
769
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
775
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, );
|
|
770
776
|
const entryPoints = [];
|
|
771
777
|
if (entry) {
|
|
772
778
|
if (Array.isArray(entry)) {
|
|
@@ -789,7 +795,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
789
795
|
results.push(...files.reduce((ret, filePath) => {
|
|
790
796
|
const result = _chunkXITTOHOGcjs.correctPaths.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
791
797
|
if (result) {
|
|
792
|
-
|
|
798
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
793
799
|
if (!results.includes(result)) {
|
|
794
800
|
results.push(result);
|
|
795
801
|
}
|
|
@@ -856,8 +862,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
856
862
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
857
863
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
858
864
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
859
|
-
|
|
860
|
-
|
|
865
|
+
_chunkWLOCBN4Zcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
866
|
+
_chunkEZPAK54Ecjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
861
867
|
], "getDefaultBuildPlugins");
|
|
862
868
|
var DEFAULT_BUILD_OPTIONS = {
|
|
863
869
|
platform: "node",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -9,8 +9,8 @@ var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
|
9
9
|
// src/clean.ts
|
|
10
10
|
var _promises = require('fs/promises');
|
|
11
11
|
async function clean(name = "ESBuild", directory, config) {
|
|
12
|
-
|
|
13
|
-
const stopwatch =
|
|
12
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
13
|
+
const stopwatch = _chunkSUAWGD24cjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
14
14
|
await cleanDirectories(name, directory, config);
|
|
15
15
|
stopwatch();
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -11,7 +11,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
|
|
|
11
11
|
setup(build) {
|
|
12
12
|
build.onEnd((result) => {
|
|
13
13
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
14
|
-
|
|
14
|
+
_chunkSUAWGD24cjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
15
15
|
${result.errors.map((error) => error.text).join("\n")}
|
|
16
16
|
|
|
17
17
|
`, resolvedOptions.config);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DSL7ZVCY.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
getEntryPoints,
|
|
15
15
|
getEnv,
|
|
16
16
|
getOutputExtensionMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MHEFQLIT.js";
|
|
18
18
|
import {
|
|
19
19
|
depsCheckPlugin
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-A3GRRLNW.js";
|
|
21
21
|
import {
|
|
22
22
|
getStopwatch,
|
|
23
23
|
isVerbose,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
writeSuccess,
|
|
28
28
|
writeTrace,
|
|
29
29
|
writeWarning
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-O7T743WQ.js";
|
|
31
31
|
import {
|
|
32
32
|
joinPaths
|
|
33
33
|
} from "./chunk-YMTDVMD6.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TR3LJQBE.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePathsPlugin
|
|
12
12
|
} from "./chunk-Q3LOGZKI.js";
|
|
13
13
|
import {
|
|
14
14
|
tscPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RZ4ZXSK6.js";
|
|
16
16
|
import {
|
|
17
17
|
COLOR_KEYS,
|
|
18
18
|
LogLevel,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
writeDebug,
|
|
29
29
|
writeTrace,
|
|
30
30
|
writeWarning
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-O7T743WQ.js";
|
|
32
32
|
import {
|
|
33
33
|
correctPaths,
|
|
34
34
|
joinPaths
|
|
@@ -271,10 +271,10 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
271
271
|
}, "getConfigFileByName");
|
|
272
272
|
var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
|
|
273
273
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
274
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
274
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
275
275
|
let config = result.config;
|
|
276
276
|
const configFile = result.configFile;
|
|
277
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
277
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
278
278
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
279
279
|
logLevel: "all"
|
|
280
280
|
});
|
|
@@ -283,9 +283,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
283
283
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
284
284
|
for (const result2 of results) {
|
|
285
285
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
287
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
288
|
+
logLevel: "all"
|
|
289
|
+
});
|
|
290
|
+
}
|
|
289
291
|
config = defu(result2.config ?? {}, config ?? {});
|
|
290
292
|
}
|
|
291
293
|
}
|
|
@@ -361,7 +363,8 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
361
363
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
362
364
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
363
365
|
},
|
|
364
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
366
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
367
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
365
368
|
};
|
|
366
369
|
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
367
370
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -596,6 +599,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
596
599
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
597
600
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
598
601
|
}
|
|
602
|
+
if (config.skipConfigLogging !== void 0) {
|
|
603
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
604
|
+
}
|
|
599
605
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
600
606
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
601
607
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
@@ -713,7 +719,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
713
719
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
714
720
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
715
721
|
if (!configFile && !skipLogs) {
|
|
716
|
-
writeWarning("No Storm
|
|
722
|
+
writeWarning("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", {
|
|
717
723
|
logLevel: "all"
|
|
718
724
|
});
|
|
719
725
|
}
|
|
@@ -751,8 +757,8 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
751
757
|
var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
752
758
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
753
759
|
setConfigEnv(config);
|
|
754
|
-
if (!skipLogs) {
|
|
755
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
760
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
761
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
756
762
|
${formatLogMessage(config)}`, config);
|
|
757
763
|
}
|
|
758
764
|
return config;
|
|
@@ -189,7 +189,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
189
189
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
190
190
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
191
191
|
var StormConfigSchema = z.object({
|
|
192
|
-
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
192
|
+
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
193
193
|
extends: ExtendsSchema.optional(),
|
|
194
194
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
195
195
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -231,6 +231,7 @@ var StormConfigSchema = z.object({
|
|
|
231
231
|
"trace",
|
|
232
232
|
"all"
|
|
233
233
|
]).default("info").describe("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`)."),
|
|
234
|
+
skipConfigLogging: z.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
234
235
|
registry: RegistryConfigSchema,
|
|
235
236
|
configFile: z.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
236
237
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -266,14 +267,17 @@ import { existsSync } from "node:fs";
|
|
|
266
267
|
import { join } from "node:path";
|
|
267
268
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
268
269
|
var depth = 0;
|
|
269
|
-
function findFolderUp(startPath, endFileNames) {
|
|
270
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
270
271
|
const _startPath = startPath ?? process.cwd();
|
|
272
|
+
if (endDirectoryNames.some((endDirName) => existsSync(join(_startPath, endDirName)))) {
|
|
273
|
+
return _startPath;
|
|
274
|
+
}
|
|
271
275
|
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
|
|
272
276
|
return _startPath;
|
|
273
277
|
}
|
|
274
278
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
275
279
|
const parent = join(_startPath, "..");
|
|
276
|
-
return findFolderUp(parent, endFileNames);
|
|
280
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
277
281
|
}
|
|
278
282
|
return void 0;
|
|
279
283
|
}
|
|
@@ -281,17 +285,17 @@ __name(findFolderUp, "findFolderUp");
|
|
|
281
285
|
|
|
282
286
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
283
287
|
var rootFiles = [
|
|
284
|
-
"storm.json",
|
|
285
|
-
"storm.json",
|
|
286
|
-
"storm.yaml",
|
|
287
|
-
"storm.yml",
|
|
288
|
-
"storm.js",
|
|
289
|
-
"storm.ts",
|
|
290
|
-
".storm.json",
|
|
291
|
-
".storm.yaml",
|
|
292
|
-
".storm.yml",
|
|
293
|
-
".storm.js",
|
|
294
|
-
".storm.ts",
|
|
288
|
+
"storm-workspace.json",
|
|
289
|
+
"storm-workspace.json",
|
|
290
|
+
"storm-workspace.yaml",
|
|
291
|
+
"storm-workspace.yml",
|
|
292
|
+
"storm-workspace.js",
|
|
293
|
+
"storm-workspace.ts",
|
|
294
|
+
".storm-workspace.json",
|
|
295
|
+
".storm-workspace.yaml",
|
|
296
|
+
".storm-workspace.yml",
|
|
297
|
+
".storm-workspace.js",
|
|
298
|
+
".storm-workspace.ts",
|
|
295
299
|
"lerna.json",
|
|
296
300
|
"nx.json",
|
|
297
301
|
"turbo.json",
|
|
@@ -315,11 +319,18 @@ var rootFiles = [
|
|
|
315
319
|
"pnpm-lock.yml",
|
|
316
320
|
"bun.lockb"
|
|
317
321
|
];
|
|
322
|
+
var rootDirectories = [
|
|
323
|
+
".storm-workspace",
|
|
324
|
+
".nx",
|
|
325
|
+
".github",
|
|
326
|
+
".vscode",
|
|
327
|
+
".verdaccio"
|
|
328
|
+
];
|
|
318
329
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
319
330
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
320
331
|
return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
|
|
321
332
|
}
|
|
322
|
-
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
|
|
333
|
+
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles, rootDirectories));
|
|
323
334
|
}
|
|
324
335
|
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
325
336
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
@@ -189,7 +189,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
189
189
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
190
190
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
191
191
|
var StormConfigSchema = _zod2.default.object({
|
|
192
|
-
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
192
|
+
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
193
193
|
extends: ExtendsSchema.optional(),
|
|
194
194
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
195
195
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -231,6 +231,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
231
231
|
"trace",
|
|
232
232
|
"all"
|
|
233
233
|
]).default("info").describe("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`)."),
|
|
234
|
+
skipConfigLogging: _zod2.default.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
234
235
|
registry: RegistryConfigSchema,
|
|
235
236
|
configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
236
237
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -266,14 +267,17 @@ var _path = require('path');
|
|
|
266
267
|
|
|
267
268
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
268
269
|
var depth = 0;
|
|
269
|
-
function findFolderUp(startPath, endFileNames) {
|
|
270
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
270
271
|
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
272
|
+
if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
|
|
273
|
+
return _startPath;
|
|
274
|
+
}
|
|
271
275
|
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
272
276
|
return _startPath;
|
|
273
277
|
}
|
|
274
278
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
275
279
|
const parent = _path.join.call(void 0, _startPath, "..");
|
|
276
|
-
return findFolderUp(parent, endFileNames);
|
|
280
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
277
281
|
}
|
|
278
282
|
return void 0;
|
|
279
283
|
}
|
|
@@ -281,17 +285,17 @@ _chunkBGYQAVKQcjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
|
281
285
|
|
|
282
286
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
283
287
|
var rootFiles = [
|
|
284
|
-
"storm.json",
|
|
285
|
-
"storm.json",
|
|
286
|
-
"storm.yaml",
|
|
287
|
-
"storm.yml",
|
|
288
|
-
"storm.js",
|
|
289
|
-
"storm.ts",
|
|
290
|
-
".storm.json",
|
|
291
|
-
".storm.yaml",
|
|
292
|
-
".storm.yml",
|
|
293
|
-
".storm.js",
|
|
294
|
-
".storm.ts",
|
|
288
|
+
"storm-workspace.json",
|
|
289
|
+
"storm-workspace.json",
|
|
290
|
+
"storm-workspace.yaml",
|
|
291
|
+
"storm-workspace.yml",
|
|
292
|
+
"storm-workspace.js",
|
|
293
|
+
"storm-workspace.ts",
|
|
294
|
+
".storm-workspace.json",
|
|
295
|
+
".storm-workspace.yaml",
|
|
296
|
+
".storm-workspace.yml",
|
|
297
|
+
".storm-workspace.js",
|
|
298
|
+
".storm-workspace.ts",
|
|
295
299
|
"lerna.json",
|
|
296
300
|
"nx.json",
|
|
297
301
|
"turbo.json",
|
|
@@ -315,11 +319,18 @@ var rootFiles = [
|
|
|
315
319
|
"pnpm-lock.yml",
|
|
316
320
|
"bun.lockb"
|
|
317
321
|
];
|
|
322
|
+
var rootDirectories = [
|
|
323
|
+
".storm-workspace",
|
|
324
|
+
".nx",
|
|
325
|
+
".github",
|
|
326
|
+
".vscode",
|
|
327
|
+
".verdaccio"
|
|
328
|
+
];
|
|
318
329
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
319
330
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
320
331
|
return _chunkXITTOHOGcjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
321
332
|
}
|
|
322
|
-
return _chunkXITTOHOGcjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles));
|
|
333
|
+
return _chunkXITTOHOGcjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
323
334
|
}
|
|
324
335
|
_chunkBGYQAVKQcjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
325
336
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
@@ -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 _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -86,8 +86,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bun
|
|
|
86
86
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
87
87
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
88
88
|
});
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
_chunkSUAWGD24cjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkSUAWGD24cjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
91
91
|
if (filteredMissingDeps.length > 0) {
|
|
92
92
|
throw new Error(`Missing dependencies detected - please install them:
|
|
93
93
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1,6 +1,6 @@
|
|
|
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(); } } 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 _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -85,7 +85,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
85
85
|
localBuild: true
|
|
86
86
|
});
|
|
87
87
|
if (extractorResult.succeeded === false) {
|
|
88
|
-
|
|
88
|
+
_chunkSUAWGD24cjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
89
89
|
throw new Error("API Extractor completed with errors");
|
|
90
90
|
}
|
|
91
91
|
}
|
package/dist/clean.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk7GH6IQLMcjs = require('./chunk-7GH6IQLM.cjs');
|
|
5
|
+
require('./chunk-SUAWGD24.cjs');
|
|
6
6
|
require('./chunk-XITTOHOG.cjs');
|
|
7
7
|
require('./chunk-BGYQAVKQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.clean =
|
|
11
|
+
exports.clean = _chunk7GH6IQLMcjs.clean; exports.cleanDirectories = _chunk7GH6IQLMcjs.cleanDirectories;
|
package/dist/clean.d.cts
CHANGED
|
@@ -57,6 +57,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
57
57
|
timezone: z.ZodDefault<z.ZodString>;
|
|
58
58
|
locale: z.ZodDefault<z.ZodString>;
|
|
59
59
|
logLevel: z.ZodDefault<z.ZodEnum<["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]>>;
|
|
60
|
+
skipConfigLogging: z.ZodOptional<z.ZodBoolean>;
|
|
60
61
|
registry: z.ZodDefault<z.ZodObject<{
|
|
61
62
|
github: z.ZodOptional<z.ZodString>;
|
|
62
63
|
npm: z.ZodOptional<z.ZodString>;
|
|
@@ -983,6 +984,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
983
984
|
namespace?: string | undefined;
|
|
984
985
|
repository?: string | undefined;
|
|
985
986
|
preid?: string | undefined;
|
|
987
|
+
skipConfigLogging?: boolean | undefined;
|
|
986
988
|
}, {
|
|
987
989
|
bot: {
|
|
988
990
|
name?: string | undefined;
|
|
@@ -1164,6 +1166,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1164
1166
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1165
1167
|
timezone?: string | undefined;
|
|
1166
1168
|
locale?: string | undefined;
|
|
1169
|
+
skipConfigLogging?: boolean | undefined;
|
|
1167
1170
|
registry?: {
|
|
1168
1171
|
npm?: string | undefined;
|
|
1169
1172
|
github?: string | undefined;
|
package/dist/clean.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
57
57
|
timezone: z.ZodDefault<z.ZodString>;
|
|
58
58
|
locale: z.ZodDefault<z.ZodString>;
|
|
59
59
|
logLevel: z.ZodDefault<z.ZodEnum<["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]>>;
|
|
60
|
+
skipConfigLogging: z.ZodOptional<z.ZodBoolean>;
|
|
60
61
|
registry: z.ZodDefault<z.ZodObject<{
|
|
61
62
|
github: z.ZodOptional<z.ZodString>;
|
|
62
63
|
npm: z.ZodOptional<z.ZodString>;
|
|
@@ -983,6 +984,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
983
984
|
namespace?: string | undefined;
|
|
984
985
|
repository?: string | undefined;
|
|
985
986
|
preid?: string | undefined;
|
|
987
|
+
skipConfigLogging?: boolean | undefined;
|
|
986
988
|
}, {
|
|
987
989
|
bot: {
|
|
988
990
|
name?: string | undefined;
|
|
@@ -1164,6 +1166,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1164
1166
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1165
1167
|
timezone?: string | undefined;
|
|
1166
1168
|
locale?: string | undefined;
|
|
1169
|
+
skipConfigLogging?: boolean | undefined;
|
|
1167
1170
|
registry?: {
|
|
1168
1171
|
npm?: string | undefined;
|
|
1169
1172
|
github?: string | undefined;
|
package/dist/clean.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk6PKWFA3Lcjs = require('./chunk-6PKWFA3L.cjs');
|
|
6
6
|
require('./chunk-S6M44SSZ.cjs');
|
|
7
7
|
require('./chunk-WRBUO7H6.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-EZPAK54E.cjs');
|
|
9
9
|
require('./chunk-SSEYS7LI.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-WLOCBN4Z.cjs');
|
|
11
|
+
require('./chunk-SUAWGD24.cjs');
|
|
12
12
|
require('./chunk-XITTOHOG.cjs');
|
|
13
13
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
14
14
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -17,4 +17,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
20
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunk6PKWFA3Lcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunk6PKWFA3Lcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk6PKWFA3Lcjs.getOutputExtensionMap;
|
package/dist/config.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
DEFAULT_BUILD_OPTIONS,
|
|
3
3
|
getDefaultBuildPlugins,
|
|
4
4
|
getOutputExtensionMap
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MHEFQLIT.js";
|
|
6
6
|
import "./chunk-T5272PC2.js";
|
|
7
7
|
import "./chunk-LYDEMC26.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-TR3LJQBE.js";
|
|
9
9
|
import "./chunk-Q3LOGZKI.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-RZ4ZXSK6.js";
|
|
11
|
+
import "./chunk-O7T743WQ.js";
|
|
12
12
|
import "./chunk-YMTDVMD6.js";
|
|
13
13
|
import "./chunk-YNQ45EAM.js";
|
|
14
14
|
import "./chunk-GWG4HOQ6.js";
|
package/dist/index.cjs
CHANGED
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2Y2YLC5Ucjs = require('./chunk-2Y2YLC5U.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk7GH6IQLMcjs = require('./chunk-7GH6IQLM.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk6PKWFA3Lcjs = require('./chunk-6PKWFA3L.cjs');
|
|
20
20
|
require('./chunk-S6M44SSZ.cjs');
|
|
21
21
|
require('./chunk-WRBUO7H6.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-EZPAK54E.cjs');
|
|
23
23
|
require('./chunk-SSEYS7LI.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-WLOCBN4Z.cjs');
|
|
25
25
|
require('./chunk-SFZRYJZ2.cjs');
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-U5LZSTP3.cjs');
|
|
27
|
+
require('./chunk-SUAWGD24.cjs');
|
|
28
28
|
require('./chunk-XITTOHOG.cjs');
|
|
29
29
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
30
30
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -43,4 +43,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
46
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunk6PKWFA3Lcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunk2Y2YLC5Ucjs.Filter; exports.Mapper = _chunk2Y2YLC5Ucjs.Mapper; exports.build = _chunk2Y2YLC5Ucjs.build; exports.clean = _chunk7GH6IQLMcjs.clean; exports.cleanDirectories = _chunk7GH6IQLMcjs.cleanDirectories; exports.cleanOutputPath = _chunk2Y2YLC5Ucjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunk6PKWFA3Lcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk6PKWFA3Lcjs.getOutputExtensionMap; exports.handle = _chunk2Y2YLC5Ucjs.handle; exports.pipe = _chunk2Y2YLC5Ucjs.pipe; exports.skip = _chunk2Y2YLC5Ucjs.skip; exports.transduce = _chunk2Y2YLC5Ucjs.transduce;
|
package/dist/index.js
CHANGED
|
@@ -7,24 +7,24 @@ import {
|
|
|
7
7
|
pipe,
|
|
8
8
|
skip,
|
|
9
9
|
transduce
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FSNCUCKT.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DSL7ZVCY.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins,
|
|
18
18
|
getOutputExtensionMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MHEFQLIT.js";
|
|
20
20
|
import "./chunk-T5272PC2.js";
|
|
21
21
|
import "./chunk-LYDEMC26.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-TR3LJQBE.js";
|
|
23
23
|
import "./chunk-Q3LOGZKI.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-RZ4ZXSK6.js";
|
|
25
25
|
import "./chunk-GGNOJ77I.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-A3GRRLNW.js";
|
|
27
|
+
import "./chunk-O7T743WQ.js";
|
|
28
28
|
import "./chunk-YMTDVMD6.js";
|
|
29
29
|
import "./chunk-YNQ45EAM.js";
|
|
30
30
|
import "./chunk-GWG4HOQ6.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkU5LZSTP3cjs = require('../chunk-U5LZSTP3.cjs');
|
|
4
|
+
require('../chunk-SUAWGD24.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.depsCheckPlugin =
|
|
9
|
+
exports.depsCheckPlugin = _chunkU5LZSTP3cjs.depsCheckPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkEZPAK54Ecjs = require('../chunk-EZPAK54E.cjs');
|
|
4
|
+
require('../chunk-SUAWGD24.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.onErrorPlugin =
|
|
9
|
+
exports.onErrorPlugin = _chunkEZPAK54Ecjs.onErrorPlugin;
|
package/dist/plugins/on-error.js
CHANGED
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkWLOCBN4Zcjs = require('../chunk-WLOCBN4Z.cjs');
|
|
4
|
+
require('../chunk-SUAWGD24.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.tscPlugin =
|
|
9
|
+
exports.tscPlugin = _chunkWLOCBN4Zcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
"@microsoft/api-extractor": "^7.48.1",
|
|
172
172
|
"@nx/devkit": "^20.3.1",
|
|
173
173
|
"@nx/js": "^20.3.1",
|
|
174
|
-
"@storm-software/build-tools": "0.138.
|
|
175
|
-
"@storm-software/config": "1.100.
|
|
176
|
-
"@storm-software/config-tools": "1.
|
|
174
|
+
"@storm-software/build-tools": "0.138.6",
|
|
175
|
+
"@storm-software/config": "1.100.19",
|
|
176
|
+
"@storm-software/config-tools": "1.147.1",
|
|
177
177
|
"@types/node": "^22.10.2",
|
|
178
178
|
"defu": "6.1.4",
|
|
179
179
|
"esbuild": "^0.24.0",
|