@storm-software/esbuild 0.20.3 → 0.20.5
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-3RG3T2O5.js → chunk-6FLK5OAO.js} +1 -1
- package/dist/{chunk-57PL575F.js → chunk-A6ZMH3XN.js} +15 -8
- package/dist/{chunk-POIUE2RK.js → chunk-DT7YERJW.js} +1 -1
- package/dist/{chunk-7QKT6FMW.cjs → chunk-HPSHBBVG.cjs} +3 -3
- package/dist/{chunk-2UGN3GIZ.cjs → chunk-I3JFFJC5.cjs} +2 -2
- package/dist/{chunk-PTYJW2HM.js → chunk-LGGKK6QN.js} +1 -1
- package/dist/{chunk-2HYQD5GV.cjs → chunk-OOH2ZVCI.cjs} +37 -37
- package/dist/{chunk-FMAJJRK3.cjs → chunk-QT6BDK5A.cjs} +45 -49
- package/dist/{chunk-MGJG2JMB.cjs → chunk-R4BLLBKQ.cjs} +3 -3
- package/dist/{chunk-G7GUXWSG.cjs → chunk-TNCZJEAM.cjs} +15 -8
- package/dist/{chunk-5MFWPVGA.cjs → chunk-UKOZKAQT.cjs} +2 -2
- package/dist/{chunk-OGQQIGFS.js → chunk-W7HB7SFB.js} +14 -18
- package/dist/{chunk-Y6UUSEZG.js → chunk-ZHJADIB7.js} +1 -1
- package/dist/{chunk-TMKDJTUI.js → chunk-ZN6WVNOW.js} +4 -4
- 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/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,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkOOH2ZVCIcjs = require('./chunk-OOH2ZVCI.cjs');
|
|
4
|
+
require('./chunk-HPSHBBVG.cjs');
|
|
5
|
+
require('./chunk-QT6BDK5A.cjs');
|
|
6
6
|
require('./chunk-S6M44SSZ.cjs');
|
|
7
7
|
require('./chunk-WRBUO7H6.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-I3JFFJC5.cjs');
|
|
9
9
|
require('./chunk-RMB62XEL.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-UKOZKAQT.cjs');
|
|
11
|
+
require('./chunk-R4BLLBKQ.cjs');
|
|
12
|
+
require('./chunk-TNCZJEAM.cjs');
|
|
13
13
|
require('./chunk-LVWQSCJM.cjs');
|
|
14
14
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
15
15
|
require('./chunk-EZGTDCYM.cjs');
|
|
16
16
|
require('./chunk-BGYQAVKQ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.build =
|
|
19
|
+
exports.build = _chunkOOH2ZVCIcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZN6WVNOW.js";
|
|
4
|
+
import "./chunk-ZHJADIB7.js";
|
|
5
|
+
import "./chunk-W7HB7SFB.js";
|
|
6
6
|
import "./chunk-T5272PC2.js";
|
|
7
7
|
import "./chunk-LYDEMC26.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-LGGKK6QN.js";
|
|
9
9
|
import "./chunk-DAGDNKO5.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6FLK5OAO.js";
|
|
11
|
+
import "./chunk-DT7YERJW.js";
|
|
12
|
+
import "./chunk-A6ZMH3XN.js";
|
|
13
13
|
import "./chunk-7MDMXJ5V.js";
|
|
14
14
|
import "./chunk-YNQ45EAM.js";
|
|
15
15
|
import "./chunk-GWG4HOQ6.js";
|
|
@@ -466,49 +466,56 @@ var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date())
|
|
|
466
466
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
467
467
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
468
468
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
469
|
-
if (
|
|
469
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
470
470
|
return (_) => {
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
473
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
474
474
|
return (message) => {
|
|
475
475
|
console.error(`
|
|
476
476
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
477
477
|
`);
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
480
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
481
481
|
return (message) => {
|
|
482
482
|
console.error(`
|
|
483
483
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
484
484
|
`);
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
487
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
488
488
|
return (message) => {
|
|
489
489
|
console.warn(`
|
|
490
490
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
491
|
`);
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
494
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
495
495
|
return (message) => {
|
|
496
496
|
console.info(`
|
|
497
497
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
498
498
|
`);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
501
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
502
502
|
return (message) => {
|
|
503
503
|
console.info(`
|
|
504
504
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
505
505
|
`);
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
508
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
509
509
|
return (message) => {
|
|
510
510
|
console.debug(`
|
|
511
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
511
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
|
+
`);
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
516
|
+
return (message) => {
|
|
517
|
+
console.debug(`
|
|
518
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
519
|
`);
|
|
513
520
|
};
|
|
514
521
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTNCZJEAMcjs = require('./chunk-TNCZJEAM.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 _node = require('@humanfs/node');
|
|
11
11
|
async function clean(name = "ESBuild", directory, config) {
|
|
12
|
-
|
|
13
|
-
const stopwatch =
|
|
12
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
13
|
+
const stopwatch = _chunkTNCZJEAMcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
14
14
|
await _node.hfs.deleteAll(directory);
|
|
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 _chunkTNCZJEAMcjs = require('./chunk-TNCZJEAM.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
|
+
_chunkTNCZJEAMcjs.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
|
"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 _chunkHPSHBBVGcjs = require('./chunk-HPSHBBVG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -14,10 +14,10 @@ var _chunk7QKT6FMWcjs = require('./chunk-7QKT6FMW.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQT6BDK5Acjs = require('./chunk-QT6BDK5A.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkR4BLLBKQcjs = require('./chunk-R4BLLBKQ.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ var _chunkMGJG2JMBcjs = require('./chunk-MGJG2JMB.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkTNCZJEAMcjs = require('./chunk-TNCZJEAM.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkLVWQSCJMcjs = require('./chunk-LVWQSCJM.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 _chunkQT6BDK5Acjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
281
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
282
|
+
const stopwatch = _chunkTNCZJEAMcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
283
283
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
284
284
|
exitOnError: true
|
|
285
285
|
});
|
|
@@ -293,16 +293,16 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
293
293
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
294
294
|
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.");
|
|
295
295
|
}
|
|
296
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
296
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkQT6BDK5Acjs.DEFAULT_BUILD_OPTIONS);
|
|
297
297
|
options.name ??= `${projectName}-${options.format}`;
|
|
298
|
-
options.target ??=
|
|
298
|
+
options.target ??= _chunkQT6BDK5Acjs.DEFAULT_TARGET;
|
|
299
299
|
const packageJsonPath = _chunkLVWQSCJMcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
300
300
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
301
301
|
throw new Error("Cannot find package.json configuration");
|
|
302
302
|
}
|
|
303
303
|
const packageJson = await _node.hfs.json(packageJsonPath);
|
|
304
|
-
const outExtension =
|
|
305
|
-
const env =
|
|
304
|
+
const outExtension = _chunkQT6BDK5Acjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
|
|
305
|
+
const env = _chunkQT6BDK5Acjs.getEnv.call(void 0, "esbuild", options);
|
|
306
306
|
const result = {
|
|
307
307
|
...options,
|
|
308
308
|
config,
|
|
@@ -322,7 +322,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
322
322
|
...userOptions,
|
|
323
323
|
tsconfig: _chunkLVWQSCJMcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
324
324
|
format: options.format || "cjs",
|
|
325
|
-
entryPoints: await
|
|
325
|
+
entryPoints: await _chunkQT6BDK5Acjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
326
326
|
"./src/index.ts"
|
|
327
327
|
], userOptions.emitOnAll),
|
|
328
328
|
outdir: userOptions.outputPath || _chunkLVWQSCJMcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -333,7 +333,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
333
333
|
projectGraph,
|
|
334
334
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkLVWQSCJMcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
335
335
|
minify: userOptions.minify || !userOptions.debug,
|
|
336
|
-
verbose: userOptions.verbose ||
|
|
336
|
+
verbose: userOptions.verbose || _chunkTNCZJEAMcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
337
337
|
includeSrc: userOptions.includeSrc === true,
|
|
338
338
|
metafile: userOptions.metafile !== false,
|
|
339
339
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -347,8 +347,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
347
347
|
outExtension,
|
|
348
348
|
footer: userOptions.footer,
|
|
349
349
|
banner: {
|
|
350
|
-
js: options.banner ||
|
|
351
|
-
css: options.banner ||
|
|
350
|
+
js: options.banner || _chunkQT6BDK5Acjs.DEFAULT_COMPILED_BANNER,
|
|
351
|
+
css: options.banner || _chunkQT6BDK5Acjs.DEFAULT_COMPILED_BANNER
|
|
352
352
|
},
|
|
353
353
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
354
354
|
treeShaking: options.format === "esm",
|
|
@@ -374,14 +374,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
374
374
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
375
375
|
].filter(Boolean)
|
|
376
376
|
};
|
|
377
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
377
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkQT6BDK5Acjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
378
378
|
stopwatch();
|
|
379
379
|
return result;
|
|
380
380
|
}, "resolveOptions");
|
|
381
381
|
async function generatePackageJson(context2) {
|
|
382
382
|
if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkLVWQSCJMcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
383
|
-
|
|
384
|
-
const stopwatch =
|
|
383
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
384
|
+
const stopwatch = _chunkTNCZJEAMcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
385
385
|
const packageJsonPath = _chunkLVWQSCJMcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
386
386
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
387
387
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -390,11 +390,11 @@ async function generatePackageJson(context2) {
|
|
|
390
390
|
if (!packageJson) {
|
|
391
391
|
throw new Error("Cannot find package.json configuration file");
|
|
392
392
|
}
|
|
393
|
-
packageJson = await
|
|
394
|
-
packageJson = await
|
|
393
|
+
packageJson = await _chunkQT6BDK5Acjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
394
|
+
packageJson = await _chunkQT6BDK5Acjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
395
395
|
packageJson.exports ??= {};
|
|
396
396
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
397
|
-
packageJson.exports["."] ??=
|
|
397
|
+
packageJson.exports["."] ??= _chunkQT6BDK5Acjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
398
398
|
let entryPoints = [
|
|
399
399
|
{
|
|
400
400
|
in: "./src/index.ts",
|
|
@@ -412,7 +412,7 @@ async function generatePackageJson(context2) {
|
|
|
412
412
|
const split = entryPoint.out.split(".");
|
|
413
413
|
split.pop();
|
|
414
414
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
415
|
-
packageJson.exports[`./${entry}`] ??=
|
|
415
|
+
packageJson.exports[`./${entry}`] ??= _chunkQT6BDK5Acjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -450,8 +450,8 @@ async function generateContext(getOptions) {
|
|
|
450
450
|
}
|
|
451
451
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
452
452
|
async function executeEsBuild(context2) {
|
|
453
|
-
|
|
454
|
-
const stopwatch =
|
|
453
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
454
|
+
const stopwatch = _chunkTNCZJEAMcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
455
455
|
if (process.env.WATCH === "true") {
|
|
456
456
|
const ctx = await esbuild.context(context2.options);
|
|
457
457
|
watch(ctx, context2.options);
|
|
@@ -467,9 +467,9 @@ async function executeEsBuild(context2) {
|
|
|
467
467
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
468
468
|
async function copyBuildAssets(context2) {
|
|
469
469
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
470
|
-
|
|
471
|
-
const stopwatch =
|
|
472
|
-
await
|
|
470
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
471
|
+
const stopwatch = _chunkTNCZJEAMcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
472
|
+
await _chunkQT6BDK5Acjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
|
|
473
473
|
stopwatch();
|
|
474
474
|
}
|
|
475
475
|
return context2;
|
|
@@ -478,9 +478,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
478
478
|
async function reportResults(context2) {
|
|
479
479
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
480
480
|
if (context2.result.warnings.length > 0) {
|
|
481
|
-
|
|
481
|
+
_chunkTNCZJEAMcjs.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);
|
|
482
482
|
}
|
|
483
|
-
|
|
483
|
+
_chunkTNCZJEAMcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -506,7 +506,7 @@ async function dependencyCheck(options) {
|
|
|
506
506
|
write: false,
|
|
507
507
|
outdir: "out",
|
|
508
508
|
plugins: [
|
|
509
|
-
|
|
509
|
+
_chunkR4BLLBKQcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
510
510
|
]
|
|
511
511
|
});
|
|
512
512
|
await buildPromise.catch(() => {
|
|
@@ -516,14 +516,14 @@ async function dependencyCheck(options) {
|
|
|
516
516
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
517
517
|
async function cleanOutputPath(context2) {
|
|
518
518
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
519
|
-
await
|
|
519
|
+
await _chunkHPSHBBVGcjs.clean.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
520
520
|
}
|
|
521
521
|
return context2;
|
|
522
522
|
}
|
|
523
523
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
524
524
|
async function build2(options) {
|
|
525
|
-
|
|
526
|
-
const stopwatch =
|
|
525
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
526
|
+
const stopwatch = _chunkTNCZJEAMcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
527
527
|
try {
|
|
528
528
|
const opts = Array.isArray(options) ? options : [
|
|
529
529
|
options
|
|
@@ -533,9 +533,9 @@ async function build2(options) {
|
|
|
533
533
|
}
|
|
534
534
|
void transduce.async(opts, dependencyCheck);
|
|
535
535
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
536
|
-
|
|
536
|
+
_chunkTNCZJEAMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
537
537
|
} catch (error) {
|
|
538
|
-
|
|
538
|
+
_chunkTNCZJEAMcjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
539
539
|
throw error;
|
|
540
540
|
} finally {
|
|
541
541
|
stopwatch();
|
|
@@ -563,9 +563,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
563
563
|
return context2.rebuild();
|
|
564
564
|
});
|
|
565
565
|
if (rebuildResult instanceof Error) {
|
|
566
|
-
|
|
566
|
+
_chunkTNCZJEAMcjs.writeError.call(void 0, rebuildResult.message);
|
|
567
567
|
}
|
|
568
|
-
|
|
568
|
+
_chunkTNCZJEAMcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
569
569
|
}, 10);
|
|
570
570
|
changeWatcher.on("change", fastRebuild);
|
|
571
571
|
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 _chunkI3JFFJC5cjs = require('./chunk-I3JFFJC5.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkRMB62XELcjs = require('./chunk-RMB62XEL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkUKOZKAQTcjs = require('./chunk-UKOZKAQT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -29,7 +29,7 @@ var _chunk5MFWPVGAcjs = require('./chunk-5MFWPVGA.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkTNCZJEAMcjs = require('./chunk-TNCZJEAM.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -78,7 +78,7 @@ var _promises = require('fs/promises');
|
|
|
78
78
|
var _c12 = require('c12');
|
|
79
79
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
80
80
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
81
|
-
const workspacePath = filePath ||
|
|
81
|
+
const workspacePath = filePath || _chunkTNCZJEAMcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
82
82
|
let config = await _c12.loadConfig.call(void 0, {
|
|
83
83
|
cwd: workspacePath,
|
|
84
84
|
packageJson: true,
|
|
@@ -107,12 +107,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
107
107
|
return config;
|
|
108
108
|
}, "getConfigFileByName");
|
|
109
109
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
110
|
-
const workspacePath = filePath ? filePath :
|
|
110
|
+
const workspacePath = filePath ? filePath : _chunkTNCZJEAMcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
111
111
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
112
112
|
let config = result.config;
|
|
113
113
|
const configFile = result.configFile;
|
|
114
114
|
if (config && configFile && Object.keys(config).length > 0) {
|
|
115
|
-
|
|
115
|
+
_chunkTNCZJEAMcjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
116
116
|
logLevel: "all"
|
|
117
117
|
});
|
|
118
118
|
}
|
|
@@ -120,7 +120,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
120
120
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
121
121
|
for (const result2 of results) {
|
|
122
122
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
123
|
-
|
|
123
|
+
_chunkTNCZJEAMcjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
124
124
|
logLevel: "all"
|
|
125
125
|
});
|
|
126
126
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
@@ -188,23 +188,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
188
188
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
189
189
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
190
190
|
},
|
|
191
|
-
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`])) ?
|
|
191
|
+
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`])) ? _chunkTNCZJEAMcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
192
192
|
};
|
|
193
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
193
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkTNCZJEAMcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
194
194
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
195
195
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
196
196
|
return ret;
|
|
197
197
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
198
|
-
if (config.docs ===
|
|
199
|
-
if (config.homepage ===
|
|
200
|
-
config.docs = `${
|
|
198
|
+
if (config.docs === _chunkTNCZJEAMcjs.STORM_DEFAULT_DOCS) {
|
|
199
|
+
if (config.homepage === _chunkTNCZJEAMcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
200
|
+
config.docs = `${_chunkTNCZJEAMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
201
201
|
} else {
|
|
202
202
|
config.docs = `${config.homepage}/docs`;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
if (config.licensing ===
|
|
206
|
-
if (config.homepage ===
|
|
207
|
-
config.licensing = `${
|
|
205
|
+
if (config.licensing === _chunkTNCZJEAMcjs.STORM_DEFAULT_LICENSING) {
|
|
206
|
+
if (config.homepage === _chunkTNCZJEAMcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
207
|
+
config.licensing = `${_chunkTNCZJEAMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
208
208
|
} else {
|
|
209
209
|
config.licensing = `${config.homepage}/docs`;
|
|
210
210
|
}
|
|
@@ -420,8 +420,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
420
420
|
if (config.logLevel) {
|
|
421
421
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
422
422
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
423
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
424
|
-
process.env.RUST_BACKTRACE =
|
|
423
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkTNCZJEAMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTNCZJEAMcjs.LogLevel.DEBUG ? true : false);
|
|
424
|
+
process.env.RUST_BACKTRACE = _chunkTNCZJEAMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTNCZJEAMcjs.LogLevel.DEBUG ? "full" : "none";
|
|
425
425
|
}
|
|
426
426
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
427
427
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -531,23 +531,23 @@ var _static_cache = void 0;
|
|
|
531
531
|
var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot) => {
|
|
532
532
|
let config = {};
|
|
533
533
|
if (_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) && _optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
534
|
-
|
|
534
|
+
_chunkTNCZJEAMcjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
|
|
535
535
|
return _static_cache.data;
|
|
536
536
|
}
|
|
537
537
|
let _workspaceRoot = workspaceRoot;
|
|
538
538
|
if (!_workspaceRoot) {
|
|
539
|
-
_workspaceRoot =
|
|
539
|
+
_workspaceRoot = _chunkTNCZJEAMcjs.findWorkspaceRoot.call(void 0, );
|
|
540
540
|
}
|
|
541
541
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
542
542
|
if (!configFile) {
|
|
543
|
-
|
|
543
|
+
_chunkTNCZJEAMcjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
544
544
|
logLevel: "all"
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
config = _defu2.default.call(void 0, getConfigEnv(), configFile,
|
|
547
|
+
config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkTNCZJEAMcjs.getDefaultConfig.call(void 0, _workspaceRoot));
|
|
548
548
|
setConfigEnv(config);
|
|
549
|
-
|
|
550
|
-
${
|
|
549
|
+
_chunkTNCZJEAMcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
550
|
+
${_chunkTNCZJEAMcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
551
551
|
return config;
|
|
552
552
|
}, "loadStormConfig");
|
|
553
553
|
|
|
@@ -571,27 +571,23 @@ var readNxConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (
|
|
|
571
571
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
572
572
|
var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
|
|
573
573
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
574
|
+
pendingAssets.push({
|
|
575
|
+
input: projectRoot,
|
|
576
|
+
glob: "*.md",
|
|
577
|
+
output: "."
|
|
578
|
+
});
|
|
579
|
+
pendingAssets.push({
|
|
580
|
+
input: config.workspaceRoot,
|
|
581
|
+
glob: "LICENSE",
|
|
582
|
+
output: "."
|
|
583
|
+
});
|
|
581
584
|
if (generatePackageJson === false) {
|
|
582
585
|
pendingAssets.push({
|
|
583
|
-
input:
|
|
586
|
+
input: projectRoot,
|
|
584
587
|
glob: "package.json",
|
|
585
588
|
output: "."
|
|
586
589
|
});
|
|
587
590
|
}
|
|
588
|
-
if (!_optionalChain([pendingAssets, 'optionalAccess', _34 => _34.some, 'call', _35 => _35((asset) => _optionalChain([asset, 'optionalAccess', _36 => _36.glob]) === "LICENSE")])) {
|
|
589
|
-
pendingAssets.push({
|
|
590
|
-
input: "",
|
|
591
|
-
glob: "LICENSE",
|
|
592
|
-
output: "."
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
591
|
if (includeSrc === true) {
|
|
596
592
|
pendingAssets.push({
|
|
597
593
|
input: sourceRoot,
|
|
@@ -602,10 +598,10 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
|
|
|
602
598
|
const nxJson = readNxConfig(config.workspaceRoot);
|
|
603
599
|
const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
604
600
|
const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
605
|
-
if (!_optionalChain([projectsConfigurations, 'optionalAccess',
|
|
601
|
+
if (!_optionalChain([projectsConfigurations, 'optionalAccess', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName]])) {
|
|
606
602
|
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.");
|
|
607
603
|
}
|
|
608
|
-
const buildTarget = _optionalChain([projectsConfigurations, 'access',
|
|
604
|
+
const buildTarget = _optionalChain([projectsConfigurations, 'access', _33 => _33.projects, 'access', _34 => _34[projectName], 'access', _35 => _35.targets, 'optionalAccess', _36 => _36.build]);
|
|
609
605
|
if (!buildTarget) {
|
|
610
606
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkLVWQSCJMcjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
|
|
611
607
|
}
|
|
@@ -622,13 +618,13 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
|
|
|
622
618
|
projectsConfigurations,
|
|
623
619
|
nxJsonConfiguration: nxJson,
|
|
624
620
|
cwd: config.workspaceRoot,
|
|
625
|
-
isVerbose:
|
|
621
|
+
isVerbose: _chunkTNCZJEAMcjs.isVerbose.call(void 0, config.logLevel)
|
|
626
622
|
});
|
|
627
623
|
if (!result.success) {
|
|
628
624
|
throw new Error("The Build process failed trying to copy assets");
|
|
629
625
|
}
|
|
630
626
|
if (includeSrc === true) {
|
|
631
|
-
|
|
627
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkLVWQSCJMcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
632
628
|
const files = await _glob.glob.call(void 0, [
|
|
633
629
|
_chunkLVWQSCJMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
634
630
|
_chunkLVWQSCJMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -666,7 +662,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
666
662
|
}
|
|
667
663
|
}
|
|
668
664
|
if (localPackages.length > 0) {
|
|
669
|
-
|
|
665
|
+
_chunkTNCZJEAMcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
670
666
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
671
667
|
if (!ret[localPackage.name]) {
|
|
672
668
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -688,12 +684,12 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
688
684
|
return ret;
|
|
689
685
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
690
686
|
} else {
|
|
691
|
-
|
|
687
|
+
_chunkTNCZJEAMcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
692
688
|
}
|
|
693
689
|
return packageJson;
|
|
694
690
|
}, "addPackageDependencies");
|
|
695
691
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
696
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
692
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTNCZJEAMcjs.findWorkspaceRoot.call(void 0, );
|
|
697
693
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkLVWQSCJMcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
698
694
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
699
695
|
packageJson.type ??= "module";
|
|
@@ -761,7 +757,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
761
757
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
762
758
|
|
|
763
759
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
764
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
760
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTNCZJEAMcjs.findWorkspaceRoot.call(void 0, );
|
|
765
761
|
const entryPoints = [];
|
|
766
762
|
if (entry) {
|
|
767
763
|
if (Array.isArray(entry)) {
|
|
@@ -784,7 +780,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
784
780
|
results.push(...files.reduce((ret, filePath) => {
|
|
785
781
|
const result = _chunkLVWQSCJMcjs.correctPaths.call(void 0, _chunkLVWQSCJMcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkLVWQSCJMcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkLVWQSCJMcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
786
782
|
if (result) {
|
|
787
|
-
|
|
783
|
+
_chunkTNCZJEAMcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkLVWQSCJMcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
788
784
|
if (!results.includes(result)) {
|
|
789
785
|
results.push(result);
|
|
790
786
|
}
|
|
@@ -847,8 +843,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
847
843
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
848
844
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
849
845
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
850
|
-
|
|
851
|
-
|
|
846
|
+
_chunkUKOZKAQTcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
847
|
+
_chunkI3JFFJC5cjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
852
848
|
], "getDefaultBuildPlugins");
|
|
853
849
|
var DEFAULT_BUILD_OPTIONS = {
|
|
854
850
|
platform: "node",
|
|
@@ -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 _chunkTNCZJEAMcjs = require('./chunk-TNCZJEAM.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
|
+
_chunkTNCZJEAMcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkTNCZJEAMcjs.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)}
|
|
@@ -466,49 +466,56 @@ var formatTimestamp = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (dat
|
|
|
466
466
|
var getLogFn = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
467
467
|
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
468
468
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
469
|
-
if (
|
|
469
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
470
470
|
return (_) => {
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
473
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
474
474
|
return (message) => {
|
|
475
475
|
console.error(`
|
|
476
476
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
477
477
|
`);
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
480
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
481
481
|
return (message) => {
|
|
482
482
|
console.error(`
|
|
483
483
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
484
484
|
`);
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
487
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
488
488
|
return (message) => {
|
|
489
489
|
console.warn(`
|
|
490
490
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
491
|
`);
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
494
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
495
495
|
return (message) => {
|
|
496
496
|
console.info(`
|
|
497
497
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
498
498
|
`);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
501
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
502
502
|
return (message) => {
|
|
503
503
|
console.info(`
|
|
504
504
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
505
505
|
`);
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
508
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
509
509
|
return (message) => {
|
|
510
510
|
console.debug(`
|
|
511
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
511
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
|
+
`);
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
516
|
+
return (message) => {
|
|
517
|
+
console.debug(`
|
|
518
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
519
|
`);
|
|
513
520
|
};
|
|
514
521
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkTNCZJEAMcjs = require('./chunk-TNCZJEAM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkLVWQSCJMcjs = require('./chunk-LVWQSCJM.cjs');
|
|
@@ -84,7 +84,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
84
84
|
localBuild: true
|
|
85
85
|
});
|
|
86
86
|
if (extractorResult.succeeded === false) {
|
|
87
|
-
|
|
87
|
+
_chunkTNCZJEAMcjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
88
88
|
throw new Error("API Extractor completed with errors");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LGGKK6QN.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePathsPlugin
|
|
12
12
|
} from "./chunk-DAGDNKO5.js";
|
|
13
13
|
import {
|
|
14
14
|
tscPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6FLK5OAO.js";
|
|
16
16
|
import {
|
|
17
17
|
COLOR_KEYS,
|
|
18
18
|
LogLevel,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
writeSystem,
|
|
30
30
|
writeTrace,
|
|
31
31
|
writeWarning
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-A6ZMH3XN.js";
|
|
33
33
|
import {
|
|
34
34
|
correctPaths,
|
|
35
35
|
joinPaths
|
|
@@ -571,27 +571,23 @@ var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
|
|
|
571
571
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
572
572
|
var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
|
|
573
573
|
const pendingAssets = Array.from(assets ?? []);
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
574
|
+
pendingAssets.push({
|
|
575
|
+
input: projectRoot,
|
|
576
|
+
glob: "*.md",
|
|
577
|
+
output: "."
|
|
578
|
+
});
|
|
579
|
+
pendingAssets.push({
|
|
580
|
+
input: config.workspaceRoot,
|
|
581
|
+
glob: "LICENSE",
|
|
582
|
+
output: "."
|
|
583
|
+
});
|
|
581
584
|
if (generatePackageJson === false) {
|
|
582
585
|
pendingAssets.push({
|
|
583
|
-
input:
|
|
586
|
+
input: projectRoot,
|
|
584
587
|
glob: "package.json",
|
|
585
588
|
output: "."
|
|
586
589
|
});
|
|
587
590
|
}
|
|
588
|
-
if (!pendingAssets?.some((asset) => asset?.glob === "LICENSE")) {
|
|
589
|
-
pendingAssets.push({
|
|
590
|
-
input: "",
|
|
591
|
-
glob: "LICENSE",
|
|
592
|
-
output: "."
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
591
|
if (includeSrc === true) {
|
|
596
592
|
pendingAssets.push({
|
|
597
593
|
input: sourceRoot,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clean
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZHJADIB7.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
getEnv,
|
|
15
15
|
getOutputExtensionMap,
|
|
16
16
|
loadStormConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W7HB7SFB.js";
|
|
18
18
|
import {
|
|
19
19
|
depsCheckPlugin
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DT7YERJW.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-A6ZMH3XN.js";
|
|
31
31
|
import {
|
|
32
32
|
joinPaths
|
|
33
33
|
} from "./chunk-7MDMXJ5V.js";
|
package/dist/clean.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 _chunkHPSHBBVGcjs = require('./chunk-HPSHBBVG.cjs');
|
|
4
|
+
require('./chunk-TNCZJEAM.cjs');
|
|
5
5
|
require('./chunk-LVWQSCJM.cjs');
|
|
6
6
|
require('./chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.clean =
|
|
9
|
+
exports.clean = _chunkHPSHBBVGcjs.clean;
|
package/dist/clean.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQT6BDK5Acjs = require('./chunk-QT6BDK5A.cjs');
|
|
6
6
|
require('./chunk-S6M44SSZ.cjs');
|
|
7
7
|
require('./chunk-WRBUO7H6.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-I3JFFJC5.cjs');
|
|
9
9
|
require('./chunk-RMB62XEL.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-UKOZKAQT.cjs');
|
|
11
|
+
require('./chunk-TNCZJEAM.cjs');
|
|
12
12
|
require('./chunk-LVWQSCJM.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 = _chunkQT6BDK5Acjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkQT6BDK5Acjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkQT6BDK5Acjs.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-W7HB7SFB.js";
|
|
6
6
|
import "./chunk-T5272PC2.js";
|
|
7
7
|
import "./chunk-LYDEMC26.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-LGGKK6QN.js";
|
|
9
9
|
import "./chunk-DAGDNKO5.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6FLK5OAO.js";
|
|
11
|
+
import "./chunk-A6ZMH3XN.js";
|
|
12
12
|
import "./chunk-7MDMXJ5V.js";
|
|
13
13
|
import "./chunk-YNQ45EAM.js";
|
|
14
14
|
import "./chunk-GWG4HOQ6.js";
|
package/dist/index.cjs
CHANGED
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkOOH2ZVCIcjs = require('./chunk-OOH2ZVCI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHPSHBBVGcjs = require('./chunk-HPSHBBVG.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQT6BDK5Acjs = require('./chunk-QT6BDK5A.cjs');
|
|
18
18
|
require('./chunk-S6M44SSZ.cjs');
|
|
19
19
|
require('./chunk-WRBUO7H6.cjs');
|
|
20
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-I3JFFJC5.cjs');
|
|
21
21
|
require('./chunk-RMB62XEL.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-UKOZKAQT.cjs');
|
|
23
23
|
require('./chunk-SFZRYJZ2.cjs');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-R4BLLBKQ.cjs');
|
|
25
|
+
require('./chunk-TNCZJEAM.cjs');
|
|
26
26
|
require('./chunk-LVWQSCJM.cjs');
|
|
27
27
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
28
28
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -39,4 +39,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
42
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkQT6BDK5Acjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkOOH2ZVCIcjs.Filter; exports.Mapper = _chunkOOH2ZVCIcjs.Mapper; exports.build = _chunkOOH2ZVCIcjs.build; exports.clean = _chunkHPSHBBVGcjs.clean; exports.getDefaultBuildPlugins = _chunkQT6BDK5Acjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkQT6BDK5Acjs.getOutputExtensionMap; exports.handle = _chunkOOH2ZVCIcjs.handle; exports.pipe = _chunkOOH2ZVCIcjs.pipe; exports.skip = _chunkOOH2ZVCIcjs.skip; exports.transduce = _chunkOOH2ZVCIcjs.transduce;
|
package/dist/index.js
CHANGED
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
pipe,
|
|
7
7
|
skip,
|
|
8
8
|
transduce
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZN6WVNOW.js";
|
|
10
10
|
import {
|
|
11
11
|
clean
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZHJADIB7.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_BUILD_OPTIONS,
|
|
15
15
|
getDefaultBuildPlugins,
|
|
16
16
|
getOutputExtensionMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W7HB7SFB.js";
|
|
18
18
|
import "./chunk-T5272PC2.js";
|
|
19
19
|
import "./chunk-LYDEMC26.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-LGGKK6QN.js";
|
|
21
21
|
import "./chunk-DAGDNKO5.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6FLK5OAO.js";
|
|
23
23
|
import "./chunk-GGNOJ77I.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-DT7YERJW.js";
|
|
25
|
+
import "./chunk-A6ZMH3XN.js";
|
|
26
26
|
import "./chunk-7MDMXJ5V.js";
|
|
27
27
|
import "./chunk-YNQ45EAM.js";
|
|
28
28
|
import "./chunk-GWG4HOQ6.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.5",
|
|
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.
|
|
176
|
-
"@storm-software/config": "1.97.
|
|
177
|
-
"@storm-software/config-tools": "1.
|
|
175
|
+
"@storm-software/build-tools": "0.133.1",
|
|
176
|
+
"@storm-software/config": "1.97.5",
|
|
177
|
+
"@storm-software/config-tools": "1.140.1",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"defu": "6.1.4",
|
|
180
180
|
"esbuild": "^0.24.0",
|