@storm-software/esbuild 0.31.11 → 0.31.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/esbuild.cjs +2 -1
- package/dist/build.cjs +8 -8
- package/dist/build.js +7 -7
- package/dist/{chunk-I2FH4C27.cjs → chunk-23BWXS7W.cjs} +2 -2
- package/dist/{chunk-4ATDIKBQ.js → chunk-544OYWSQ.js} +1 -1
- package/dist/{chunk-F665CCSS.cjs → chunk-7O55IAQT.cjs} +1 -1
- package/dist/{chunk-3ENEOIKE.cjs → chunk-CGC754NO.cjs} +2 -2
- package/dist/{chunk-TUAAYWUJ.js → chunk-DXIR35ET.js} +1 -1
- package/dist/{chunk-NQQNULA5.cjs → chunk-EMIGMUPI.cjs} +39 -38
- package/dist/{chunk-DEO4HWIA.cjs → chunk-FHHDOIZH.cjs} +3 -3
- package/dist/{chunk-SCRZEL2M.cjs → chunk-GKES5W75.cjs} +32 -32
- package/dist/{chunk-YWKYHSIN.js → chunk-JIM5EHQS.js} +1 -1
- package/dist/{chunk-NCMOSDGN.js → chunk-JZMOPFOH.js} +1 -1
- package/dist/{chunk-RDDN3V2P.js → chunk-LYZEF7N4.js} +3 -3
- package/dist/{chunk-DITM26C7.cjs → chunk-RPASR3EH.cjs} +3 -3
- package/dist/{chunk-LUJTYV5C.js → chunk-WDK7RJAQ.js} +1 -1
- package/dist/{chunk-V7VKJTC6.js → chunk-YTQN474S.js} +6 -5
- package/dist/clean.cjs +3 -3
- 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/bin/esbuild.cjs
CHANGED
|
@@ -925,6 +925,7 @@ async function executeEsBuild(context2) {
|
|
|
925
925
|
(0, import_console2.writeTrace)(`Run esbuild (${context2.options.name}) with the following options:
|
|
926
926
|
${(0, import_console2.formatLogMessage)(options)}`, context2.options.config);
|
|
927
927
|
const result = await esbuild2.build(options);
|
|
928
|
+
await esbuild2.stop();
|
|
928
929
|
if (result.metafile) {
|
|
929
930
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
930
931
|
await import_promises3.default.writeFile(metafilePath, JSON.stringify(result.metafile));
|
|
@@ -1006,7 +1007,7 @@ async function build3(options) {
|
|
|
1006
1007
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1007
1008
|
(0, import_console2.writeSuccess)(" \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1008
1009
|
} catch (error) {
|
|
1009
|
-
(0, import_console2.writeFatal)("
|
|
1010
|
+
(0, import_console2.writeFatal)("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1010
1011
|
throw error;
|
|
1011
1012
|
} finally {
|
|
1012
1013
|
stopwatch();
|
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 _chunkEMIGMUPIcjs = require('./chunk-EMIGMUPI.cjs');
|
|
5
|
+
require('./chunk-RPASR3EH.cjs');
|
|
6
|
+
require('./chunk-GKES5W75.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-23BWXS7W.cjs');
|
|
10
10
|
require('./chunk-SSEYS7LI.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-CGC754NO.cjs');
|
|
12
|
+
require('./chunk-FHHDOIZH.cjs');
|
|
13
|
+
require('./chunk-7O55IAQT.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 = _chunkEMIGMUPIcjs.build; exports.cleanOutputPath = _chunkEMIGMUPIcjs.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-YTQN474S.js";
|
|
5
|
+
import "./chunk-DXIR35ET.js";
|
|
6
|
+
import "./chunk-LYZEF7N4.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-JIM5EHQS.js";
|
|
10
10
|
import "./chunk-Q3LOGZKI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-WDK7RJAQ.js";
|
|
12
|
+
import "./chunk-JZMOPFOH.js";
|
|
13
|
+
import "./chunk-544OYWSQ.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});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7O55IAQTcjs = require('./chunk-7O55IAQT.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
|
+
_chunk7O55IAQTcjs.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);
|
|
@@ -487,7 +487,7 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
487
487
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
488
488
|
return (message) => {
|
|
489
489
|
console.error(`
|
|
490
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
490
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
491
|
`);
|
|
492
492
|
};
|
|
493
493
|
}
|
|
@@ -487,7 +487,7 @@ var getLogFn = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (logLevel =
|
|
|
487
487
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
488
488
|
return (message) => {
|
|
489
489
|
console.error(`
|
|
490
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
490
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
491
|
`);
|
|
492
492
|
};
|
|
493
493
|
}
|
|
@@ -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 _chunk7O55IAQTcjs = require('./chunk-7O55IAQT.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
|
+
_chunk7O55IAQTcjs.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
|
}
|
|
@@ -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 _chunkRPASR3EHcjs = require('./chunk-RPASR3EH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,10 +12,10 @@ var _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGKES5W75cjs = require('./chunk-GKES5W75.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkFHHDOIZHcjs = require('./chunk-FHHDOIZH.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -26,7 +26,7 @@ var _chunkDEO4HWIAcjs = require('./chunk-DEO4HWIA.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk7O55IAQTcjs = require('./chunk-7O55IAQT.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -277,9 +277,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
277
277
|
if (!workspaceRoot) {
|
|
278
278
|
throw new Error("Cannot find Nx workspace root");
|
|
279
279
|
}
|
|
280
|
-
const config = await
|
|
281
|
-
|
|
282
|
-
const stopwatch =
|
|
280
|
+
const config = await _chunkGKES5W75cjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
281
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
282
|
+
const stopwatch = _chunk7O55IAQTcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
283
283
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
284
284
|
exitOnError: true
|
|
285
285
|
});
|
|
@@ -294,14 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
294
294
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
295
295
|
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.");
|
|
296
296
|
}
|
|
297
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
297
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkGKES5W75cjs.DEFAULT_BUILD_OPTIONS);
|
|
298
298
|
options.name ??= `${projectName}-${options.format}`;
|
|
299
|
-
options.target ??=
|
|
299
|
+
options.target ??= _chunkGKES5W75cjs.DEFAULT_TARGET;
|
|
300
300
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
301
301
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
302
302
|
throw new Error("Cannot find package.json configuration");
|
|
303
303
|
}
|
|
304
|
-
const env =
|
|
304
|
+
const env = _chunkGKES5W75cjs.getEnv.call(void 0, "esbuild", options);
|
|
305
305
|
const result = {
|
|
306
306
|
...options,
|
|
307
307
|
config,
|
|
@@ -316,7 +316,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
316
316
|
...userOptions,
|
|
317
317
|
tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
318
318
|
format: options.format || "cjs",
|
|
319
|
-
entryPoints: await
|
|
319
|
+
entryPoints: await _chunkGKES5W75cjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
|
|
320
320
|
outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
321
321
|
distDir: userOptions.distDir || "dist",
|
|
322
322
|
plugins: [],
|
|
@@ -326,7 +326,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
326
326
|
projectGraph,
|
|
327
327
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
328
328
|
minify: userOptions.minify || !userOptions.debug,
|
|
329
|
-
verbose: userOptions.verbose ||
|
|
329
|
+
verbose: userOptions.verbose || _chunk7O55IAQTcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
330
330
|
includeSrc: userOptions.includeSrc === true,
|
|
331
331
|
metafile: userOptions.metafile !== false,
|
|
332
332
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -339,8 +339,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
339
339
|
watch: userOptions.watch === true,
|
|
340
340
|
footer: userOptions.footer,
|
|
341
341
|
banner: {
|
|
342
|
-
js: options.banner ||
|
|
343
|
-
css: options.banner ||
|
|
342
|
+
js: options.banner || _chunkGKES5W75cjs.DEFAULT_COMPILED_BANNER,
|
|
343
|
+
css: options.banner || _chunkGKES5W75cjs.DEFAULT_COMPILED_BANNER
|
|
344
344
|
},
|
|
345
345
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
346
346
|
treeShaking: options.format === "esm",
|
|
@@ -367,7 +367,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
367
367
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
368
368
|
].filter(Boolean)
|
|
369
369
|
};
|
|
370
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
370
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkGKES5W75cjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
371
371
|
delete result.entry;
|
|
372
372
|
delete result.outputPath;
|
|
373
373
|
stopwatch();
|
|
@@ -375,8 +375,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
375
375
|
}, "resolveOptions");
|
|
376
376
|
async function generatePackageJson(context2) {
|
|
377
377
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
378
|
-
|
|
379
|
-
const stopwatch =
|
|
378
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
379
|
+
const stopwatch = _chunk7O55IAQTcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
380
380
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
381
381
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
382
382
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -386,8 +386,8 @@ async function generatePackageJson(context2) {
|
|
|
386
386
|
if (!packageJson) {
|
|
387
387
|
throw new Error("Cannot find package.json configuration file");
|
|
388
388
|
}
|
|
389
|
-
packageJson = await
|
|
390
|
-
packageJson = await
|
|
389
|
+
packageJson = await _chunkGKES5W75cjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
390
|
+
packageJson = await _chunkGKES5W75cjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
391
391
|
packageJson.exports ??= {};
|
|
392
392
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
393
393
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
@@ -449,8 +449,8 @@ async function generateContext(getOptions) {
|
|
|
449
449
|
}
|
|
450
450
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
451
451
|
async function executeEsBuild(context2) {
|
|
452
|
-
|
|
453
|
-
const stopwatch =
|
|
452
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
453
|
+
const stopwatch = _chunk7O55IAQTcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
454
454
|
if (process.env.STORM_WATCH) {
|
|
455
455
|
const ctx = await esbuild.context(context2.options);
|
|
456
456
|
watch(ctx, context2.options);
|
|
@@ -479,9 +479,10 @@ async function executeEsBuild(context2) {
|
|
|
479
479
|
delete options.renderers;
|
|
480
480
|
delete options.config;
|
|
481
481
|
delete options.injectShims;
|
|
482
|
-
|
|
483
|
-
${
|
|
482
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
483
|
+
${_chunk7O55IAQTcjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
|
|
484
484
|
const result = await esbuild.build(options);
|
|
485
|
+
await esbuild.stop();
|
|
485
486
|
if (result.metafile) {
|
|
486
487
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
487
488
|
await _promises2.default.writeFile(metafilePath, JSON.stringify(result.metafile));
|
|
@@ -492,9 +493,9 @@ ${_chunkF665CCSScjs.formatLogMessage.call(void 0, options)}`, context2.options.c
|
|
|
492
493
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
493
494
|
async function copyBuildAssets(context2) {
|
|
494
495
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
495
|
-
|
|
496
|
-
const stopwatch =
|
|
497
|
-
await
|
|
496
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
497
|
+
const stopwatch = _chunk7O55IAQTcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
498
|
+
await _chunkGKES5W75cjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
498
499
|
stopwatch();
|
|
499
500
|
}
|
|
500
501
|
return context2;
|
|
@@ -503,9 +504,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
503
504
|
async function reportResults(context2) {
|
|
504
505
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
505
506
|
if (context2.result.warnings.length > 0) {
|
|
506
|
-
|
|
507
|
+
_chunk7O55IAQTcjs.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);
|
|
507
508
|
}
|
|
508
|
-
|
|
509
|
+
_chunk7O55IAQTcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
512
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -531,7 +532,7 @@ async function dependencyCheck(options) {
|
|
|
531
532
|
write: false,
|
|
532
533
|
outdir: "out",
|
|
533
534
|
plugins: [
|
|
534
|
-
|
|
535
|
+
_chunkFHHDOIZHcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
535
536
|
]
|
|
536
537
|
});
|
|
537
538
|
await buildPromise.catch(() => {
|
|
@@ -541,17 +542,17 @@ async function dependencyCheck(options) {
|
|
|
541
542
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
542
543
|
async function cleanOutputPath(context2) {
|
|
543
544
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
544
|
-
|
|
545
|
-
const stopwatch =
|
|
546
|
-
await
|
|
545
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
546
|
+
const stopwatch = _chunk7O55IAQTcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
547
|
+
await _chunkRPASR3EHcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
547
548
|
stopwatch();
|
|
548
549
|
}
|
|
549
550
|
return context2;
|
|
550
551
|
}
|
|
551
552
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
552
553
|
async function build2(options) {
|
|
553
|
-
|
|
554
|
-
const stopwatch =
|
|
554
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
555
|
+
const stopwatch = _chunk7O55IAQTcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
555
556
|
try {
|
|
556
557
|
const opts = Array.isArray(options) ? options : [
|
|
557
558
|
options
|
|
@@ -561,9 +562,9 @@ async function build2(options) {
|
|
|
561
562
|
}
|
|
562
563
|
void transduce.async(opts, dependencyCheck);
|
|
563
564
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
564
|
-
|
|
565
|
+
_chunk7O55IAQTcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
565
566
|
} catch (error) {
|
|
566
|
-
|
|
567
|
+
_chunk7O55IAQTcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
567
568
|
throw error;
|
|
568
569
|
} finally {
|
|
569
570
|
stopwatch();
|
|
@@ -591,9 +592,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
591
592
|
return context2.rebuild();
|
|
592
593
|
});
|
|
593
594
|
if (rebuildResult instanceof Error) {
|
|
594
|
-
|
|
595
|
+
_chunk7O55IAQTcjs.writeError.call(void 0, rebuildResult.message);
|
|
595
596
|
}
|
|
596
|
-
|
|
597
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
597
598
|
}, 10);
|
|
598
599
|
changeWatcher.on("change", fastRebuild);
|
|
599
600
|
return void 0;
|
|
@@ -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 _chunk7O55IAQTcjs = require('./chunk-7O55IAQT.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
|
+
_chunk7O55IAQTcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunk7O55IAQTcjs.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)}
|
|
@@ -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 _chunk23BWXS7Wcjs = require('./chunk-23BWXS7W.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkCGC754NOcjs = require('./chunk-CGC754NO.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunk3ENEOIKEcjs = require('./chunk-3ENEOIKE.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk7O55IAQTcjs = require('./chunk-7O55IAQT.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
|
+
_chunk7O55IAQTcjs.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
|
+
_chunk7O55IAQTcjs.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"),
|
|
@@ -146,7 +146,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
if (localPackages.length > 0) {
|
|
149
|
-
|
|
149
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
150
150
|
const projectJsonFile = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
151
151
|
const projectJson = JSON.parse(projectJsonFile);
|
|
152
152
|
const projectName2 = projectJson.name;
|
|
@@ -180,12 +180,12 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
180
180
|
return ret;
|
|
181
181
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
182
182
|
} else {
|
|
183
|
-
|
|
183
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
184
184
|
}
|
|
185
185
|
return packageJson;
|
|
186
186
|
}, "addPackageDependencies");
|
|
187
187
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
188
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
188
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk7O55IAQTcjs.findWorkspaceRoot.call(void 0, );
|
|
189
189
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
190
190
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
191
191
|
packageJson.type ??= "module";
|
|
@@ -234,7 +234,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
|
|
|
234
234
|
var _c12 = require('c12');
|
|
235
235
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
236
236
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
237
|
-
const workspacePath = filePath ||
|
|
237
|
+
const workspacePath = filePath || _chunk7O55IAQTcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
238
238
|
const configs = await Promise.all([
|
|
239
239
|
_c12.loadConfig.call(void 0, {
|
|
240
240
|
cwd: workspacePath,
|
|
@@ -263,12 +263,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
263
263
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
264
264
|
}, "getConfigFileByName");
|
|
265
265
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
266
|
-
const workspacePath = filePath ? filePath :
|
|
266
|
+
const workspacePath = filePath ? filePath : _chunk7O55IAQTcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
267
267
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
268
268
|
let config = result.config;
|
|
269
269
|
const configFile = result.configFile;
|
|
270
270
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
271
|
-
|
|
271
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
272
272
|
logLevel: "all"
|
|
273
273
|
});
|
|
274
274
|
}
|
|
@@ -277,7 +277,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
277
277
|
for (const result2 of results) {
|
|
278
278
|
if (_optionalChain([result2, 'optionalAccess', _18 => _18.config]) && _optionalChain([result2, 'optionalAccess', _19 => _19.configFile]) && Object.keys(result2.config).length > 0) {
|
|
279
279
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
280
|
-
|
|
280
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
281
281
|
logLevel: "all"
|
|
282
282
|
});
|
|
283
283
|
}
|
|
@@ -356,24 +356,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
356
356
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
357
357
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
358
358
|
},
|
|
359
|
-
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`])) ?
|
|
359
|
+
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`])) ? _chunk7O55IAQTcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
360
360
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
361
361
|
};
|
|
362
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
362
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk7O55IAQTcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
363
363
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
364
364
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
365
365
|
return ret;
|
|
366
366
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
367
|
-
if (config.docs ===
|
|
368
|
-
if (config.homepage ===
|
|
369
|
-
config.docs = `${
|
|
367
|
+
if (config.docs === _chunk7O55IAQTcjs.STORM_DEFAULT_DOCS) {
|
|
368
|
+
if (config.homepage === _chunk7O55IAQTcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
369
|
+
config.docs = `${_chunk7O55IAQTcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
370
370
|
} else {
|
|
371
371
|
config.docs = `${config.homepage}/docs`;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
if (config.licensing ===
|
|
375
|
-
if (config.homepage ===
|
|
376
|
-
config.licensing = `${
|
|
374
|
+
if (config.licensing === _chunk7O55IAQTcjs.STORM_DEFAULT_LICENSING) {
|
|
375
|
+
if (config.homepage === _chunk7O55IAQTcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
376
|
+
config.licensing = `${_chunk7O55IAQTcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
377
377
|
} else {
|
|
378
378
|
config.licensing = `${config.homepage}/docs`;
|
|
379
379
|
}
|
|
@@ -589,8 +589,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
589
589
|
if (config.logLevel) {
|
|
590
590
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
591
591
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
592
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
593
|
-
process.env.RUST_BACKTRACE =
|
|
592
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunk7O55IAQTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7O55IAQTcjs.LogLevel.DEBUG ? true : false);
|
|
593
|
+
process.env.RUST_BACKTRACE = _chunk7O55IAQTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7O55IAQTcjs.LogLevel.DEBUG ? "full" : "none";
|
|
594
594
|
}
|
|
595
595
|
if (config.skipConfigLogging !== void 0) {
|
|
596
596
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -706,17 +706,17 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
|
|
|
706
706
|
if (!_optionalChain([_static_cache, 'optionalAccess', _42 => _42.data]) || !_optionalChain([_static_cache, 'optionalAccess', _43 => _43.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
707
707
|
let _workspaceRoot = workspaceRoot;
|
|
708
708
|
if (!_workspaceRoot) {
|
|
709
|
-
_workspaceRoot =
|
|
709
|
+
_workspaceRoot = _chunk7O55IAQTcjs.findWorkspaceRoot.call(void 0, );
|
|
710
710
|
}
|
|
711
711
|
const configEnv = getConfigEnv();
|
|
712
|
-
const defaultConfig = await
|
|
712
|
+
const defaultConfig = await _chunk7O55IAQTcjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
713
713
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
714
714
|
if (!configFile && !skipLogs) {
|
|
715
|
-
|
|
715
|
+
_chunk7O55IAQTcjs.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", {
|
|
716
716
|
logLevel: "all"
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
result = await
|
|
719
|
+
result = await _chunk7O55IAQTcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
720
720
|
result.workspaceRoot ??= _workspaceRoot;
|
|
721
721
|
} else {
|
|
722
722
|
result = _static_cache.data;
|
|
@@ -751,8 +751,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, asyn
|
|
|
751
751
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
752
752
|
setConfigEnv(config);
|
|
753
753
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
754
|
-
|
|
755
|
-
${
|
|
754
|
+
_chunk7O55IAQTcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
755
|
+
${_chunk7O55IAQTcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
756
756
|
}
|
|
757
757
|
return config;
|
|
758
758
|
}, "loadStormConfig");
|
|
@@ -765,7 +765,7 @@ var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspace
|
|
|
765
765
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
766
766
|
|
|
767
767
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
768
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
768
|
+
const workspaceRoot = config.workspaceRoot || _chunk7O55IAQTcjs.findWorkspaceRoot.call(void 0, );
|
|
769
769
|
const entryPoints = [];
|
|
770
770
|
if (entry) {
|
|
771
771
|
if (typeof entry === "string") {
|
|
@@ -791,7 +791,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
791
791
|
paths.push(...files.reduce((ret, filePath) => {
|
|
792
792
|
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), ""));
|
|
793
793
|
if (result) {
|
|
794
|
-
|
|
794
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
795
795
|
if (!paths.includes(result)) {
|
|
796
796
|
paths.push(result);
|
|
797
797
|
}
|
|
@@ -841,8 +841,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
841
841
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
842
842
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
843
843
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
844
|
-
|
|
845
|
-
|
|
844
|
+
_chunkCGC754NOcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
845
|
+
_chunk23BWXS7Wcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
846
846
|
], "getDefaultBuildPlugins");
|
|
847
847
|
var DEFAULT_BUILD_OPTIONS = {
|
|
848
848
|
platform: "node",
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JIM5EHQS.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-WDK7RJAQ.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-544OYWSQ.js";
|
|
32
32
|
import {
|
|
33
33
|
correctPaths,
|
|
34
34
|
joinPaths
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7O55IAQTcjs = require('./chunk-7O55IAQT.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
|
+
_chunk7O55IAQTcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
13
|
+
const stopwatch = _chunk7O55IAQTcjs.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
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DXIR35ET.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
getDefaultBuildPlugins,
|
|
13
13
|
getEntryPoints,
|
|
14
14
|
getEnv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LYZEF7N4.js";
|
|
16
16
|
import {
|
|
17
17
|
depsCheckPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JZMOPFOH.js";
|
|
19
19
|
import {
|
|
20
20
|
formatLogMessage,
|
|
21
21
|
getStopwatch,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
writeSuccess,
|
|
27
27
|
writeTrace,
|
|
28
28
|
writeWarning
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-544OYWSQ.js";
|
|
30
30
|
import {
|
|
31
31
|
joinPaths
|
|
32
32
|
} from "./chunk-YMTDVMD6.js";
|
|
@@ -482,6 +482,7 @@ async function executeEsBuild(context2) {
|
|
|
482
482
|
writeTrace(`Run esbuild (${context2.options.name}) with the following options:
|
|
483
483
|
${formatLogMessage(options)}`, context2.options.config);
|
|
484
484
|
const result = await esbuild.build(options);
|
|
485
|
+
await esbuild.stop();
|
|
485
486
|
if (result.metafile) {
|
|
486
487
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
487
488
|
await hf.writeFile(metafilePath, JSON.stringify(result.metafile));
|
|
@@ -563,7 +564,7 @@ async function build2(options) {
|
|
|
563
564
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
564
565
|
writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
565
566
|
} catch (error) {
|
|
566
|
-
writeFatal("
|
|
567
|
+
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
567
568
|
throw error;
|
|
568
569
|
} finally {
|
|
569
570
|
stopwatch();
|
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 _chunkRPASR3EHcjs = require('./chunk-RPASR3EH.cjs');
|
|
5
|
+
require('./chunk-7O55IAQT.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 = _chunkRPASR3EHcjs.clean; exports.cleanDirectories = _chunkRPASR3EHcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGKES5W75cjs = require('./chunk-GKES5W75.cjs');
|
|
5
5
|
require('./chunk-S6M44SSZ.cjs');
|
|
6
6
|
require('./chunk-WRBUO7H6.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-23BWXS7W.cjs');
|
|
8
8
|
require('./chunk-SSEYS7LI.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-CGC754NO.cjs');
|
|
10
|
+
require('./chunk-7O55IAQT.cjs');
|
|
11
11
|
require('./chunk-XITTOHOG.cjs');
|
|
12
12
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
13
13
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -15,4 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
18
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkGKES5W75cjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkGKES5W75cjs.getDefaultBuildPlugins;
|
package/dist/config.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS,
|
|
3
3
|
getDefaultBuildPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LYZEF7N4.js";
|
|
5
5
|
import "./chunk-T5272PC2.js";
|
|
6
6
|
import "./chunk-LYDEMC26.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-JIM5EHQS.js";
|
|
8
8
|
import "./chunk-Q3LOGZKI.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WDK7RJAQ.js";
|
|
10
|
+
import "./chunk-544OYWSQ.js";
|
|
11
11
|
import "./chunk-YMTDVMD6.js";
|
|
12
12
|
import "./chunk-YNQ45EAM.js";
|
|
13
13
|
import "./chunk-GWG4HOQ6.js";
|
package/dist/index.cjs
CHANGED
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEMIGMUPIcjs = require('./chunk-EMIGMUPI.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRPASR3EHcjs = require('./chunk-RPASR3EH.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkGKES5W75cjs = require('./chunk-GKES5W75.cjs');
|
|
19
19
|
require('./chunk-S6M44SSZ.cjs');
|
|
20
20
|
require('./chunk-WRBUO7H6.cjs');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-23BWXS7W.cjs');
|
|
22
22
|
require('./chunk-SSEYS7LI.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-CGC754NO.cjs');
|
|
24
24
|
require('./chunk-SFZRYJZ2.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-FHHDOIZH.cjs');
|
|
26
|
+
require('./chunk-7O55IAQT.cjs');
|
|
27
27
|
require('./chunk-XITTOHOG.cjs');
|
|
28
28
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
29
29
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -41,4 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
44
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkGKES5W75cjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkEMIGMUPIcjs.Filter; exports.Mapper = _chunkEMIGMUPIcjs.Mapper; exports.build = _chunkEMIGMUPIcjs.build; exports.clean = _chunkRPASR3EHcjs.clean; exports.cleanDirectories = _chunkRPASR3EHcjs.cleanDirectories; exports.cleanOutputPath = _chunkEMIGMUPIcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkGKES5W75cjs.getDefaultBuildPlugins; exports.handle = _chunkEMIGMUPIcjs.handle; exports.pipe = _chunkEMIGMUPIcjs.pipe; exports.skip = _chunkEMIGMUPIcjs.skip; exports.transduce = _chunkEMIGMUPIcjs.transduce;
|
package/dist/index.js
CHANGED
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
pipe,
|
|
8
8
|
skip,
|
|
9
9
|
transduce
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YTQN474S.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DXIR35ET.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LYZEF7N4.js";
|
|
19
19
|
import "./chunk-T5272PC2.js";
|
|
20
20
|
import "./chunk-LYDEMC26.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-JIM5EHQS.js";
|
|
22
22
|
import "./chunk-Q3LOGZKI.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WDK7RJAQ.js";
|
|
24
24
|
import "./chunk-GGNOJ77I.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-JZMOPFOH.js";
|
|
26
|
+
import "./chunk-544OYWSQ.js";
|
|
27
27
|
import "./chunk-YMTDVMD6.js";
|
|
28
28
|
import "./chunk-YNQ45EAM.js";
|
|
29
29
|
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 _chunkFHHDOIZHcjs = require('../chunk-FHHDOIZH.cjs');
|
|
4
|
+
require('../chunk-7O55IAQT.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.depsCheckPlugin =
|
|
9
|
+
exports.depsCheckPlugin = _chunkFHHDOIZHcjs.depsCheckPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk23BWXS7Wcjs = require('../chunk-23BWXS7W.cjs');
|
|
4
|
+
require('../chunk-7O55IAQT.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.onErrorPlugin =
|
|
9
|
+
exports.onErrorPlugin = _chunk23BWXS7Wcjs.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 _chunkCGC754NOcjs = require('../chunk-CGC754NO.cjs');
|
|
4
|
+
require('../chunk-7O55IAQT.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.tscPlugin =
|
|
9
|
+
exports.tscPlugin = _chunkCGC754NOcjs.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.31.
|
|
3
|
+
"version": "0.31.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
"@microsoft/api-extractor": "^7.48.1",
|
|
173
173
|
"@nx/devkit": "^20.3.1",
|
|
174
174
|
"@nx/js": "^20.3.1",
|
|
175
|
-
"@storm-software/build-tools": "0.143.
|
|
176
|
-
"@storm-software/config": "1.106.
|
|
177
|
-
"@storm-software/config-tools": "1.158.
|
|
175
|
+
"@storm-software/build-tools": "0.143.13",
|
|
176
|
+
"@storm-software/config": "1.106.9",
|
|
177
|
+
"@storm-software/config-tools": "1.158.9",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"rollup": "4.29.1",
|
|
180
180
|
"spdx-exceptions": "^2.5.0",
|