@storm-software/esbuild 0.31.16 → 0.31.18
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 +3 -4
- package/dist/build.cjs +8 -8
- package/dist/build.js +7 -7
- package/dist/{chunk-CGC754NO.cjs → chunk-27CI4FOR.cjs} +2 -2
- package/dist/{chunk-7O55IAQT.cjs → chunk-4DMUOH4Z.cjs} +14 -0
- package/dist/{chunk-RPASR3EH.cjs → chunk-5OVF7G64.cjs} +3 -3
- package/dist/{chunk-JIM5EHQS.js → chunk-BBZUTQQO.js} +1 -1
- package/dist/{chunk-23BWXS7W.cjs → chunk-BLWAYYW3.cjs} +2 -2
- package/dist/{chunk-GKES5W75.cjs → chunk-CWE2DVRL.cjs} +59 -47
- package/dist/{chunk-FHHDOIZH.cjs → chunk-HGSRUTIH.cjs} +3 -3
- package/dist/{chunk-EMIGMUPI.cjs → chunk-J7UVXBZR.cjs} +41 -42
- package/dist/{chunk-YTQN474S.js → chunk-K5P4LJKO.js} +7 -8
- package/dist/{chunk-JZMOPFOH.js → chunk-KDIEZDDV.js} +1 -1
- package/dist/{chunk-DXIR35ET.js → chunk-MQOPCGJB.js} +1 -1
- package/dist/{chunk-WDK7RJAQ.js → chunk-RBERCPFK.js} +1 -1
- package/dist/{chunk-544OYWSQ.js → chunk-VILSJXYM.js} +14 -0
- package/dist/{chunk-LYZEF7N4.js → chunk-XKWAVCXW.js} +17 -5
- package/dist/clean.cjs +3 -3
- package/dist/clean.d.cts +23 -0
- package/dist/clean.d.ts +23 -0
- package/dist/clean.js +2 -2
- package/dist/config.cjs +5 -5
- package/dist/config.js +4 -4
- package/dist/index.cjs +8 -8
- package/dist/index.js +7 -7
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +9 -9
|
@@ -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 _chunk5OVF7G64cjs = require('./chunk-5OVF7G64.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,10 +12,10 @@ var _chunkRPASR3EHcjs = require('./chunk-RPASR3EH.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkCWE2DVRLcjs = require('./chunk-CWE2DVRL.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkHGSRUTIHcjs = require('./chunk-HGSRUTIH.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -26,7 +26,7 @@ var _chunkFHHDOIZHcjs = require('./chunk-FHHDOIZH.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk4DMUOH4Zcjs = require('./chunk-4DMUOH4Z.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 _chunkCWE2DVRLcjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
281
|
+
_chunk4DMUOH4Zcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
282
|
+
const stopwatch = _chunk4DMUOH4Zcjs.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, _chunkCWE2DVRLcjs.DEFAULT_BUILD_OPTIONS);
|
|
298
298
|
options.name ??= `${projectName}-${options.format}`;
|
|
299
|
-
options.target ??=
|
|
299
|
+
options.target ??= _chunkCWE2DVRLcjs.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 = _chunkCWE2DVRLcjs.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 _chunkCWE2DVRLcjs.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 || _chunk4DMUOH4Zcjs.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 || _chunkCWE2DVRLcjs.DEFAULT_COMPILED_BANNER,
|
|
343
|
+
css: options.banner || _chunkCWE2DVRLcjs.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",
|
|
@@ -361,13 +361,12 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
361
361
|
};
|
|
362
362
|
}, {})
|
|
363
363
|
},
|
|
364
|
-
inject: [
|
|
364
|
+
inject: _defu2.default.call(void 0, [
|
|
365
365
|
options.format === "cjs" && options.injectShims ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
366
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
|
|
367
|
-
|
|
368
|
-
].filter(Boolean)
|
|
366
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
|
|
367
|
+
], _nullishCoalesce(options.inject, () => ( []))).filter(Boolean)
|
|
369
368
|
};
|
|
370
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
369
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkCWE2DVRLcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
371
370
|
delete result.entry;
|
|
372
371
|
delete result.outputPath;
|
|
373
372
|
stopwatch();
|
|
@@ -375,8 +374,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
375
374
|
}, "resolveOptions");
|
|
376
375
|
async function generatePackageJson(context2) {
|
|
377
376
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
378
|
-
|
|
379
|
-
const stopwatch =
|
|
377
|
+
_chunk4DMUOH4Zcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
378
|
+
const stopwatch = _chunk4DMUOH4Zcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
380
379
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
381
380
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
382
381
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -386,8 +385,8 @@ async function generatePackageJson(context2) {
|
|
|
386
385
|
if (!packageJson) {
|
|
387
386
|
throw new Error("Cannot find package.json configuration file");
|
|
388
387
|
}
|
|
389
|
-
packageJson = await
|
|
390
|
-
packageJson = await
|
|
388
|
+
packageJson = await _chunkCWE2DVRLcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
389
|
+
packageJson = await _chunkCWE2DVRLcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
391
390
|
packageJson.exports ??= {};
|
|
392
391
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
393
392
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
@@ -449,8 +448,8 @@ async function generateContext(getOptions) {
|
|
|
449
448
|
}
|
|
450
449
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
451
450
|
async function executeEsBuild(context2) {
|
|
452
|
-
|
|
453
|
-
const stopwatch =
|
|
451
|
+
_chunk4DMUOH4Zcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
452
|
+
const stopwatch = _chunk4DMUOH4Zcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
454
453
|
if (process.env.STORM_WATCH) {
|
|
455
454
|
const ctx = await esbuild.context(context2.options);
|
|
456
455
|
watch(ctx, context2.options);
|
|
@@ -479,8 +478,8 @@ async function executeEsBuild(context2) {
|
|
|
479
478
|
delete options.renderers;
|
|
480
479
|
delete options.config;
|
|
481
480
|
delete options.injectShims;
|
|
482
|
-
|
|
483
|
-
${
|
|
481
|
+
_chunk4DMUOH4Zcjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
482
|
+
${_chunk4DMUOH4Zcjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
|
|
484
483
|
const result = await esbuild.build(options);
|
|
485
484
|
await esbuild.stop();
|
|
486
485
|
if (result.metafile) {
|
|
@@ -493,9 +492,9 @@ ${_chunk7O55IAQTcjs.formatLogMessage.call(void 0, options)}`, context2.options.c
|
|
|
493
492
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
494
493
|
async function copyBuildAssets(context2) {
|
|
495
494
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
496
|
-
|
|
497
|
-
const stopwatch =
|
|
498
|
-
await
|
|
495
|
+
_chunk4DMUOH4Zcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
496
|
+
const stopwatch = _chunk4DMUOH4Zcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
497
|
+
await _chunkCWE2DVRLcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
499
498
|
stopwatch();
|
|
500
499
|
}
|
|
501
500
|
return context2;
|
|
@@ -504,9 +503,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
504
503
|
async function reportResults(context2) {
|
|
505
504
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
506
505
|
if (context2.result.warnings.length > 0) {
|
|
507
|
-
|
|
506
|
+
_chunk4DMUOH4Zcjs.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);
|
|
508
507
|
}
|
|
509
|
-
|
|
508
|
+
_chunk4DMUOH4Zcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
510
509
|
}
|
|
511
510
|
}
|
|
512
511
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -532,7 +531,7 @@ async function dependencyCheck(options) {
|
|
|
532
531
|
write: false,
|
|
533
532
|
outdir: "out",
|
|
534
533
|
plugins: [
|
|
535
|
-
|
|
534
|
+
_chunkHGSRUTIHcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
536
535
|
]
|
|
537
536
|
});
|
|
538
537
|
await buildPromise.catch(() => {
|
|
@@ -542,17 +541,17 @@ async function dependencyCheck(options) {
|
|
|
542
541
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
543
542
|
async function cleanOutputPath(context2) {
|
|
544
543
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
545
|
-
|
|
546
|
-
const stopwatch =
|
|
547
|
-
await
|
|
544
|
+
_chunk4DMUOH4Zcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
545
|
+
const stopwatch = _chunk4DMUOH4Zcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
546
|
+
await _chunk5OVF7G64cjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
548
547
|
stopwatch();
|
|
549
548
|
}
|
|
550
549
|
return context2;
|
|
551
550
|
}
|
|
552
551
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
553
552
|
async function build2(options) {
|
|
554
|
-
|
|
555
|
-
const stopwatch =
|
|
553
|
+
_chunk4DMUOH4Zcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
554
|
+
const stopwatch = _chunk4DMUOH4Zcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
556
555
|
try {
|
|
557
556
|
const opts = Array.isArray(options) ? options : [
|
|
558
557
|
options
|
|
@@ -562,9 +561,9 @@ async function build2(options) {
|
|
|
562
561
|
}
|
|
563
562
|
void transduce.async(opts, dependencyCheck);
|
|
564
563
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
565
|
-
|
|
564
|
+
_chunk4DMUOH4Zcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
566
565
|
} catch (error) {
|
|
567
|
-
|
|
566
|
+
_chunk4DMUOH4Zcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
568
567
|
throw error;
|
|
569
568
|
} finally {
|
|
570
569
|
stopwatch();
|
|
@@ -592,9 +591,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
592
591
|
return context2.rebuild();
|
|
593
592
|
});
|
|
594
593
|
if (rebuildResult instanceof Error) {
|
|
595
|
-
|
|
594
|
+
_chunk4DMUOH4Zcjs.writeError.call(void 0, rebuildResult.message);
|
|
596
595
|
}
|
|
597
|
-
|
|
596
|
+
_chunk4DMUOH4Zcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
598
597
|
}, 10);
|
|
599
598
|
changeWatcher.on("change", fastRebuild);
|
|
600
599
|
return void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MQOPCGJB.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-XKWAVCXW.js";
|
|
16
16
|
import {
|
|
17
17
|
depsCheckPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KDIEZDDV.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-VILSJXYM.js";
|
|
30
30
|
import {
|
|
31
31
|
joinPaths
|
|
32
32
|
} from "./chunk-YMTDVMD6.js";
|
|
@@ -361,11 +361,10 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
361
361
|
};
|
|
362
362
|
}, {})
|
|
363
363
|
},
|
|
364
|
-
inject: [
|
|
364
|
+
inject: defu([
|
|
365
365
|
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : "",
|
|
366
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : ""
|
|
367
|
-
|
|
368
|
-
].filter(Boolean)
|
|
366
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : ""
|
|
367
|
+
], options.inject ?? []).filter(Boolean)
|
|
369
368
|
};
|
|
370
369
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
371
370
|
delete result.entry;
|
|
@@ -90,6 +90,14 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
|
90
90
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
91
91
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
92
92
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
93
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
94
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
95
|
+
[Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
96
|
+
|
|
97
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
98
|
+
|
|
99
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
100
|
+
`;
|
|
93
101
|
|
|
94
102
|
// ../config/src/schema.ts
|
|
95
103
|
import z from "zod";
|
|
@@ -180,6 +188,11 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
180
188
|
name: z.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
181
189
|
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
182
190
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
191
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
192
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
193
|
+
header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
194
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
195
|
+
}).describe("The workspace's release config used during the release process");
|
|
183
196
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
184
197
|
cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
185
198
|
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -203,6 +216,7 @@ var StormConfigSchema = z.object({
|
|
|
203
216
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
204
217
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
205
218
|
bot: WorkspaceBotConfigSchema,
|
|
219
|
+
release: WorkspaceReleaseConfigSchema,
|
|
206
220
|
mode: z.enum([
|
|
207
221
|
"development",
|
|
208
222
|
"staging",
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BBZUTQQO.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-RBERCPFK.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-VILSJXYM.js";
|
|
32
32
|
import {
|
|
33
33
|
correctPaths,
|
|
34
34
|
joinPaths
|
|
@@ -132,7 +132,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
132
132
|
const projectGraph = readCachedProjectGraph();
|
|
133
133
|
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
134
134
|
const localPackages = [];
|
|
135
|
-
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data
|
|
135
|
+
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot)) {
|
|
136
136
|
const projectNode = project.node;
|
|
137
137
|
if (projectNode.data.root) {
|
|
138
138
|
const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
|
|
@@ -317,6 +317,11 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
317
317
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
318
318
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
319
319
|
},
|
|
320
|
+
release: {
|
|
321
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
322
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
323
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
324
|
+
},
|
|
320
325
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
321
326
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
322
327
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
@@ -481,6 +486,11 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
481
486
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
482
487
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
483
488
|
}
|
|
489
|
+
if (config.release) {
|
|
490
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
491
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
492
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
493
|
+
}
|
|
484
494
|
if (config.organization) {
|
|
485
495
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
486
496
|
}
|
|
@@ -597,7 +607,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
597
607
|
}
|
|
598
608
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
599
609
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
600
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
610
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
611
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
612
|
+
}
|
|
601
613
|
}
|
|
602
614
|
}, "setConfigEnv");
|
|
603
615
|
var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
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 _chunk5OVF7G64cjs = require('./chunk-5OVF7G64.cjs');
|
|
5
|
+
require('./chunk-4DMUOH4Z.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 = _chunk5OVF7G64cjs.clean; exports.cleanDirectories = _chunk5OVF7G64cjs.cleanDirectories;
|
package/dist/clean.d.cts
CHANGED
|
@@ -27,6 +27,19 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
email?: string | undefined;
|
|
29
29
|
}>;
|
|
30
|
+
release: z.ZodObject<{
|
|
31
|
+
banner: z.ZodDefault<z.ZodString>;
|
|
32
|
+
header: z.ZodOptional<z.ZodString>;
|
|
33
|
+
footer: z.ZodDefault<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
banner: string;
|
|
36
|
+
footer: string;
|
|
37
|
+
header?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
banner?: string | undefined;
|
|
40
|
+
footer?: string | undefined;
|
|
41
|
+
header?: string | undefined;
|
|
42
|
+
}>;
|
|
30
43
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
31
44
|
workspaceRoot: z.ZodDefault<z.ZodString>;
|
|
32
45
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -808,6 +821,11 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
808
821
|
name: string;
|
|
809
822
|
email: string;
|
|
810
823
|
};
|
|
824
|
+
release: {
|
|
825
|
+
banner: string;
|
|
826
|
+
footer: string;
|
|
827
|
+
header?: string | undefined;
|
|
828
|
+
};
|
|
811
829
|
workspaceRoot: string;
|
|
812
830
|
externalPackagePatterns: string[];
|
|
813
831
|
skipCache: boolean;
|
|
@@ -990,6 +1008,11 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
990
1008
|
name?: string | undefined;
|
|
991
1009
|
email?: string | undefined;
|
|
992
1010
|
};
|
|
1011
|
+
release: {
|
|
1012
|
+
banner?: string | undefined;
|
|
1013
|
+
footer?: string | undefined;
|
|
1014
|
+
header?: string | undefined;
|
|
1015
|
+
};
|
|
993
1016
|
directories: {
|
|
994
1017
|
config?: string | undefined;
|
|
995
1018
|
cache?: string | undefined;
|
package/dist/clean.d.ts
CHANGED
|
@@ -27,6 +27,19 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
email?: string | undefined;
|
|
29
29
|
}>;
|
|
30
|
+
release: z.ZodObject<{
|
|
31
|
+
banner: z.ZodDefault<z.ZodString>;
|
|
32
|
+
header: z.ZodOptional<z.ZodString>;
|
|
33
|
+
footer: z.ZodDefault<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
banner: string;
|
|
36
|
+
footer: string;
|
|
37
|
+
header?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
banner?: string | undefined;
|
|
40
|
+
footer?: string | undefined;
|
|
41
|
+
header?: string | undefined;
|
|
42
|
+
}>;
|
|
30
43
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
31
44
|
workspaceRoot: z.ZodDefault<z.ZodString>;
|
|
32
45
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -808,6 +821,11 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
808
821
|
name: string;
|
|
809
822
|
email: string;
|
|
810
823
|
};
|
|
824
|
+
release: {
|
|
825
|
+
banner: string;
|
|
826
|
+
footer: string;
|
|
827
|
+
header?: string | undefined;
|
|
828
|
+
};
|
|
811
829
|
workspaceRoot: string;
|
|
812
830
|
externalPackagePatterns: string[];
|
|
813
831
|
skipCache: boolean;
|
|
@@ -990,6 +1008,11 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
990
1008
|
name?: string | undefined;
|
|
991
1009
|
email?: string | undefined;
|
|
992
1010
|
};
|
|
1011
|
+
release: {
|
|
1012
|
+
banner?: string | undefined;
|
|
1013
|
+
footer?: string | undefined;
|
|
1014
|
+
header?: string | undefined;
|
|
1015
|
+
};
|
|
993
1016
|
directories: {
|
|
994
1017
|
config?: string | undefined;
|
|
995
1018
|
cache?: string | undefined;
|
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 _chunkCWE2DVRLcjs = require('./chunk-CWE2DVRL.cjs');
|
|
5
5
|
require('./chunk-S6M44SSZ.cjs');
|
|
6
6
|
require('./chunk-WRBUO7H6.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-BLWAYYW3.cjs');
|
|
8
8
|
require('./chunk-SSEYS7LI.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-27CI4FOR.cjs');
|
|
10
|
+
require('./chunk-4DMUOH4Z.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 = _chunkCWE2DVRLcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkCWE2DVRLcjs.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-XKWAVCXW.js";
|
|
5
5
|
import "./chunk-T5272PC2.js";
|
|
6
6
|
import "./chunk-LYDEMC26.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BBZUTQQO.js";
|
|
8
8
|
import "./chunk-Q3LOGZKI.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RBERCPFK.js";
|
|
10
|
+
import "./chunk-VILSJXYM.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 _chunkJ7UVXBZRcjs = require('./chunk-J7UVXBZR.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5OVF7G64cjs = require('./chunk-5OVF7G64.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCWE2DVRLcjs = require('./chunk-CWE2DVRL.cjs');
|
|
19
19
|
require('./chunk-S6M44SSZ.cjs');
|
|
20
20
|
require('./chunk-WRBUO7H6.cjs');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-BLWAYYW3.cjs');
|
|
22
22
|
require('./chunk-SSEYS7LI.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-27CI4FOR.cjs');
|
|
24
24
|
require('./chunk-SFZRYJZ2.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-HGSRUTIH.cjs');
|
|
26
|
+
require('./chunk-4DMUOH4Z.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 = _chunkCWE2DVRLcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkJ7UVXBZRcjs.Filter; exports.Mapper = _chunkJ7UVXBZRcjs.Mapper; exports.build = _chunkJ7UVXBZRcjs.build; exports.clean = _chunk5OVF7G64cjs.clean; exports.cleanDirectories = _chunk5OVF7G64cjs.cleanDirectories; exports.cleanOutputPath = _chunkJ7UVXBZRcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkCWE2DVRLcjs.getDefaultBuildPlugins; exports.handle = _chunkJ7UVXBZRcjs.handle; exports.pipe = _chunkJ7UVXBZRcjs.pipe; exports.skip = _chunkJ7UVXBZRcjs.skip; exports.transduce = _chunkJ7UVXBZRcjs.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-K5P4LJKO.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MQOPCGJB.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XKWAVCXW.js";
|
|
19
19
|
import "./chunk-T5272PC2.js";
|
|
20
20
|
import "./chunk-LYDEMC26.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-BBZUTQQO.js";
|
|
22
22
|
import "./chunk-Q3LOGZKI.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-RBERCPFK.js";
|
|
24
24
|
import "./chunk-GGNOJ77I.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-KDIEZDDV.js";
|
|
26
|
+
import "./chunk-VILSJXYM.js";
|
|
27
27
|
import "./chunk-YMTDVMD6.js";
|
|
28
28
|
import "./chunk-YNQ45EAM.js";
|
|
29
29
|
import "./chunk-GWG4HOQ6.js";
|