@storm-software/workspace-tools 1.247.13 → 1.248.2
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 +27 -0
- package/README.md +1 -1
- package/config/base.json +29 -19
- package/dist/{chunk-KF7N7257.mjs → chunk-27EDH7NY.mjs} +1 -1
- package/dist/{chunk-WC2TNJLN.mjs → chunk-2KNHEXJQ.mjs} +2 -2
- package/dist/{chunk-YYGYJ6RD.js → chunk-3YC7YXGQ.js} +25 -25
- package/dist/{chunk-3OROMSFD.js → chunk-4AMZUCHL.js} +2 -2
- package/dist/{chunk-CJDYI6SP.js → chunk-4SJW3KRV.js} +2 -2
- package/dist/{chunk-KO35WWRE.mjs → chunk-57LRWY5U.mjs} +1 -1
- package/dist/{chunk-KHNJH7JQ.js → chunk-5O6RWCBQ.js} +2 -2
- package/dist/{chunk-QOUVCULF.mjs → chunk-7AXJ27FU.mjs} +1 -1
- package/dist/{chunk-QYC3WESC.mjs → chunk-7GW75RON.mjs} +1 -1
- package/dist/{chunk-IKU6KFBV.mjs → chunk-7H4PXXWW.mjs} +2 -2
- package/dist/{chunk-SI24L44V.mjs → chunk-APSDUSBR.mjs} +1 -1
- package/dist/{chunk-ZDHYVC5E.js → chunk-DCJXS5XI.js} +23 -23
- package/dist/{chunk-76D4P6YQ.js → chunk-FMOIAVZV.js} +31 -31
- package/dist/{chunk-XI7X3WOB.js → chunk-G7HTMCQK.js} +2 -2
- package/dist/{chunk-EDVXB4EP.js → chunk-JIQDXVMU.js} +22 -1
- package/dist/{chunk-V6H25SQW.mjs → chunk-JRGZWAZG.mjs} +1 -1
- package/dist/{chunk-Q3VF5VUQ.js → chunk-JXSTSZSG.js} +5 -5
- package/dist/{chunk-HGLKHBCY.js → chunk-K434EGC4.js} +2 -2
- package/dist/{chunk-OMDJO7Q6.js → chunk-KJPUYQEZ.js} +9 -9
- package/dist/{chunk-GDLIB6OQ.mjs → chunk-KM47X5XW.mjs} +2 -2
- package/dist/{chunk-G3UMUILK.mjs → chunk-N2P34ZQV.mjs} +10 -10
- package/dist/{chunk-VFASKAEJ.js → chunk-NXGJNB3C.js} +5 -5
- package/dist/{chunk-MNDO5WKT.mjs → chunk-OA6GD45B.mjs} +3 -4
- package/dist/{chunk-FZ7XOB5X.mjs → chunk-P4ZEGEQX.mjs} +1 -1
- package/dist/{chunk-BJK4LIZW.js → chunk-Q4YG53DV.js} +20 -20
- package/dist/{chunk-7DDXDUF3.mjs → chunk-Q6OBRMZG.mjs} +1 -1
- package/dist/{chunk-LV7XJZRR.mjs → chunk-QDZUYDVM.mjs} +22 -22
- package/dist/{chunk-HYTPWYZI.js → chunk-QKALACBC.js} +2 -2
- package/dist/{chunk-IDQTSO3Z.js → chunk-R2NBU264.js} +15 -15
- package/dist/{chunk-TKBY73FG.mjs → chunk-R63XBQKW.mjs} +25 -25
- package/dist/{chunk-WSYDQJ6Y.mjs → chunk-RSFH5OLL.mjs} +1 -1
- package/dist/{chunk-KCTEA3CC.mjs → chunk-S73S6XCY.mjs} +2 -2
- package/dist/{chunk-NNGBY52Z.js → chunk-SJNJ6TCD.js} +2 -2
- package/dist/{chunk-HLIO3W3D.mjs → chunk-TNAEFYVH.mjs} +1 -2
- package/dist/{chunk-NIO6FDIN.js → chunk-TSVTG657.js} +15 -15
- package/dist/{chunk-C773DCF3.mjs → chunk-UF3YMASN.mjs} +3 -3
- package/dist/{chunk-JQSRI7HM.js → chunk-WDK2FJUH.js} +2 -2
- package/dist/{chunk-GDHD4LIX.js → chunk-WGTIKGAE.js} +4 -4
- package/dist/{chunk-5JXVOE56.mjs → chunk-WK734NEX.mjs} +22 -1
- package/dist/{chunk-L7CTAQFR.js → chunk-WL7UV3YX.js} +41 -42
- package/dist/{chunk-K2JR6RSF.js → chunk-YDV7OQMN.js} +11 -12
- package/dist/{chunk-HIJLTEQJ.mjs → chunk-YILBFUCI.mjs} +1 -1
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +18 -18
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.js +22 -22
- package/dist/index.mjs +25 -25
- 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/dist/src/plugins/typescript/index.js +2 -2
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/project-config.js +2 -2
- package/dist/src/plugins/typescript/project-config.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.ts +20 -20
- package/package.json +4 -3
|
@@ -51,7 +51,28 @@ var createNodes = [
|
|
|
51
51
|
],
|
|
52
52
|
executor: "nx:run-commands",
|
|
53
53
|
options: {
|
|
54
|
-
command: 'pnpm exec ls-lint --config="@storm-software/linting-tools/ls-lint
|
|
54
|
+
command: 'pnpm exec ls-lint --config="@storm-software/linting-tools/ls-lint/config.yml" --workdir="{projectRoot}"',
|
|
55
|
+
color: true
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
if (!targets["lint-markdown"]) {
|
|
60
|
+
targets["lint-markdown"] = {
|
|
61
|
+
cache: true,
|
|
62
|
+
outputs: [
|
|
63
|
+
"{projectRoot}/**/*.md",
|
|
64
|
+
"{projectRoot}/**/*.mdx"
|
|
65
|
+
],
|
|
66
|
+
inputs: [
|
|
67
|
+
"{projectRoot}/**/*.md",
|
|
68
|
+
"{projectRoot}/**/*.mdx"
|
|
69
|
+
],
|
|
70
|
+
dependsOn: [
|
|
71
|
+
"^lint-markdown"
|
|
72
|
+
],
|
|
73
|
+
executor: "nx:run-commands",
|
|
74
|
+
options: {
|
|
75
|
+
command: 'pnpm exec markdownlint-cli2 "{projectRoot}/**/*.{md,mdx,markdown}" --config="./node_modules/@storm-software/linting-tools/ls-lint/config.yml" --workdir="{projectRoot}"',
|
|
55
76
|
color: true
|
|
56
77
|
}
|
|
57
78
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQ4YG53DVjs = require('./chunk-Q4YG53DV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3YC7YXGQjs = require('./chunk-3YC7YXGQ.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
|
+
_chunk3YC7YXGQjs.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
|
+
_chunk3YC7YXGQjs.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 = _chunkQ4YG53DVjs.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) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQ4YG53DVjs = require('./chunk-Q4YG53DV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkQ4YG53DVjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -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 _chunkTSVTG657js = require('./chunk-TSVTG657.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3YC7YXGQjs = require('./chunk-3YC7YXGQ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.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
|
+
_chunk3YC7YXGQjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
22
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunk3YC7YXGQjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunk3YC7YXGQjs.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
|
+
_chunk3YC7YXGQjs.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 = _chunkTSVTG657js.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R63XBQKW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot
|
|
7
7
|
} from "./chunk-C5YDISDP.mjs";
|
|
@@ -192,17 +192,17 @@ var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", source
|
|
|
192
192
|
entry = entry.replace(sourceRoot, "");
|
|
193
193
|
}
|
|
194
194
|
return {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
import: {
|
|
196
|
+
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
197
|
+
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
198
198
|
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
require: {
|
|
200
|
+
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
201
|
+
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
202
202
|
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
default: {
|
|
204
|
+
types: `./dist/${entry}.d.ts`,
|
|
205
|
+
default: `./dist/${entry}.js`
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
}, "addPackageJsonExport");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQ4YG53DVjs = require('./chunk-Q4YG53DV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3YC7YXGQjs = require('./chunk-3YC7YXGQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
18
18
|
if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
19
19
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
_chunk3YC7YXGQjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
22
22
|
_sizelimit2.default.call(void 0, [
|
|
23
23
|
_file2.default,
|
|
24
24
|
_esbuild2.default,
|
|
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
26
26
|
], {
|
|
27
27
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
|
|
28
28
|
}).then((result) => {
|
|
29
|
-
|
|
29
|
+
_chunk3YC7YXGQjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
32
|
success: true
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkQ4YG53DVjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
37
37
|
skipReadingConfig: false,
|
|
38
38
|
hooks: {
|
|
39
39
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getEntryPoints,
|
|
9
9
|
getEnv,
|
|
10
10
|
getOutExtension
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N2P34ZQV.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withRunExecutor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-27EDH7NY.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getConfig,
|
|
17
17
|
getStopwatch,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-R63XBQKW.mjs";
|
|
27
27
|
import {
|
|
28
28
|
joinPaths
|
|
29
29
|
} from "./chunk-KZJCDAOU.mjs";
|
|
@@ -421,7 +421,6 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
421
421
|
overrideTsconfig: {
|
|
422
422
|
compilerOptions: {
|
|
423
423
|
paths: {}
|
|
424
|
-
// bug with api extract + paths
|
|
425
424
|
}
|
|
426
425
|
}
|
|
427
426
|
},
|
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk3YC7YXGQjs = require('./chunk-3YC7YXGQ.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunk3YC7YXGQjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunk3YC7YXGQjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunk3YC7YXGQjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunk3YC7YXGQjs.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkYYGYJ6RDjs.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunk3YC7YXGQjs.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkYYGYJ6RDjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunk3YC7YXGQjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunk3YC7YXGQjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunk3YC7YXGQjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunk3YC7YXGQjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-EK75QNMS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JRGZWAZG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__dirname,
|
|
10
10
|
__name
|
|
@@ -64,14 +64,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
64
64
|
};
|
|
65
65
|
json.maintainers ??= [
|
|
66
66
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
name: "Storm Software",
|
|
68
|
+
email: "contact@stormsoftware.com",
|
|
69
|
+
url: "https://stormsoftware.com"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
name: "Pat Sullivan",
|
|
73
|
+
email: "admin@stormsoftware.com",
|
|
74
|
+
url: "https://patsullivan.org"
|
|
75
75
|
}
|
|
76
76
|
];
|
|
77
77
|
json.funding ??= {
|
|
@@ -87,12 +87,12 @@ async function presetGeneratorFn(tree, options) {
|
|
|
87
87
|
};
|
|
88
88
|
json.packageManager ??= "pnpm@9.15.2";
|
|
89
89
|
json.engines ??= {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
node: ">=20.11.0",
|
|
91
|
+
pnpm: ">=9.15.2"
|
|
92
92
|
};
|
|
93
93
|
json.prettier = "@storm-software/prettier/config.json";
|
|
94
94
|
json.nx ??= {
|
|
95
|
-
|
|
95
|
+
includedScripts: [
|
|
96
96
|
"lint-sherif",
|
|
97
97
|
"lint-knip",
|
|
98
98
|
"lint-ls",
|
|
@@ -186,22 +186,22 @@ async function presetGeneratorFn(tree, options) {
|
|
|
186
186
|
"@storm-software/prettier": "latest",
|
|
187
187
|
"@taplo/cli": "0.7.0",
|
|
188
188
|
"@types/node": "^20.14.10",
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
copyfiles: "2.4.1",
|
|
190
|
+
eslint: "9.5.0",
|
|
191
|
+
jest: "29.7.0",
|
|
192
192
|
"jest-environment-node": "29.7.0",
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
knip: "5.25.2",
|
|
194
|
+
lefthook: "1.6.18",
|
|
195
|
+
nx: "^20.2.2",
|
|
196
|
+
prettier: "3.3.2",
|
|
197
197
|
"prettier-plugin-prisma": "5.0.0",
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
rimraf: "5.0.7",
|
|
199
|
+
sherif: "0.10.0",
|
|
200
200
|
"ts-jest": "29.1.5",
|
|
201
201
|
"ts-node": "10.9.2",
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
tslib: "2.6.3",
|
|
203
|
+
typescript: "5.5.3",
|
|
204
|
+
verdaccio: "5.31.1"
|
|
205
205
|
};
|
|
206
206
|
if (options.includeApps) {
|
|
207
207
|
dependencies = {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTSVTG657js = require('./chunk-TSVTG657.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -73,7 +73,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
76
|
-
var generator_default =
|
|
76
|
+
var generator_default = _chunkTSVTG657js.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
77
77
|
hooks: {
|
|
78
78
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
79
79
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3YC7YXGQjs = require('./chunk-3YC7YXGQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -54,7 +54,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
54
54
|
output: "src/"
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
58
58
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
59
59
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
60
60
|
projectDir: projectRoot,
|
|
@@ -64,7 +64,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
64
64
|
});
|
|
65
65
|
await assetHandler.processAllAssetsOnce();
|
|
66
66
|
if (includeSrc === true) {
|
|
67
|
-
|
|
67
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
68
68
|
const files = await _glob.glob.call(void 0, [
|
|
69
69
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
70
70
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -103,7 +103,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
if (localPackages.length > 0) {
|
|
106
|
-
|
|
106
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
107
107
|
const projectJsonFile = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
108
108
|
const projectJson = JSON.parse(projectJsonFile);
|
|
109
109
|
const projectName2 = projectJson.name;
|
|
@@ -137,7 +137,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
137
137
|
return ret;
|
|
138
138
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
139
139
|
} else {
|
|
140
|
-
|
|
140
|
+
_chunk3YC7YXGQjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
141
141
|
}
|
|
142
142
|
return packageJson;
|
|
143
143
|
}, "addPackageDependencies");
|
|
@@ -192,17 +192,17 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
192
192
|
entry = entry.replace(sourceRoot, "");
|
|
193
193
|
}
|
|
194
194
|
return {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
import: {
|
|
196
|
+
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
197
|
+
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
198
198
|
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
require: {
|
|
200
|
+
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
201
|
+
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
202
202
|
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
default: {
|
|
204
|
+
types: `./dist/${entry}.d.ts`,
|
|
205
|
+
default: `./dist/${entry}.js`
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
}, "addPackageJsonExport");
|
|
@@ -233,7 +233,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
233
233
|
results.push(...files.reduce((ret, filePath) => {
|
|
234
234
|
const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
|
|
235
235
|
if (result) {
|
|
236
|
-
|
|
236
|
+
_chunk3YC7YXGQjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
237
237
|
if (!results.includes(result)) {
|
|
238
238
|
results.push(result);
|
|
239
239
|
}
|
|
@@ -96,7 +96,7 @@ var RegistryConfigSchema = z.object({
|
|
|
96
96
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
|
|
97
97
|
var ColorConfigMapSchema = z.union([
|
|
98
98
|
z.object({
|
|
99
|
-
|
|
99
|
+
base: ColorConfigSchema
|
|
100
100
|
}),
|
|
101
101
|
z.record(z.string(), ColorConfigSchema)
|
|
102
102
|
]);
|
|
@@ -212,31 +212,31 @@ import { existsSync } from "node:fs";
|
|
|
212
212
|
import { readFile } from "node:fs/promises";
|
|
213
213
|
import { join } from "node:path";
|
|
214
214
|
var DEFAULT_COLOR_CONFIG = {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
215
|
+
light: {
|
|
216
|
+
background: "#fafafa",
|
|
217
|
+
foreground: "#1d1e22",
|
|
218
|
+
brand: "#1fb2a6",
|
|
219
|
+
alternate: "#db2777",
|
|
220
|
+
help: "#5C4EE5",
|
|
221
|
+
success: "#087f5b",
|
|
222
|
+
info: "#0550ae",
|
|
223
|
+
warning: "#e3b341",
|
|
224
|
+
danger: "#D8314A",
|
|
225
|
+
positive: "#22c55e",
|
|
226
|
+
negative: "#dc2626"
|
|
227
227
|
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
228
|
+
dark: {
|
|
229
|
+
background: "#1d1e22",
|
|
230
|
+
foreground: "#cbd5e1",
|
|
231
|
+
brand: "#2dd4bf",
|
|
232
|
+
alternate: "#db2777",
|
|
233
|
+
help: "#818cf8",
|
|
234
|
+
success: "#10b981",
|
|
235
|
+
info: "#58a6ff",
|
|
236
|
+
warning: "#f3d371",
|
|
237
|
+
danger: "#D8314A",
|
|
238
|
+
positive: "#22c55e",
|
|
239
|
+
negative: "#dc2626"
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|