@storm-software/workspace-tools 1.259.7 → 1.261.0
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/{chunk-LF5JGT7K.mjs → chunk-3ABED6KX.mjs} +2 -2
- package/dist/{chunk-4OOSTFJU.mjs → chunk-3I74ESKM.mjs} +2 -2
- package/dist/{chunk-7OEZO3SD.mjs → chunk-3XR4FSEA.mjs} +1 -1
- package/dist/{chunk-MABHHD47.mjs → chunk-6YMGUA6X.mjs} +1 -1
- package/dist/{chunk-LUZNYXQ3.js → chunk-AXGI5QP4.js} +5 -5
- package/dist/{chunk-KXK2CT4Z.mjs → chunk-BGSGM2KX.mjs} +1 -1
- package/dist/{chunk-CAZGN7CV.mjs → chunk-BU6NXQWB.mjs} +3 -3
- package/dist/{chunk-IRX25R2M.mjs → chunk-BV32SZPV.mjs} +1 -1
- package/dist/{chunk-QAHYWB6S.js → chunk-D5NZC2JN.js} +11 -11
- package/dist/{chunk-D6MT5XD6.mjs → chunk-DGI7OQYG.mjs} +1 -1
- package/dist/{chunk-Z2DZKHBY.js → chunk-DW3VUP2K.js} +71 -53
- package/dist/{chunk-LZFVNTSD.js → chunk-FGMOZZ77.js} +20 -20
- package/dist/{chunk-5RCOCQH4.js → chunk-FIRVS3UN.js} +2 -2
- package/dist/{chunk-DRW6BTD6.mjs → chunk-G6GGPUG7.mjs} +1 -1
- package/dist/{chunk-DWHFHGLZ.js → chunk-GBXELUHE.js} +2 -2
- package/dist/{chunk-7E34S44R.mjs → chunk-GPOYI6OO.mjs} +1 -1
- package/dist/{chunk-EUFCKDUK.js → chunk-IC2TARGZ.js} +2 -2
- package/dist/{chunk-NQZZEUJZ.js → chunk-IOG5HLIB.js} +31 -31
- package/dist/{chunk-NRS4YAC2.mjs → chunk-IT3ENPW3.mjs} +2 -2
- package/dist/{chunk-I2FWSOY2.js → chunk-JJ4G5NGF.js} +2 -2
- package/dist/{chunk-HTCOBXF7.mjs → chunk-JK2Y76WF.mjs} +2 -25
- package/dist/{chunk-UH5YAUZF.js → chunk-K2LABESF.js} +2 -2
- package/dist/{chunk-IJO4MZSE.js → chunk-KFJJGDFT.js} +4 -4
- package/dist/{chunk-6U6B2B2X.mjs → chunk-L6CV744X.mjs} +1 -1
- package/dist/{chunk-HOH2SGCB.js → chunk-LSL5N332.js} +15 -15
- package/dist/{chunk-WZDSYTAY.js → chunk-N7NXGPZA.js} +2 -2
- package/dist/{chunk-MZDSQVPG.js → chunk-NG6GE2YZ.js} +1 -1
- package/dist/{chunk-X6FNQSU4.mjs → chunk-OBUTMEEY.mjs} +1 -1
- package/dist/{chunk-KHQPJPM5.js → chunk-OVWVVBMF.js} +2 -2
- package/dist/{chunk-B5E3XSP6.js → chunk-Q27N3MQO.js} +2 -2
- package/dist/{chunk-SOSUW3ZX.mjs → chunk-RGZAGFUD.mjs} +1 -1
- package/dist/{chunk-ZDR42VSF.mjs → chunk-SKPTEO43.mjs} +35 -17
- package/dist/{chunk-DCTPPMEP.mjs → chunk-STVTZJIX.mjs} +1 -1
- package/dist/{chunk-7BWXITD4.js → chunk-U6DCH53I.js} +2 -2
- package/dist/{chunk-KNWE2JQL.mjs → chunk-U6DRC3BT.mjs} +2 -2
- package/dist/{chunk-FAU7U3Q3.mjs → chunk-VOIYJ67D.mjs} +1 -1
- package/dist/{chunk-D56HKJCS.js → chunk-XGU4526M.js} +9 -9
- package/dist/{chunk-JOMMQ7S6.mjs → chunk-XIS3TY42.mjs} +1 -1
- package/dist/{chunk-6OSR2VYB.js → chunk-XKGMY2AY.js} +7 -30
- package/dist/{chunk-2TQXYRZ2.js → chunk-XM4IXZ6Y.js} +5 -5
- package/dist/executors.js +14 -14
- package/dist/executors.mjs +13 -13
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +10 -10
- package/dist/index.js +21 -21
- package/dist/index.mjs +22 -22
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.261.0 (2025-03-01)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Update the repository to use new `stormie-bot` user name and email ([316385be6](https://github.com/storm-software/storm-ops/commit/316385be6))
|
|
6
|
+
|
|
7
|
+
## 1.260.0 (2025-02-26)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **prettier:** Added `prisma` configuration ([7c4716322](https://github.com/storm-software/storm-ops/commit/7c4716322))
|
|
12
|
+
|
|
1
13
|
## 1.259.7 (2025-02-26)
|
|
2
14
|
|
|
3
15
|
### Miscellaneous
|
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 -->
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DGI7OQYG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
StormConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L6CV744X.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-2PKZRCQJ.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkFGMOZZ77js = require('./chunk-FGMOZZ77.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNG6GE2YZjs = require('./chunk-NG6GE2YZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkNG6GE2YZjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkNG6GE2YZjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkFGMOZZ77js.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JK2Y76WF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VOIYJ67D.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getConfig,
|
|
15
15
|
getStopwatch,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-L6CV744X.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
25
|
} from "./chunk-HASYGI6W.mjs";
|
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkNG6GE2YZjs = require('./chunk-NG6GE2YZ.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
248
248
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
249
249
|
var _semver3 = require('semver');
|
|
250
250
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
251
|
-
|
|
251
|
+
_chunkNG6GE2YZjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
256
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
257
|
-
|
|
257
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
260
|
-
|
|
259
|
+
config = await _chunkNG6GE2YZjs.getConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunkNG6GE2YZjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|
|
263
263
|
if (options.specifier) {
|
|
@@ -308,9 +308,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
308
308
|
}
|
|
309
309
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
310
310
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
311
|
-
|
|
311
|
+
_chunkNG6GE2YZjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
312
312
|
}, "log");
|
|
313
|
-
|
|
313
|
+
_chunkNG6GE2YZjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
314
314
|
let packageName;
|
|
315
315
|
let currentVersionFromDisk;
|
|
316
316
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -584,7 +584,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
await _devkit.formatFiles.call(void 0, tree);
|
|
587
|
-
|
|
587
|
+
_chunkNG6GE2YZjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
588
588
|
`, config);
|
|
589
589
|
return {
|
|
590
590
|
data: versionData,
|
|
@@ -618,8 +618,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
618
618
|
}, "callback")
|
|
619
619
|
};
|
|
620
620
|
} catch (error) {
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
_chunkNG6GE2YZjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
622
|
+
_chunkNG6GE2YZjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
623
623
|
- Details: ${error.message}
|
|
624
624
|
- Stacktrace: ${error.stack}`, config);
|
|
625
625
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
var _chunkXKGMY2AYjs = require('./chunk-XKGMY2AY.js');
|
|
10
11
|
|
|
11
|
-
var _chunk6OSR2VYBjs = require('./chunk-6OSR2VYB.js');
|
|
12
12
|
|
|
13
|
+
var _chunkFGMOZZ77js = require('./chunk-FGMOZZ77.js');
|
|
13
14
|
|
|
14
|
-
var _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,8 +22,7 @@ var _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
var _chunkMZDSQVPGjs = require('./chunk-MZDSQVPG.js');
|
|
25
|
+
var _chunkNG6GE2YZjs = require('./chunk-NG6GE2YZ.js');
|
|
27
26
|
|
|
28
27
|
|
|
29
28
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -331,7 +330,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
331
330
|
setup(build4) {
|
|
332
331
|
build4.onEnd((result) => {
|
|
333
332
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
334
|
-
|
|
333
|
+
_chunkNG6GE2YZjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
335
334
|
${result.errors.map((error) => error.text).join("\n")}
|
|
336
335
|
|
|
337
336
|
`, resolvedOptions.config);
|
|
@@ -420,6 +419,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
420
419
|
overrideTsconfig: {
|
|
421
420
|
compilerOptions: {
|
|
422
421
|
paths: {}
|
|
422
|
+
// bug with api extract + paths
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
},
|
|
@@ -439,7 +439,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
439
439
|
localBuild: true
|
|
440
440
|
});
|
|
441
441
|
if (extractorResult.succeeded === false) {
|
|
442
|
-
|
|
442
|
+
_chunkNG6GE2YZjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
443
443
|
throw new Error("API Extractor completed with errors");
|
|
444
444
|
}
|
|
445
445
|
}
|
|
@@ -465,7 +465,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
465
465
|
} else if (_fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
466
466
|
dtsPath = _chunkJTAXCQX6js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
467
467
|
}
|
|
468
|
-
const ext = resolvedOptions.
|
|
468
|
+
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
469
469
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
470
470
|
bundleTypeDefinitions(dtsPath, bundlePath, _nullishCoalesce(resolvedOptions.external, () => ( [])), resolvedOptions);
|
|
471
471
|
const dtsContents = await _promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
@@ -487,9 +487,6 @@ function getTypeDependencyPackageName(npmPackage) {
|
|
|
487
487
|
_chunk3GQAWCBQjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDependencyPackageName");
|
|
488
488
|
|
|
489
489
|
// ../esbuild/src/config.ts
|
|
490
|
-
var getOutputExtensionMap = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, pkgType) => {
|
|
491
|
-
return options.outExtension ? options.outExtension(options.format, pkgType) : _chunk6OSR2VYBjs.getOutExtension.call(void 0, options.format, pkgType);
|
|
492
|
-
}, "getOutputExtensionMap");
|
|
493
490
|
var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
494
491
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
495
492
|
resolvePathsPlugin(options, resolvedOptions),
|
|
@@ -536,7 +533,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
536
533
|
".woff": "file",
|
|
537
534
|
".woff2": "file"
|
|
538
535
|
},
|
|
539
|
-
banner:
|
|
536
|
+
banner: _chunkXKGMY2AYjs.DEFAULT_COMPILED_BANNER
|
|
540
537
|
};
|
|
541
538
|
|
|
542
539
|
// ../esbuild/src/plugins/deps-check.ts
|
|
@@ -618,8 +615,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
618
615
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
619
616
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
620
617
|
});
|
|
621
|
-
|
|
622
|
-
|
|
618
|
+
_chunkNG6GE2YZjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
619
|
+
_chunkNG6GE2YZjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
623
620
|
if (filteredMissingDeps.length > 0) {
|
|
624
621
|
throw new Error(`Missing dependencies detected - please install them:
|
|
625
622
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -713,9 +710,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
713
710
|
if (!workspaceRoot) {
|
|
714
711
|
throw new Error("Cannot find Nx workspace root");
|
|
715
712
|
}
|
|
716
|
-
const config = await
|
|
717
|
-
|
|
718
|
-
const stopwatch =
|
|
713
|
+
const config = await _chunkNG6GE2YZjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
714
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
715
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "Build options resolution");
|
|
719
716
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
720
717
|
exitOnError: true
|
|
721
718
|
});
|
|
@@ -732,15 +729,12 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
732
729
|
}
|
|
733
730
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
734
731
|
options.name ??= `${projectName}-${options.format}`;
|
|
735
|
-
options.target ??=
|
|
732
|
+
options.target ??= _chunkXKGMY2AYjs.DEFAULT_TARGET;
|
|
736
733
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
737
734
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
738
735
|
throw new Error("Cannot find package.json configuration");
|
|
739
736
|
}
|
|
740
|
-
const
|
|
741
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
742
|
-
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
743
|
-
const env = _chunk6OSR2VYBjs.getEnv.call(void 0, "esbuild", options);
|
|
737
|
+
const env = _chunkXKGMY2AYjs.getEnv.call(void 0, "esbuild", options);
|
|
744
738
|
const result = {
|
|
745
739
|
...options,
|
|
746
740
|
config,
|
|
@@ -760,7 +754,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
760
754
|
...userOptions,
|
|
761
755
|
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
762
756
|
format: options.format || "cjs",
|
|
763
|
-
entryPoints: await
|
|
757
|
+
entryPoints: await _chunkXKGMY2AYjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
764
758
|
"./src/index.ts"
|
|
765
759
|
], userOptions.emitOnAll),
|
|
766
760
|
outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -771,7 +765,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
771
765
|
projectGraph,
|
|
772
766
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
773
767
|
minify: userOptions.minify || !userOptions.debug,
|
|
774
|
-
verbose: userOptions.verbose ||
|
|
768
|
+
verbose: userOptions.verbose || _chunkNG6GE2YZjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
775
769
|
includeSrc: userOptions.includeSrc === true,
|
|
776
770
|
metafile: userOptions.metafile !== false,
|
|
777
771
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -782,11 +776,10 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
782
776
|
bundle: userOptions.bundle !== false,
|
|
783
777
|
keepNames: true,
|
|
784
778
|
watch: userOptions.watch === true,
|
|
785
|
-
outExtension,
|
|
786
779
|
footer: userOptions.footer,
|
|
787
780
|
banner: {
|
|
788
|
-
js: options.banner ||
|
|
789
|
-
css: options.banner ||
|
|
781
|
+
js: options.banner || _chunkXKGMY2AYjs.DEFAULT_COMPILED_BANNER,
|
|
782
|
+
css: options.banner || _chunkXKGMY2AYjs.DEFAULT_COMPILED_BANNER
|
|
790
783
|
},
|
|
791
784
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
792
785
|
treeShaking: options.format === "esm",
|
|
@@ -799,10 +792,11 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
799
792
|
...options.define,
|
|
800
793
|
...Object.keys(env || {}).reduce((res, key) => {
|
|
801
794
|
const value = JSON.stringify(env[key]);
|
|
795
|
+
const safeKey = key.replaceAll("(", "").replaceAll(")", "");
|
|
802
796
|
return {
|
|
803
797
|
...res,
|
|
804
|
-
[`process.env.${
|
|
805
|
-
[`import.meta.env.${
|
|
798
|
+
[`process.env.${safeKey}`]: value,
|
|
799
|
+
[`import.meta.env.${safeKey}`]: value
|
|
806
800
|
};
|
|
807
801
|
}, {})
|
|
808
802
|
},
|
|
@@ -813,13 +807,15 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
813
807
|
].filter(Boolean)
|
|
814
808
|
};
|
|
815
809
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
810
|
+
delete result.entry;
|
|
811
|
+
delete result.outputPath;
|
|
816
812
|
stopwatch();
|
|
817
813
|
return result;
|
|
818
814
|
}, "resolveOptions");
|
|
819
815
|
async function generatePackageJson(context2) {
|
|
820
816
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
821
|
-
|
|
822
|
-
const stopwatch =
|
|
817
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
818
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "Write package.json file");
|
|
823
819
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
824
820
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
825
821
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -829,11 +825,11 @@ async function generatePackageJson(context2) {
|
|
|
829
825
|
if (!packageJson) {
|
|
830
826
|
throw new Error("Cannot find package.json configuration file");
|
|
831
827
|
}
|
|
832
|
-
packageJson = await
|
|
833
|
-
packageJson = await
|
|
828
|
+
packageJson = await _chunkXKGMY2AYjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
829
|
+
packageJson = await _chunkXKGMY2AYjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
834
830
|
packageJson.exports ??= {};
|
|
835
831
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
836
|
-
packageJson.exports["."] ??=
|
|
832
|
+
packageJson.exports["."] ??= _chunkXKGMY2AYjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
837
833
|
let entryPoints = [
|
|
838
834
|
{
|
|
839
835
|
in: "./src/index.ts",
|
|
@@ -851,7 +847,7 @@ async function generatePackageJson(context2) {
|
|
|
851
847
|
const split = entryPoint.out.split(".");
|
|
852
848
|
split.pop();
|
|
853
849
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
854
|
-
packageJson.exports[`./${entry}`] ??=
|
|
850
|
+
packageJson.exports[`./${entry}`] ??= _chunkXKGMY2AYjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
855
851
|
}
|
|
856
852
|
}
|
|
857
853
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -889,13 +885,35 @@ async function generateContext(getOptions) {
|
|
|
889
885
|
}
|
|
890
886
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
891
887
|
async function executeEsBuild(context2) {
|
|
892
|
-
|
|
893
|
-
const stopwatch =
|
|
894
|
-
if (process.env.
|
|
888
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
889
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
890
|
+
if (process.env.STORM_WATCH) {
|
|
895
891
|
const ctx = await esbuild2.context(context2.options);
|
|
896
892
|
watch(ctx, context2.options);
|
|
897
893
|
}
|
|
898
|
-
const
|
|
894
|
+
const options = {
|
|
895
|
+
...context2.options
|
|
896
|
+
};
|
|
897
|
+
delete options.env;
|
|
898
|
+
delete options.name;
|
|
899
|
+
delete options.assets;
|
|
900
|
+
delete options.mode;
|
|
901
|
+
delete options.orgName;
|
|
902
|
+
delete options.watch;
|
|
903
|
+
delete options.clean;
|
|
904
|
+
delete options.debug;
|
|
905
|
+
delete options.generatePackageJson;
|
|
906
|
+
delete options.emitOnAll;
|
|
907
|
+
delete options.includeSrc;
|
|
908
|
+
delete options.verbose;
|
|
909
|
+
delete options.projectRoot;
|
|
910
|
+
delete options.projectName;
|
|
911
|
+
delete options.projectGraph;
|
|
912
|
+
delete options.projectConfigurations;
|
|
913
|
+
delete options.renderers;
|
|
914
|
+
delete options.config;
|
|
915
|
+
delete options.injectShims;
|
|
916
|
+
const result = await esbuild2.build(options);
|
|
899
917
|
if (result.metafile) {
|
|
900
918
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
901
919
|
await _promises2.default.writeFile(metafilePath, JSON.stringify(result.metafile));
|
|
@@ -906,9 +924,9 @@ async function executeEsBuild(context2) {
|
|
|
906
924
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
907
925
|
async function copyBuildAssets(context2) {
|
|
908
926
|
if (_optionalChain([context2, 'access', _26 => _26.result, 'optionalAccess', _27 => _27.errors, 'access', _28 => _28.length]) === 0) {
|
|
909
|
-
|
|
910
|
-
const stopwatch =
|
|
911
|
-
await
|
|
927
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
928
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
929
|
+
await _chunkXKGMY2AYjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
912
930
|
stopwatch();
|
|
913
931
|
}
|
|
914
932
|
return context2;
|
|
@@ -917,9 +935,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
917
935
|
async function reportResults(context2) {
|
|
918
936
|
if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
|
|
919
937
|
if (context2.result.warnings.length > 0) {
|
|
920
|
-
|
|
938
|
+
_chunkNG6GE2YZjs.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);
|
|
921
939
|
}
|
|
922
|
-
|
|
940
|
+
_chunkNG6GE2YZjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
923
941
|
}
|
|
924
942
|
}
|
|
925
943
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -955,8 +973,8 @@ async function dependencyCheck(options) {
|
|
|
955
973
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
956
974
|
async function cleanOutputPath(context2) {
|
|
957
975
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
958
|
-
|
|
959
|
-
const stopwatch =
|
|
976
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
977
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
960
978
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
961
979
|
stopwatch();
|
|
962
980
|
}
|
|
@@ -964,8 +982,8 @@ async function cleanOutputPath(context2) {
|
|
|
964
982
|
}
|
|
965
983
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
966
984
|
async function build3(options) {
|
|
967
|
-
|
|
968
|
-
const stopwatch =
|
|
985
|
+
_chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
986
|
+
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
969
987
|
try {
|
|
970
988
|
const opts = Array.isArray(options) ? options : [
|
|
971
989
|
options
|
|
@@ -975,9 +993,9 @@ async function build3(options) {
|
|
|
975
993
|
}
|
|
976
994
|
void transduce.async(opts, dependencyCheck);
|
|
977
995
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
978
|
-
|
|
996
|
+
_chunkNG6GE2YZjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
979
997
|
} catch (error) {
|
|
980
|
-
|
|
998
|
+
_chunkNG6GE2YZjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
981
999
|
throw error;
|
|
982
1000
|
} finally {
|
|
983
1001
|
stopwatch();
|
|
@@ -1005,9 +1023,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1005
1023
|
return context2.rebuild();
|
|
1006
1024
|
});
|
|
1007
1025
|
if (rebuildResult instanceof Error) {
|
|
1008
|
-
|
|
1026
|
+
_chunkNG6GE2YZjs.writeError.call(void 0, rebuildResult.message);
|
|
1009
1027
|
}
|
|
1010
|
-
|
|
1028
|
+
_chunkNG6GE2YZjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1011
1029
|
}, 10);
|
|
1012
1030
|
changeWatcher.on("change", fastRebuild);
|
|
1013
1031
|
return void 0;
|
|
@@ -1015,7 +1033,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1015
1033
|
|
|
1016
1034
|
// src/executors/esbuild/executor.ts
|
|
1017
1035
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1018
|
-
|
|
1036
|
+
_chunkNG6GE2YZjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1019
1037
|
if (!_optionalChain([context2, 'access', _32 => _32.projectsConfigurations, 'optionalAccess', _33 => _33.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _34 => _34.projectsConfigurations, 'access', _35 => _35.projects, 'access', _36 => _36[context2.projectName], 'optionalAccess', _37 => _37.root])) {
|
|
1020
1038
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1021
1039
|
}
|
|
@@ -1032,7 +1050,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1032
1050
|
};
|
|
1033
1051
|
}
|
|
1034
1052
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1035
|
-
var executor_default =
|
|
1053
|
+
var executor_default = _chunkFGMOZZ77js.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1036
1054
|
skipReadingConfig: false,
|
|
1037
1055
|
hooks: {
|
|
1038
1056
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|