@storm-software/workspace-tools 1.235.3 → 1.237.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 +29 -0
- package/README.md +1 -1
- package/dist/{chunk-SGU5DQPK.js → chunk-376H4FPQ.js} +2 -2
- package/dist/{chunk-EFW3QYJ6.js → chunk-5H2MAX6J.js} +2 -2
- package/dist/{chunk-HGS743HN.js → chunk-6JJRTIJE.js} +2 -2
- package/dist/{chunk-DXI4NLLG.js → chunk-B56EPXXD.js} +31 -31
- package/dist/{chunk-R7LPJA7B.js → chunk-BEQ7SG6P.js} +2 -2
- package/dist/{chunk-RENOUPVD.mjs → chunk-BWUHOT6F.mjs} +15 -8
- package/dist/{chunk-Y6LAHFQL.js → chunk-CGDGEBZS.js} +2 -2
- package/dist/{chunk-WHFR5DFC.js → chunk-COE4MDQZ.js} +17 -17
- package/dist/{chunk-AAFUDPY3.js → chunk-CT2M6P5R.js} +11 -11
- package/dist/{chunk-MD3SSS3I.js → chunk-EF2AYADZ.js} +2 -2
- package/dist/{chunk-CZJW5H5T.mjs → chunk-FZI3TKFY.mjs} +4 -8
- package/dist/{chunk-ZW7MPYNT.js → chunk-G4RFND4J.js} +5 -5
- package/dist/{chunk-EGVA5PP4.mjs → chunk-GO4TPJGC.mjs} +1 -1
- package/dist/{chunk-JNBBP3XY.mjs → chunk-HFYUSCRU.mjs} +1 -1
- package/dist/{chunk-2EGD2QSN.js → chunk-IWCQL3AQ.js} +4 -8
- package/dist/{chunk-TRN4HIGQ.mjs → chunk-KD5LMZ2A.mjs} +2 -2
- package/dist/{chunk-5A2SMUAH.js → chunk-KM2743VP.js} +5 -5
- package/dist/{chunk-OQA7D4YP.mjs → chunk-KM2H5RYL.mjs} +1 -1
- package/dist/{chunk-AARL4ARR.mjs → chunk-LCGEM7Q4.mjs} +1 -1
- package/dist/{chunk-SCINGDII.js → chunk-M3X4P6AT.js} +15 -8
- package/dist/{chunk-SKHELRGB.mjs → chunk-MKWGJTCZ.mjs} +1 -1
- package/dist/{chunk-5ORRKBYL.js → chunk-MVFTFAFJ.js} +41 -41
- package/dist/{chunk-BVOY5ZPI.mjs → chunk-NOGV45XZ.mjs} +1 -1
- package/dist/{chunk-XWTEAECW.js → chunk-PJVQQPVY.js} +2 -2
- package/dist/{chunk-IOCGVIIK.mjs → chunk-Q3EM343U.mjs} +12 -16
- package/dist/{chunk-IYCUBLGZ.mjs → chunk-QDMY7CT5.mjs} +2 -2
- package/dist/{chunk-K5Q4B5PP.js → chunk-QIE4V5VC.js} +15 -15
- package/dist/{chunk-CR3474CZ.js → chunk-QJSB767L.js} +9 -9
- package/dist/{chunk-OVHQ2TQ4.mjs → chunk-QNPWZQ3H.mjs} +3 -3
- package/dist/{chunk-RF5FJZO3.mjs → chunk-RHYFYBYC.mjs} +1 -1
- package/dist/{chunk-VF3E6O7Z.js → chunk-SEZJIRER.js} +20 -24
- package/dist/{chunk-Y4VMFPV4.mjs → chunk-TUB644GP.mjs} +1 -1
- package/dist/{chunk-O5Z6RPC6.mjs → chunk-UTSK4MXW.mjs} +1 -1
- package/dist/{chunk-PQVWSBEG.js → chunk-V5JX4ONQ.js} +2 -2
- package/dist/{chunk-N7SOH3SO.mjs → chunk-VPZNFU57.mjs} +5 -2
- package/dist/{chunk-6CGXYDNY.mjs → chunk-VXCCFT5N.mjs} +1 -1
- package/dist/{chunk-CF5MRW36.mjs → chunk-WISLBMNQ.mjs} +3 -3
- package/dist/{chunk-DPZGOT3C.js → chunk-XOXDKSS6.js} +2 -2
- package/dist/{chunk-NSVH52UL.mjs → chunk-XYFHKZNM.mjs} +1 -1
- package/dist/{chunk-UXAZCLME.mjs → chunk-ZOE6ZUZK.mjs} +2 -2
- package/dist/{chunk-G4SRVNXB.mjs → chunk-ZQMYL7BB.mjs} +1 -1
- package/dist/{chunk-U3J3WWUI.js → chunk-ZSONE7KT.js} +7 -4
- package/dist/{executor-wWkM11v5.d.ts → executor-B4MiexNw.d.ts} +6 -10
- package/dist/{executor-sYaxQf5n.d.ts → executor-BqpvCbj5.d.ts} +0 -4
- package/dist/{executor-DlTSIchw.d.ts → executor-C8vSwRW1.d.ts} +0 -4
- package/dist/{executor-BSXWmnE3.d.mts → executor-CqbWU1uP.d.mts} +6 -10
- package/dist/{executor-C5AtaKvj.d.mts → executor-hq_H_ICT.d.mts} +0 -4
- package/dist/{executor-B8unq_QL.d.mts → executor-qCehbH9x.d.mts} +0 -4
- package/dist/executors.d.mts +3 -3
- package/dist/executors.d.ts +3 -3
- package/dist/executors.js +14 -14
- package/dist/executors.mjs +13 -13
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -22
- package/dist/index.mjs +21 -21
- 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 +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/base/typescript-build-executor.schema.d.ts +0 -4
- package/dist/src/base/typescript-build-executor.schema.json +4 -12
- package/dist/src/base/typescript-build-executor.schema.md +0 -4
- package/dist/src/base/typescript-build-executor.untyped.js +2 -2
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- 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.d.mts +1 -1
- package/dist/src/executors/esbuild/executor.d.ts +1 -1
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/esbuild/schema.d.ts +0 -4
- package/dist/src/executors/esbuild/schema.json +4 -12
- package/dist/src/executors/esbuild/schema.md +0 -4
- package/dist/src/executors/esbuild/untyped.js +2 -2
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- 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.d.mts +1 -1
- package/dist/src/executors/tsdown/executor.d.ts +1 -1
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/tsdown/schema.d.ts +0 -4
- package/dist/src/executors/tsdown/schema.json +4 -12
- package/dist/src/executors/tsdown/schema.md +0 -4
- package/dist/src/executors/tsdown/untyped.js +2 -2
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.d.mts +1 -1
- package/dist/src/executors/unbuild/executor.d.ts +1 -1
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- package/dist/src/executors/unbuild/schema.d.ts +6 -10
- package/dist/src/executors/unbuild/schema.json +17 -27
- package/dist/src/executors/unbuild/schema.md +4 -11
- package/dist/src/executors/unbuild/untyped.js +28 -16
- package/dist/src/executors/unbuild/untyped.mjs +27 -15
- 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/docs/api/base/typescript-build-executor.schema.md +0 -4
- package/docs/api/executors/esbuild/schema.md +0 -4
- package/docs/api/executors/tsdown/schema.md +0 -4
- package/docs/api/executors/unbuild/schema.md +4 -11
- package/package.json +5 -5
|
@@ -11,7 +11,7 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkM3X4P6ATjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
37
|
-
config = await
|
|
37
|
+
config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
45
45
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
46
46
|
const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunk5CPYNJT2js.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
54
54
|
}
|
|
55
55
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
56
56
|
if (result) {
|
|
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
66
|
-
|
|
66
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkM3X4P6ATjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkM3X4P6ATjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkM3X4P6ATjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
78
78
|
- Details: ${error.message}
|
|
79
79
|
- Stacktrace: ${error.stack}`, config);
|
|
80
80
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
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 _chunkQIE4V5VCjs = require('./chunk-QIE4V5VC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkM3X4P6ATjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkM3X4P6ATjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkQIE4V5VCjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getEntryPoints,
|
|
9
9
|
getEnv,
|
|
10
10
|
getOutExtension
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q3EM343U.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withRunExecutor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XYFHKZNM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getStopwatch,
|
|
17
17
|
isVerbose,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BWUHOT6F.mjs";
|
|
27
27
|
import {
|
|
28
28
|
joinPaths
|
|
29
29
|
} from "./chunk-PVTEDLBL.mjs";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -38,7 +38,7 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
38
38
|
var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
|
|
39
39
|
let rootDir = workspaceRoot;
|
|
40
40
|
if (!rootDir) {
|
|
41
|
-
const config = await
|
|
41
|
+
const config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, );
|
|
42
42
|
rootDir = config.workspaceRoot;
|
|
43
43
|
}
|
|
44
44
|
const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
@@ -52,27 +52,23 @@ var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (w
|
|
|
52
52
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
53
53
|
var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
|
|
54
54
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
pendingAssets.push({
|
|
56
|
+
input: projectRoot,
|
|
57
|
+
glob: "*.md",
|
|
58
|
+
output: "."
|
|
59
|
+
});
|
|
60
|
+
pendingAssets.push({
|
|
61
|
+
input: config.workspaceRoot,
|
|
62
|
+
glob: "LICENSE",
|
|
63
|
+
output: "."
|
|
64
|
+
});
|
|
62
65
|
if (generatePackageJson === false) {
|
|
63
66
|
pendingAssets.push({
|
|
64
|
-
input:
|
|
67
|
+
input: projectRoot,
|
|
65
68
|
glob: "package.json",
|
|
66
69
|
output: "."
|
|
67
70
|
});
|
|
68
71
|
}
|
|
69
|
-
if (!_optionalChain([pendingAssets, 'optionalAccess', _4 => _4.some, 'call', _5 => _5((asset) => _optionalChain([asset, 'optionalAccess', _6 => _6.glob]) === "LICENSE")])) {
|
|
70
|
-
pendingAssets.push({
|
|
71
|
-
input: "",
|
|
72
|
-
glob: "LICENSE",
|
|
73
|
-
output: "."
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
72
|
if (includeSrc === true) {
|
|
77
73
|
pendingAssets.push({
|
|
78
74
|
input: sourceRoot,
|
|
@@ -83,10 +79,10 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
83
79
|
const nxJson = readNxConfig(config.workspaceRoot);
|
|
84
80
|
const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
85
81
|
const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
86
|
-
if (!_optionalChain([projectsConfigurations, 'optionalAccess',
|
|
82
|
+
if (!_optionalChain([projectsConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
|
|
87
83
|
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.");
|
|
88
84
|
}
|
|
89
|
-
const buildTarget = _optionalChain([projectsConfigurations, 'access',
|
|
85
|
+
const buildTarget = _optionalChain([projectsConfigurations, 'access', _3 => _3.projects, 'access', _4 => _4[projectName], 'access', _5 => _5.targets, 'optionalAccess', _6 => _6.build]);
|
|
90
86
|
if (!buildTarget) {
|
|
91
87
|
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 ${_chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
|
|
92
88
|
}
|
|
@@ -103,13 +99,13 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
103
99
|
projectsConfigurations,
|
|
104
100
|
nxJsonConfiguration: nxJson,
|
|
105
101
|
cwd: config.workspaceRoot,
|
|
106
|
-
isVerbose:
|
|
102
|
+
isVerbose: _chunkM3X4P6ATjs.isVerbose.call(void 0, config.logLevel)
|
|
107
103
|
});
|
|
108
104
|
if (!result.success) {
|
|
109
105
|
throw new Error("The Build process failed trying to copy assets");
|
|
110
106
|
}
|
|
111
107
|
if (includeSrc === true) {
|
|
112
|
-
|
|
108
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
113
109
|
const files = await _glob.glob.call(void 0, [
|
|
114
110
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
115
111
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -147,7 +143,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
147
143
|
}
|
|
148
144
|
}
|
|
149
145
|
if (localPackages.length > 0) {
|
|
150
|
-
|
|
146
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
151
147
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
152
148
|
if (!ret[localPackage.name]) {
|
|
153
149
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -169,7 +165,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
169
165
|
return ret;
|
|
170
166
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
171
167
|
} else {
|
|
172
|
-
|
|
168
|
+
_chunkM3X4P6ATjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
173
169
|
}
|
|
174
170
|
return packageJson;
|
|
175
171
|
}, "addPackageDependencies");
|
|
@@ -265,7 +261,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
265
261
|
results.push(...files.reduce((ret, filePath) => {
|
|
266
262
|
const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
|
|
267
263
|
if (result) {
|
|
268
|
-
|
|
264
|
+
_chunkM3X4P6ATjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
269
265
|
if (!results.includes(result)) {
|
|
270
266
|
results.push(result);
|
|
271
267
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQIE4V5VCjs = require('./chunk-QIE4V5VC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -42,7 +42,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
45
|
-
var generator_default =
|
|
45
|
+
var generator_default = _chunkQIE4V5VCjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
46
46
|
hooks: {
|
|
47
47
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
48
48
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XYFHKZNM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BWUHOT6F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
9
|
} from "./chunk-PVTEDLBL.mjs";
|
|
@@ -67,6 +67,9 @@ var executor_default = withRunExecutor("TypeScript Unbuild build", unbuildExecut
|
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ __name(async (options, config) => {
|
|
70
|
+
options.debug ??= false;
|
|
71
|
+
options.treeShaking ??= true;
|
|
72
|
+
options.platform ??= "neutral";
|
|
70
73
|
options.entry ??= [
|
|
71
74
|
"{sourceRoot}"
|
|
72
75
|
];
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q3EM343U.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XYFHKZNM.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getStopwatch,
|
|
15
15
|
isVerbose,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BWUHOT6F.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
25
|
} from "./chunk-PVTEDLBL.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQIE4V5VCjs = require('./chunk-QIE4V5VC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -70,7 +70,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
72
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
73
|
-
var generator_default =
|
|
73
|
+
var generator_default = _chunkQIE4V5VCjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
74
74
|
hooks: {
|
|
75
75
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
76
76
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkCOE4MDQZjs = require('./chunk-COE4MDQZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
var _defu = require('defu');
|
|
16
16
|
var _jiti = require('jiti');
|
|
17
17
|
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
|
|
18
|
+
_chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
19
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
21
21
|
}
|
|
@@ -63,10 +63,13 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default =
|
|
66
|
+
var executor_default = _chunkCOE4MDQZjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
70
|
+
options.debug ??= false;
|
|
71
|
+
options.treeShaking ??= true;
|
|
72
|
+
options.platform ??= "neutral";
|
|
70
73
|
options.entry ??= [
|
|
71
74
|
"{sourceRoot}"
|
|
72
75
|
];
|
|
@@ -18,15 +18,15 @@ interface UnbuildExecutorSchema {
|
|
|
18
18
|
outputPath?: string,
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Input Directory
|
|
22
22
|
*
|
|
23
|
-
* The
|
|
23
|
+
* The directory to use as input for the build
|
|
24
24
|
*
|
|
25
|
-
* @default ["{sourceRoot}
|
|
25
|
+
* @default ["{sourceRoot}"]
|
|
26
26
|
*
|
|
27
27
|
* @format path
|
|
28
28
|
*/
|
|
29
|
-
entry
|
|
29
|
+
entry: Array<string>,
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* TSConfig Path
|
|
@@ -44,7 +44,6 @@ interface UnbuildExecutorSchema {
|
|
|
44
44
|
*
|
|
45
45
|
* Bundle the output
|
|
46
46
|
*
|
|
47
|
-
* @default false
|
|
48
47
|
*/
|
|
49
48
|
bundle?: boolean,
|
|
50
49
|
|
|
@@ -53,7 +52,6 @@ interface UnbuildExecutorSchema {
|
|
|
53
52
|
*
|
|
54
53
|
* Minify the output
|
|
55
54
|
*
|
|
56
|
-
* @default false
|
|
57
55
|
*/
|
|
58
56
|
minify?: boolean,
|
|
59
57
|
|
|
@@ -62,7 +60,6 @@ interface UnbuildExecutorSchema {
|
|
|
62
60
|
*
|
|
63
61
|
* Debug the output
|
|
64
62
|
*
|
|
65
|
-
* @default false
|
|
66
63
|
*/
|
|
67
64
|
debug?: boolean,
|
|
68
65
|
|
|
@@ -71,7 +68,6 @@ interface UnbuildExecutorSchema {
|
|
|
71
68
|
*
|
|
72
69
|
* Generate a sourcemap
|
|
73
70
|
*
|
|
74
|
-
* @default false
|
|
75
71
|
*/
|
|
76
72
|
sourcemap?: boolean,
|
|
77
73
|
|
|
@@ -146,7 +142,7 @@ interface UnbuildExecutorSchema {
|
|
|
146
142
|
*
|
|
147
143
|
* @default "{projectName}"
|
|
148
144
|
*/
|
|
149
|
-
name
|
|
145
|
+
name: string,
|
|
150
146
|
|
|
151
147
|
/**
|
|
152
148
|
* Tree Shaking
|
|
@@ -171,7 +167,7 @@ interface UnbuildExecutorSchema {
|
|
|
171
167
|
*
|
|
172
168
|
* Clean the output directory before building
|
|
173
169
|
*
|
|
174
|
-
* @default
|
|
170
|
+
* @default true
|
|
175
171
|
*/
|
|
176
172
|
clean?: boolean,
|
|
177
173
|
|
|
@@ -44,7 +44,6 @@ interface ESBuildExecutorSchema {
|
|
|
44
44
|
*
|
|
45
45
|
* Bundle the output
|
|
46
46
|
*
|
|
47
|
-
* @default false
|
|
48
47
|
*/
|
|
49
48
|
bundle?: boolean,
|
|
50
49
|
|
|
@@ -53,7 +52,6 @@ interface ESBuildExecutorSchema {
|
|
|
53
52
|
*
|
|
54
53
|
* Minify the output
|
|
55
54
|
*
|
|
56
|
-
* @default false
|
|
57
55
|
*/
|
|
58
56
|
minify?: boolean,
|
|
59
57
|
|
|
@@ -62,7 +60,6 @@ interface ESBuildExecutorSchema {
|
|
|
62
60
|
*
|
|
63
61
|
* Debug the output
|
|
64
62
|
*
|
|
65
|
-
* @default false
|
|
66
63
|
*/
|
|
67
64
|
debug?: boolean,
|
|
68
65
|
|
|
@@ -71,7 +68,6 @@ interface ESBuildExecutorSchema {
|
|
|
71
68
|
*
|
|
72
69
|
* Generate a sourcemap
|
|
73
70
|
*
|
|
74
|
-
* @default false
|
|
75
71
|
*/
|
|
76
72
|
sourcemap?: boolean,
|
|
77
73
|
|
|
@@ -44,7 +44,6 @@ interface TSDownExecutorSchema {
|
|
|
44
44
|
*
|
|
45
45
|
* Bundle the output
|
|
46
46
|
*
|
|
47
|
-
* @default false
|
|
48
47
|
*/
|
|
49
48
|
bundle?: boolean,
|
|
50
49
|
|
|
@@ -53,7 +52,6 @@ interface TSDownExecutorSchema {
|
|
|
53
52
|
*
|
|
54
53
|
* Minify the output
|
|
55
54
|
*
|
|
56
|
-
* @default false
|
|
57
55
|
*/
|
|
58
56
|
minify?: boolean,
|
|
59
57
|
|
|
@@ -62,7 +60,6 @@ interface TSDownExecutorSchema {
|
|
|
62
60
|
*
|
|
63
61
|
* Debug the output
|
|
64
62
|
*
|
|
65
|
-
* @default false
|
|
66
63
|
*/
|
|
67
64
|
debug?: boolean,
|
|
68
65
|
|
|
@@ -71,7 +68,6 @@ interface TSDownExecutorSchema {
|
|
|
71
68
|
*
|
|
72
69
|
* Generate a sourcemap
|
|
73
70
|
*
|
|
74
|
-
* @default false
|
|
75
71
|
*/
|
|
76
72
|
sourcemap?: boolean,
|
|
77
73
|
|
|
@@ -18,15 +18,15 @@ interface UnbuildExecutorSchema {
|
|
|
18
18
|
outputPath?: string,
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Input Directory
|
|
22
22
|
*
|
|
23
|
-
* The
|
|
23
|
+
* The directory to use as input for the build
|
|
24
24
|
*
|
|
25
|
-
* @default ["{sourceRoot}
|
|
25
|
+
* @default ["{sourceRoot}"]
|
|
26
26
|
*
|
|
27
27
|
* @format path
|
|
28
28
|
*/
|
|
29
|
-
entry
|
|
29
|
+
entry: Array<string>,
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* TSConfig Path
|
|
@@ -44,7 +44,6 @@ interface UnbuildExecutorSchema {
|
|
|
44
44
|
*
|
|
45
45
|
* Bundle the output
|
|
46
46
|
*
|
|
47
|
-
* @default false
|
|
48
47
|
*/
|
|
49
48
|
bundle?: boolean,
|
|
50
49
|
|
|
@@ -53,7 +52,6 @@ interface UnbuildExecutorSchema {
|
|
|
53
52
|
*
|
|
54
53
|
* Minify the output
|
|
55
54
|
*
|
|
56
|
-
* @default false
|
|
57
55
|
*/
|
|
58
56
|
minify?: boolean,
|
|
59
57
|
|
|
@@ -62,7 +60,6 @@ interface UnbuildExecutorSchema {
|
|
|
62
60
|
*
|
|
63
61
|
* Debug the output
|
|
64
62
|
*
|
|
65
|
-
* @default false
|
|
66
63
|
*/
|
|
67
64
|
debug?: boolean,
|
|
68
65
|
|
|
@@ -71,7 +68,6 @@ interface UnbuildExecutorSchema {
|
|
|
71
68
|
*
|
|
72
69
|
* Generate a sourcemap
|
|
73
70
|
*
|
|
74
|
-
* @default false
|
|
75
71
|
*/
|
|
76
72
|
sourcemap?: boolean,
|
|
77
73
|
|
|
@@ -146,7 +142,7 @@ interface UnbuildExecutorSchema {
|
|
|
146
142
|
*
|
|
147
143
|
* @default "{projectName}"
|
|
148
144
|
*/
|
|
149
|
-
name
|
|
145
|
+
name: string,
|
|
150
146
|
|
|
151
147
|
/**
|
|
152
148
|
* Tree Shaking
|
|
@@ -171,7 +167,7 @@ interface UnbuildExecutorSchema {
|
|
|
171
167
|
*
|
|
172
168
|
* Clean the output directory before building
|
|
173
169
|
*
|
|
174
|
-
* @default
|
|
170
|
+
* @default true
|
|
175
171
|
*/
|
|
176
172
|
clean?: boolean,
|
|
177
173
|
|