@storm-software/workspace-tools 1.295.38 → 1.295.40
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 +36 -0
- package/README.md +1 -1
- package/dist/{chunk-6IGFKTLC.mjs → chunk-2SRFINBN.mjs} +3 -3
- package/dist/{chunk-HLJV76Q6.js → chunk-3FOANXJ3.js} +2 -2
- package/dist/{chunk-PD5ORQVB.mjs → chunk-3QMAYTDQ.mjs} +1 -1
- package/dist/{chunk-X3H2BDXF.js → chunk-4655YIJB.js} +2 -2
- package/dist/{chunk-ZD6DM7FE.js → chunk-4RQ25E7U.js} +3 -3
- package/dist/{chunk-H3UVCO5H.js → chunk-4SXDS4FJ.js} +2 -2
- package/dist/{chunk-LVO5FIAQ.js → chunk-4XHYIQO7.js} +2 -2
- package/dist/{chunk-QFYTQVZW.js → chunk-5CXVHLF5.js} +5 -5
- package/dist/{chunk-KA2XXVE2.mjs → chunk-5TCJK3GK.mjs} +1 -1
- package/dist/{chunk-6QXKMVZ5.js → chunk-7RPZKHP6.js} +2 -2
- package/dist/{chunk-EWPWDNCS.js → chunk-BDRN6CQL.js} +2 -2
- package/dist/{chunk-4QQPF76Q.mjs → chunk-DDPGLLQ7.mjs} +1 -1
- package/dist/{chunk-TSYVLUOX.mjs → chunk-DFGBGHDP.mjs} +1 -1
- package/dist/{chunk-5X2PH2OF.js → chunk-DQQAO3XH.js} +2 -2
- package/dist/{chunk-QNI2ESWG.js → chunk-DQWLUIY3.js} +4 -4
- package/dist/{chunk-FVYP6LDM.js → chunk-EM5QCZFN.js} +2 -2
- package/dist/chunk-FJJD4XQQ.js +41 -0
- package/dist/{chunk-7OQWJH4B.js → chunk-FR2SIPZV.js} +2 -2
- package/dist/{chunk-KWUBBSMZ.mjs → chunk-FYWTWKA5.mjs} +3 -3
- package/dist/{chunk-BSW6NZVB.js → chunk-FZIOJYJG.js} +7 -3
- package/dist/{chunk-PJFBYR5E.mjs → chunk-GVNAKGP4.mjs} +3 -3
- package/dist/{chunk-NVSIB4RD.mjs → chunk-GVUEO74Y.mjs} +1 -1
- package/dist/{chunk-X3GOJE27.mjs → chunk-GWY4CMIG.mjs} +1 -1
- package/dist/{chunk-BNLCY2F7.js → chunk-H27YUTCQ.js} +2 -2
- package/dist/{chunk-XD7QQFE4.js → chunk-H4MADHCO.js} +3 -3
- package/dist/{chunk-3VE7KAOB.js → chunk-HNWDW45Q.js} +2 -2
- package/dist/{chunk-DPMQFXQ4.mjs → chunk-IESO3CZY.mjs} +2 -2
- package/dist/{chunk-Y7WHHDJ7.mjs → chunk-IJE7E6KQ.mjs} +2 -2
- package/dist/{chunk-GMNLTR7G.mjs → chunk-IZQRM22E.mjs} +1 -1
- package/dist/{chunk-3YDFOWNH.mjs → chunk-J7T3ACE5.mjs} +1 -1
- package/dist/{chunk-RIAPIVKD.mjs → chunk-KY47WMSJ.mjs} +2 -2
- package/dist/chunk-LWYN4MTV.js +79 -0
- package/dist/chunk-MCQCIP4X.mjs +548 -0
- package/dist/{chunk-72WJVP2V.js → chunk-MNYABCZT.js} +2 -2
- package/dist/chunk-MX7HEDMX.js +32 -0
- package/dist/chunk-NDI6RXCZ.mjs +31 -0
- package/dist/chunk-NNQPSEZU.js +31 -0
- package/dist/chunk-NQHO4D7T.js +250 -0
- package/dist/chunk-OEKXZFSR.js +32 -0
- package/dist/chunk-OTKWSGS5.mjs +32 -0
- package/dist/chunk-OZQ7BMMQ.js +93 -0
- package/dist/chunk-P5KUQQTV.mjs +93 -0
- package/dist/{chunk-S52UDUO4.js → chunk-PSVEAG4P.js} +4 -4
- package/dist/{chunk-W2JX32OR.mjs → chunk-QASHFMCT.mjs} +2 -2
- package/dist/{chunk-EYZGKQNH.mjs → chunk-QOQ7ZZDR.mjs} +1 -1
- package/dist/{chunk-LODTJTUA.mjs → chunk-QWOCJPHV.mjs} +4 -4
- package/dist/chunk-QYWP6FSH.js +548 -0
- package/dist/{chunk-6PC3WG46.mjs → chunk-R77GVEUP.mjs} +2 -2
- package/dist/{chunk-WCTC7R27.js → chunk-RO2CCHL3.js} +2 -2
- package/dist/chunk-RVMTVA24.mjs +253 -0
- package/dist/chunk-SGNQWNB4.js +116 -0
- package/dist/{chunk-C76K2E2A.mjs → chunk-SYPFDT7A.mjs} +1 -1
- package/dist/{chunk-UU2B4W6D.mjs → chunk-T4LHCUDB.mjs} +1 -1
- package/dist/chunk-T7O5BE2A.mjs +32 -0
- package/dist/chunk-TZNLWWZK.mjs +82 -0
- package/dist/{chunk-NETMT7M3.js → chunk-UE3WG442.js} +2 -2
- package/dist/chunk-UTIKWDU3.mjs +41 -0
- package/dist/{chunk-ZFYR7Z5E.js → chunk-VOWQOVZ3.js} +2 -2
- package/dist/{chunk-4LJ7D77P.mjs → chunk-VUY3SWMS.mjs} +1 -1
- package/dist/chunk-W3TSJZJF.mjs +32 -0
- package/dist/{chunk-4BZUW64X.js → chunk-WLCY3GMY.js} +3 -3
- package/dist/{chunk-4PKTZSV2.mjs → chunk-WZISHZ4U.mjs} +7 -3
- package/dist/chunk-YB2XCW3R.mjs +116 -0
- package/dist/{chunk-TYMF6PWQ.mjs → chunk-YKMCV4IP.mjs} +2 -2
- package/dist/chunk-ZFKZAH3C.js +32 -0
- package/dist/{executor-CPixmweQ.d.mts → executor-BP0WQayE.d.mts} +1 -1
- package/dist/{executor-CDGPvh7M.d.ts → executor-BxzAij2P.d.ts} +1 -1
- package/dist/{executor-DS3NuU-H.d.mts → executor-CMMIFtHz.d.mts} +1 -1
- package/dist/{executor-gzorpk3w.d.mts → executor-CPh7sG83.d.mts} +1 -1
- package/dist/{executor-B0av8HZu.d.ts → executor-CmCCRVN7.d.ts} +1 -1
- package/dist/{executor-BUZaZf4L.d.mts → executor-D26OSbP_.d.mts} +1 -1
- package/dist/{executor-B3NNjEHX.d.mts → executor-DJOXX8-N.d.mts} +1 -1
- package/dist/{executor-Da4zH7TH.d.ts → executor-DTPyQsLB.d.ts} +1 -1
- package/dist/{executor-B1xWwrK9.d.ts → executor-DcKEmf82.d.ts} +1 -1
- package/dist/{executor-Cn8wHwLF.d.mts → executor-DvfMQSTP.d.mts} +1 -1
- package/dist/{executor-DeDNVV5p.d.ts → executor-Dz1kPE9g.d.ts} +1 -1
- package/dist/{executor-BLdXObMY.d.ts → executor-YAjz4bej.d.ts} +1 -1
- package/dist/executors.d.mts +8 -8
- package/dist/executors.d.ts +8 -8
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +15 -15
- package/dist/{generator-CZtbcY0l.d.ts → generator-BHf3cV2L.d.ts} +2 -2
- package/dist/{generator-CkTQIi20.d.ts → generator-BSK2irs0.d.ts} +2 -2
- package/dist/{generator-BHQa9sdJ.d.ts → generator-BcrbAQyn.d.ts} +1 -1
- package/dist/{generator-BqX2wgSA.d.mts → generator-D1-cBHEx.d.mts} +2 -2
- package/dist/{generator-BAaf2S3V.d.ts → generator-D1jsduRj.d.ts} +2 -2
- package/dist/{generator-CYvPtstL.d.ts → generator-DFDWQaw0.d.ts} +2 -2
- package/dist/{generator-TF8IeIxY.d.mts → generator-QOzHCB0F.d.mts} +2 -2
- package/dist/{generator-DVWBXLIK.d.mts → generator-WHlahz54.d.mts} +2 -2
- package/dist/{generator-D1R6-G54.d.mts → generator-lroVtFPt.d.mts} +1 -1
- package/dist/{generator-CBJOMnRt.d.mts → generator-r7Ic4lCt.d.mts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +8 -8
- package/dist/generators.mjs +8 -8
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +23 -23
- package/dist/index.mjs +23 -23
- package/dist/src/base/base-executor.d.mts +3 -3
- package/dist/src/base/base-executor.d.ts +3 -3
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.d.mts +3 -3
- package/dist/src/base/base-generator.d.ts +3 -3
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.d.mts +3 -3
- package/dist/src/base/index.d.ts +3 -3
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.d.mts +2 -2
- package/dist/src/executors/clean-package/executor.d.ts +2 -2
- package/dist/src/executors/clean-package/executor.js +3 -3
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.d.mts +3 -3
- package/dist/src/executors/esbuild/executor.d.ts +3 -3
- package/dist/src/executors/esbuild/executor.js +4 -4
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.d.mts +3 -3
- package/dist/src/executors/napi/executor.d.ts +3 -3
- package/dist/src/executors/napi/executor.js +4 -4
- package/dist/src/executors/napi/executor.mjs +4 -4
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +3 -3
- package/dist/src/executors/npm-publish/executor.mjs +3 -3
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.d.mts +3 -3
- package/dist/src/executors/size-limit/executor.d.ts +3 -3
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.d.mts +3 -3
- package/dist/src/executors/tsdown/executor.d.ts +3 -3
- package/dist/src/executors/tsdown/executor.js +4 -4
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.d.mts +3 -3
- package/dist/src/executors/typia/executor.d.ts +3 -3
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.d.mts +3 -3
- package/dist/src/executors/unbuild/executor.d.ts +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.d.mts +4 -4
- package/dist/src/generators/browser-library/generator.d.ts +4 -4
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.d.mts +4 -4
- package/dist/src/generators/config-schema/generator.d.ts +4 -4
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.d.mts +4 -4
- package/dist/src/generators/neutral-library/generator.d.ts +4 -4
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.d.mts +4 -4
- package/dist/src/generators/node-library/generator.d.ts +4 -4
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.d.mts +4 -4
- package/dist/src/generators/preset/generator.d.ts +4 -4
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.d.mts +3 -3
- package/dist/src/plugins/typescript/index.d.ts +3 -3
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsdown.d.mts +3 -3
- package/dist/src/plugins/typescript/tsdown.d.ts +3 -3
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.d.mts +3 -3
- package/dist/src/plugins/typescript/tsup.d.ts +3 -3
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.d.mts +2 -2
- package/dist/src/release/index.d.ts +2 -2
- package/dist/src/release/index.js +4 -4
- package/dist/src/release/index.mjs +4 -4
- package/dist/src/release/js-version-actions.d.mts +2 -2
- package/dist/src/release/js-version-actions.d.ts +2 -2
- package/dist/src/release/js-version-actions.js +3 -3
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.d.mts +2 -2
- package/dist/src/release/rust-version-actions.d.ts +2 -2
- package/dist/src/release/rust-version-actions.js +3 -3
- package/dist/src/release/rust-version-actions.mjs +3 -3
- package/dist/src/types.d.mts +3 -3
- package/dist/src/types.d.ts +3 -3
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.d.mts +3 -3
- package/dist/src/utils/index.d.ts +3 -3
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.d.mts +3 -3
- package/dist/src/utils/project-tags.d.ts +3 -3
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/dist/{types-D8QnATyz.d.mts → types-DBK84D4m.d.mts} +1 -1
- package/dist/{types-B0erLKyc.d.ts → types-Dug-2iKz.d.mts} +1 -1
- package/dist/{types-B0erLKyc.d.mts → types-Dug-2iKz.d.ts} +1 -1
- package/dist/{types-JAmmWnp1.d.ts → types-VblVxaqL.d.ts} +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunGenerator
|
|
3
|
+
} from "./chunk-SYPFDT7A.mjs";
|
|
4
|
+
import {
|
|
5
|
+
nodeVersion,
|
|
6
|
+
pnpmVersion
|
|
7
|
+
} from "./chunk-QC5ON3X4.mjs";
|
|
8
|
+
import {
|
|
9
|
+
__dirname
|
|
10
|
+
} from "./chunk-J7T3ACE5.mjs";
|
|
11
|
+
|
|
12
|
+
// src/generators/preset/generator.ts
|
|
13
|
+
import {
|
|
14
|
+
addDependenciesToPackageJson,
|
|
15
|
+
addProjectConfiguration,
|
|
16
|
+
formatFiles,
|
|
17
|
+
generateFiles,
|
|
18
|
+
joinPathFragments,
|
|
19
|
+
updateJson
|
|
20
|
+
} from "@nx/devkit";
|
|
21
|
+
import * as path from "node:path";
|
|
22
|
+
async function presetGeneratorFn(tree, options) {
|
|
23
|
+
const projectRoot = ".";
|
|
24
|
+
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
25
|
+
options.namespace ??= options.organization;
|
|
26
|
+
addProjectConfiguration(tree, `@${options.namespace}/${options.name}`, {
|
|
27
|
+
root: projectRoot,
|
|
28
|
+
projectType: "application",
|
|
29
|
+
targets: {
|
|
30
|
+
"local-registry": {
|
|
31
|
+
executor: "@nx/js:verdaccio",
|
|
32
|
+
options: {
|
|
33
|
+
port: 4873,
|
|
34
|
+
config: ".verdaccio/config.yml",
|
|
35
|
+
storage: "tmp/local-registry/storage"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
updateJson(tree, "package.json", (json) => {
|
|
41
|
+
json.scripts = json.scripts || {};
|
|
42
|
+
json.version = "0.0.0";
|
|
43
|
+
json.triggerEmptyDevReleaseByIncrementingThisNumber = 0;
|
|
44
|
+
json.private = true;
|
|
45
|
+
json.keywords ??= [
|
|
46
|
+
options.name,
|
|
47
|
+
options.namespace,
|
|
48
|
+
"storm",
|
|
49
|
+
"storm-stack",
|
|
50
|
+
"storm-ops",
|
|
51
|
+
"rust",
|
|
52
|
+
"nx",
|
|
53
|
+
"graphql",
|
|
54
|
+
"sullivanpj",
|
|
55
|
+
"monorepo"
|
|
56
|
+
];
|
|
57
|
+
json.homepage ??= "https://stormsoftware.com";
|
|
58
|
+
json.bugs ??= {
|
|
59
|
+
url: `https://github.com/${options.organization}/${options.name}/issues`,
|
|
60
|
+
email: "support@stormsoftware.com"
|
|
61
|
+
};
|
|
62
|
+
json.license = "Apache-2.0";
|
|
63
|
+
json.author ??= {
|
|
64
|
+
name: "Storm Software",
|
|
65
|
+
email: "contact@stormsoftware.com",
|
|
66
|
+
url: "https://stormsoftware.com"
|
|
67
|
+
};
|
|
68
|
+
json.maintainers ??= [
|
|
69
|
+
{
|
|
70
|
+
name: "Storm Software",
|
|
71
|
+
email: "contact@stormsoftware.com",
|
|
72
|
+
url: "https://stormsoftware.com"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "Pat Sullivan",
|
|
76
|
+
email: "admin@stormsoftware.com",
|
|
77
|
+
url: "https://patsullivan.org"
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
json.funding ??= {
|
|
81
|
+
type: "github",
|
|
82
|
+
url: "https://github.com/sponsors/storm-software"
|
|
83
|
+
};
|
|
84
|
+
json.namespace ??= `@${options.namespace}`;
|
|
85
|
+
json.description ??= options.description;
|
|
86
|
+
options.repositoryUrl ??= `https://github.com/${options.organization}/${options.name}`;
|
|
87
|
+
json.repository ??= {
|
|
88
|
+
type: "github",
|
|
89
|
+
url: `${options.repositoryUrl}.git`
|
|
90
|
+
};
|
|
91
|
+
json.packageManager ??= "pnpm@10.3.0";
|
|
92
|
+
json.engines ??= {
|
|
93
|
+
node: ">=20.11.0",
|
|
94
|
+
pnpm: ">=10.3.0"
|
|
95
|
+
};
|
|
96
|
+
json.prettier = "@storm-software/prettier/config.json";
|
|
97
|
+
json.nx ??= {
|
|
98
|
+
includedScripts: [
|
|
99
|
+
"lint-sherif",
|
|
100
|
+
"lint-knip",
|
|
101
|
+
"lint-ls",
|
|
102
|
+
"lint",
|
|
103
|
+
"format",
|
|
104
|
+
"format-sherif",
|
|
105
|
+
"format-readme",
|
|
106
|
+
"format-prettier",
|
|
107
|
+
"format-toml",
|
|
108
|
+
"commit",
|
|
109
|
+
"release"
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
json.scripts.adr = "pnpm log4brains adr new";
|
|
113
|
+
json.scripts["adr-preview"] = "pnpm log4brains preview";
|
|
114
|
+
json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
|
|
115
|
+
json.scripts.preinstall = "npx -y only-allow pnpm";
|
|
116
|
+
json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
|
|
117
|
+
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
118
|
+
json.scripts.nuke = "nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && pnpm clean && rimraf pnpm-lock.yaml && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules";
|
|
119
|
+
json.scripts.prebuild = "pnpm clean";
|
|
120
|
+
json.scripts.build = "nx affected -t build --parallel=5";
|
|
121
|
+
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
122
|
+
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
123
|
+
json.scripts["build-tools"] = "nx run-many -t build --projects=tools/* --parallel=5";
|
|
124
|
+
json.scripts["build-docs"] = "nx run-many -t build --projects=docs/* --parallel=5";
|
|
125
|
+
if (!options.includeApps) {
|
|
126
|
+
json.scripts["build-packages"] = "nx run-many -t build --projects=packages/* --parallel=5";
|
|
127
|
+
} else {
|
|
128
|
+
json.scripts["build-apps"] = "nx run-many -t build --projects=apps/* --parallel=5";
|
|
129
|
+
json.scripts["build-libs"] = "nx run-many -t build --projects=libs/* --parallel=5";
|
|
130
|
+
json.scripts["build-storybook"] = "storybook build -s public";
|
|
131
|
+
}
|
|
132
|
+
json.scripts.nx = "nx";
|
|
133
|
+
json.scripts.graph = "nx graph";
|
|
134
|
+
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
135
|
+
if (options.includeApps) {
|
|
136
|
+
json.scripts.start = "nx serve";
|
|
137
|
+
json.scripts.storybook = "pnpm storybook dev -p 6006";
|
|
138
|
+
}
|
|
139
|
+
json.scripts.help = "nx help";
|
|
140
|
+
json.scripts["dep-graph"] = "nx dep-graph";
|
|
141
|
+
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
142
|
+
json.scripts.e2e = "nx e2e";
|
|
143
|
+
if (options.includeApps) {
|
|
144
|
+
json.scripts.test = "nx test && pnpm test-storybook";
|
|
145
|
+
json.scripts["test-storybook"] = "pnpm test-storybook";
|
|
146
|
+
} else {
|
|
147
|
+
json.scripts.test = "nx test";
|
|
148
|
+
}
|
|
149
|
+
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
150
|
+
json.scripts.commit = "pnpm storm-git commit";
|
|
151
|
+
json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
|
|
152
|
+
json.scripts.release = "pnpm storm-git release";
|
|
153
|
+
json.scripts.format = "nx format:write";
|
|
154
|
+
json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
|
|
155
|
+
json.scripts["format-toml"] = 'pnpm exec taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"';
|
|
156
|
+
json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
|
|
157
|
+
json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
|
|
158
|
+
json.scripts.lint = "pnpm storm-lint all --skip-cspell";
|
|
159
|
+
json.scripts["lint-knip"] = "pnpm exec knip";
|
|
160
|
+
json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
|
|
161
|
+
json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
|
|
162
|
+
json.packageManager ??= `pnpm@${pnpmVersion}`;
|
|
163
|
+
json.engines = {
|
|
164
|
+
node: `>=${nodeVersion}`,
|
|
165
|
+
pnpm: `>=${pnpmVersion}`
|
|
166
|
+
};
|
|
167
|
+
return json;
|
|
168
|
+
});
|
|
169
|
+
generateFiles(tree, path.join(__dirname, "files"), projectRoot, {
|
|
170
|
+
...options,
|
|
171
|
+
pnpmVersion,
|
|
172
|
+
nodeVersion
|
|
173
|
+
});
|
|
174
|
+
await formatFiles(tree);
|
|
175
|
+
let dependencies = {
|
|
176
|
+
"@ls-lint/ls-lint": "2.2.3",
|
|
177
|
+
"@ltd/j-toml": "1.38.0",
|
|
178
|
+
"@nx/devkit": "^20.2.2",
|
|
179
|
+
"@nx/eslint-plugin": "^20.2.2",
|
|
180
|
+
"@nx/js": "^20.2.2",
|
|
181
|
+
"@nx/workspace": "^20.2.2",
|
|
182
|
+
"@storm-software/config": "latest",
|
|
183
|
+
"@storm-software/git-tools": "latest",
|
|
184
|
+
"@storm-software/linting-tools": "latest",
|
|
185
|
+
"@storm-software/testing-tools": "latest",
|
|
186
|
+
"@storm-software/workspace-tools": "latest",
|
|
187
|
+
"@storm-software/eslint": "latest",
|
|
188
|
+
"@storm-software/cspell": "latest",
|
|
189
|
+
"@storm-software/prettier": "latest",
|
|
190
|
+
"@taplo/cli": "0.7.0",
|
|
191
|
+
"@types/node": "^25.3.0",
|
|
192
|
+
copyfiles: "2.4.1",
|
|
193
|
+
eslint: "9.5.0",
|
|
194
|
+
jest: "29.7.0",
|
|
195
|
+
"jest-environment-node": "29.7.0",
|
|
196
|
+
knip: "5.25.2",
|
|
197
|
+
lefthook: "1.6.18",
|
|
198
|
+
nx: "^20.2.2",
|
|
199
|
+
prettier: "3.3.2",
|
|
200
|
+
"prettier-plugin-prisma": "5.0.0",
|
|
201
|
+
rimraf: "5.0.7",
|
|
202
|
+
sherif: "0.10.0",
|
|
203
|
+
"ts-jest": "29.1.5",
|
|
204
|
+
"ts-node": "10.9.2",
|
|
205
|
+
tslib: "2.6.3",
|
|
206
|
+
typescript: "5.5.3",
|
|
207
|
+
verdaccio: "5.31.1"
|
|
208
|
+
};
|
|
209
|
+
if (options.includeApps) {
|
|
210
|
+
dependencies = {
|
|
211
|
+
...dependencies,
|
|
212
|
+
react: "latest",
|
|
213
|
+
"react-dom": "latest",
|
|
214
|
+
storybook: "latest",
|
|
215
|
+
"@storybook/addons": "latest",
|
|
216
|
+
"@nx/react": "latest",
|
|
217
|
+
"@nx/next": "latest",
|
|
218
|
+
"@nx/node": "latest",
|
|
219
|
+
"@nx/storybook": "latest",
|
|
220
|
+
"jest-environment-jsdom": "29.7.0"
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
if (options.includeRust) {
|
|
224
|
+
dependencies = {
|
|
225
|
+
...dependencies,
|
|
226
|
+
"@monodon/rust": "1.4.0"
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
if (options.nxCloud) {
|
|
230
|
+
dependencies = {
|
|
231
|
+
...dependencies,
|
|
232
|
+
"nx-cloud": "latest"
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
await Promise.resolve(
|
|
236
|
+
addDependenciesToPackageJson(
|
|
237
|
+
tree,
|
|
238
|
+
dependencies,
|
|
239
|
+
{},
|
|
240
|
+
joinPathFragments(projectRoot, "package.json")
|
|
241
|
+
)
|
|
242
|
+
);
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
var generator_default = withRunGenerator(
|
|
246
|
+
"Storm Workspace Preset Generator",
|
|
247
|
+
presetGeneratorFn
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
export {
|
|
251
|
+
presetGeneratorFn,
|
|
252
|
+
generator_default
|
|
253
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunkRO2CCHL3js = require('./chunk-RO2CCHL3.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
13
|
+
|
|
14
|
+
// src/executors/napi/executor.ts
|
|
15
|
+
var _jiti = require('jiti');
|
|
16
|
+
var _fileutils = require('nx/src/utils/fileutils');
|
|
17
|
+
async function napiExecutor(options, context, config) {
|
|
18
|
+
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
19
|
+
fsCache: config.skipCache ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
20
|
+
config.workspaceRoot,
|
|
21
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
22
|
+
"jiti"
|
|
23
|
+
),
|
|
24
|
+
interopDefault: true
|
|
25
|
+
});
|
|
26
|
+
const { NapiCli } = await jiti.import(
|
|
27
|
+
jiti.esmResolve("@napi-rs/cli")
|
|
28
|
+
);
|
|
29
|
+
if (!_optionalChain([context, 'access', _ => _.projectGraph, 'optionalAccess', _2 => _2.nodes, 'access', _3 => _3[_nullishCoalesce(context.projectName, () => ( ""))]])) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
const projectRoot = _optionalChain([context, 'access', _4 => _4.projectGraph, 'optionalAccess', _5 => _5.nodes, 'access', _6 => _6[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _7 => _7.data, 'access', _8 => _8.root]);
|
|
35
|
+
const packageJson = _chunkCQDBLKPFjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
36
|
+
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
37
|
+
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
38
|
+
}
|
|
39
|
+
const napi = new NapiCli();
|
|
40
|
+
const normalizedOptions = { ...options };
|
|
41
|
+
const metadata = _chunkD2PV33E5js.cargoMetadata.call(void 0, );
|
|
42
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _9 => _9.target_directory]) || _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
43
|
+
normalizedOptions.outputDir = options.outputPath;
|
|
44
|
+
normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
|
|
45
|
+
if (options.cwd) {
|
|
46
|
+
normalizedOptions.cwd = _chunkCQDBLKPFjs.correctPaths.call(void 0, options.cwd);
|
|
47
|
+
} else {
|
|
48
|
+
normalizedOptions.cwd = _chunkCQDBLKPFjs.correctPaths.call(void 0, projectRoot);
|
|
49
|
+
const absoluteProjectRoot = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
50
|
+
config.workspaceRoot,
|
|
51
|
+
projectRoot || "."
|
|
52
|
+
);
|
|
53
|
+
if (normalizedOptions.outputDir) {
|
|
54
|
+
normalizedOptions.outputDir = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
55
|
+
absoluteProjectRoot,
|
|
56
|
+
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
57
|
+
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
if (normalizedOptions.packageJsonPath) {
|
|
62
|
+
normalizedOptions.packageJsonPath = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
63
|
+
absoluteProjectRoot,
|
|
64
|
+
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
65
|
+
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
if (normalizedOptions.configPath) {
|
|
70
|
+
normalizedOptions.configPath = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
71
|
+
absoluteProjectRoot,
|
|
72
|
+
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
73
|
+
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
if (normalizedOptions.manifestPath) {
|
|
78
|
+
normalizedOptions.manifestPath = _chunkCQDBLKPFjs.relative.call(void 0,
|
|
79
|
+
absoluteProjectRoot,
|
|
80
|
+
_chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
81
|
+
_chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (process.env.VERCEL) {
|
|
87
|
+
return { success: true };
|
|
88
|
+
}
|
|
89
|
+
const { task } = await napi.build(normalizedOptions);
|
|
90
|
+
return { success: true, terminalOutput: await task };
|
|
91
|
+
}
|
|
92
|
+
var executor_default = _chunkRO2CCHL3js.withRunExecutor.call(void 0,
|
|
93
|
+
"Napi - Build Bindings",
|
|
94
|
+
napiExecutor,
|
|
95
|
+
{
|
|
96
|
+
skipReadingConfig: false,
|
|
97
|
+
hooks: {
|
|
98
|
+
applyDefaultOptions: (options) => {
|
|
99
|
+
options.outputPath ??= "{sourceRoot}";
|
|
100
|
+
options.toolchain ??= "stable";
|
|
101
|
+
options.dtsCache ??= true;
|
|
102
|
+
options.platform ??= true;
|
|
103
|
+
options.constEnum ??= false;
|
|
104
|
+
options.verbose ??= false;
|
|
105
|
+
options.jsBinding ??= "binding.js";
|
|
106
|
+
options.dts ??= "binding.d.ts";
|
|
107
|
+
return options;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
exports.napiExecutor = napiExecutor; exports.executor_default = executor_default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-QOQ7ZZDR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.mjs";
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-format/executor.ts
|
|
10
|
+
async function cargoFormatExecutor(options, context) {
|
|
11
|
+
const command = buildCargoCommand("fmt", options, context);
|
|
12
|
+
return await cargoCommand(context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = withRunExecutor(
|
|
15
|
+
"Cargo - Format",
|
|
16
|
+
cargoFormatExecutor,
|
|
17
|
+
{
|
|
18
|
+
skipReadingConfig: false,
|
|
19
|
+
hooks: {
|
|
20
|
+
applyDefaultOptions: (options) => {
|
|
21
|
+
options.outputPath ??= "dist/{projectRoot}/target";
|
|
22
|
+
options.toolchain ??= "stable";
|
|
23
|
+
return options;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
cargoFormatExecutor,
|
|
31
|
+
executor_default
|
|
32
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeOptions,
|
|
3
|
+
typeScriptLibraryGeneratorFn
|
|
4
|
+
} from "./chunk-M3YWCYUX.mjs";
|
|
5
|
+
import {
|
|
6
|
+
typesNodeVersion
|
|
7
|
+
} from "./chunk-QC5ON3X4.mjs";
|
|
8
|
+
import {
|
|
9
|
+
withRunGenerator
|
|
10
|
+
} from "./chunk-SYPFDT7A.mjs";
|
|
11
|
+
import {
|
|
12
|
+
joinPaths
|
|
13
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
14
|
+
import {
|
|
15
|
+
__dirname
|
|
16
|
+
} from "./chunk-J7T3ACE5.mjs";
|
|
17
|
+
|
|
18
|
+
// src/generators/node-library/generator.ts
|
|
19
|
+
import {
|
|
20
|
+
formatFiles,
|
|
21
|
+
generateFiles,
|
|
22
|
+
names,
|
|
23
|
+
offsetFromRoot
|
|
24
|
+
} from "@nx/devkit";
|
|
25
|
+
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
26
|
+
const filesDir = joinPaths(
|
|
27
|
+
__dirname,
|
|
28
|
+
"src",
|
|
29
|
+
"generators",
|
|
30
|
+
"node-library",
|
|
31
|
+
"files"
|
|
32
|
+
);
|
|
33
|
+
const tsLibraryGeneratorOptions = {
|
|
34
|
+
platform: "node",
|
|
35
|
+
devDependencies: {
|
|
36
|
+
"@types/node": typesNodeVersion
|
|
37
|
+
},
|
|
38
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
39
|
+
...schema,
|
|
40
|
+
directory: schema.directory,
|
|
41
|
+
description: schema.description
|
|
42
|
+
};
|
|
43
|
+
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
44
|
+
const { className, name, propertyName } = names(options.name);
|
|
45
|
+
generateFiles(tree, filesDir, options.projectRoot, {
|
|
46
|
+
...schema,
|
|
47
|
+
dot: ".",
|
|
48
|
+
className,
|
|
49
|
+
name,
|
|
50
|
+
namespace: process.env.STORM_NAMESPACE ?? "storm-software",
|
|
51
|
+
description: schema.description ?? "",
|
|
52
|
+
propertyName,
|
|
53
|
+
js: !!options.js,
|
|
54
|
+
cliCommand: "nx",
|
|
55
|
+
strict: void 0,
|
|
56
|
+
tmpl: "",
|
|
57
|
+
offsetFromRoot: offsetFromRoot(options.projectRoot),
|
|
58
|
+
buildable: options.bundler && options.bundler !== "none",
|
|
59
|
+
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
60
|
+
});
|
|
61
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
62
|
+
await formatFiles(tree);
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
var generator_default = withRunGenerator(
|
|
66
|
+
"TypeScript Library Creator (NodeJs Platform)",
|
|
67
|
+
nodeLibraryGeneratorFn,
|
|
68
|
+
{
|
|
69
|
+
hooks: {
|
|
70
|
+
applyDefaultOptions: (options) => {
|
|
71
|
+
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
72
|
+
options.platform ??= "node";
|
|
73
|
+
return options;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
nodeLibraryGeneratorFn,
|
|
81
|
+
generator_default
|
|
82
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkRO2CCHL3js = require('./chunk-RO2CCHL3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkIHMF6RANjs = require('./chunk-IHMF6RAN.js');
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkRO2CCHL3js.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-QOQ7ZZDR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
buildCargoCommand,
|
|
6
|
+
cargoCommand
|
|
7
|
+
} from "./chunk-ZTN2676G.mjs";
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-doc/executor.ts
|
|
10
|
+
async function cargoDocExecutor(options, context) {
|
|
11
|
+
const opts = { ...options };
|
|
12
|
+
opts["no-deps"] = opts.noDeps;
|
|
13
|
+
delete opts.noDeps;
|
|
14
|
+
const command = buildCargoCommand("doc", options, context);
|
|
15
|
+
return await cargoCommand(context.root, ...command);
|
|
16
|
+
}
|
|
17
|
+
var executor_default = withRunExecutor(
|
|
18
|
+
"Cargo - Doc",
|
|
19
|
+
cargoDocExecutor,
|
|
20
|
+
{
|
|
21
|
+
skipReadingConfig: false,
|
|
22
|
+
hooks: {
|
|
23
|
+
applyDefaultOptions: (options) => {
|
|
24
|
+
options.outputPath ??= "dist/{projectRoot}/docs";
|
|
25
|
+
options.toolchain ??= "stable";
|
|
26
|
+
options.release ??= options.profile ? false : true;
|
|
27
|
+
options.allFeatures ??= true;
|
|
28
|
+
options.lib ??= true;
|
|
29
|
+
options.bins ??= true;
|
|
30
|
+
options.examples ??= true;
|
|
31
|
+
options.noDeps ??= false;
|
|
32
|
+
return options;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
cargoDocExecutor,
|
|
40
|
+
executor_default
|
|
41
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkNFYP774Djs = require('./chunk-NFYP774D.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFZIOJYJGjs = require('./chunk-FZIOJYJG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -35,7 +35,7 @@ async function getNpmRegistry() {
|
|
|
35
35
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
36
36
|
return process.env.STORM_REGISTRY_NPM;
|
|
37
37
|
}
|
|
38
|
-
const workspaceConfig = await
|
|
38
|
+
const workspaceConfig = await _chunkFZIOJYJGjs.getConfig.call(void 0, );
|
|
39
39
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
40
40
|
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
41
41
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildCargoCommand,
|
|
3
|
+
cargoCommand
|
|
4
|
+
} from "./chunk-ZTN2676G.mjs";
|
|
5
|
+
import {
|
|
6
|
+
withRunExecutor
|
|
7
|
+
} from "./chunk-QOQ7ZZDR.mjs";
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-clippy/executor.ts
|
|
10
|
+
async function cargoClippyExecutor(options, context) {
|
|
11
|
+
const command = buildCargoCommand("clippy", options, context);
|
|
12
|
+
return await cargoCommand(context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = withRunExecutor(
|
|
15
|
+
"Cargo - Clippy",
|
|
16
|
+
cargoClippyExecutor,
|
|
17
|
+
{
|
|
18
|
+
skipReadingConfig: false,
|
|
19
|
+
hooks: {
|
|
20
|
+
applyDefaultOptions: (options) => {
|
|
21
|
+
options.toolchain ??= "stable";
|
|
22
|
+
options.fix ??= false;
|
|
23
|
+
return options;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
cargoClippyExecutor,
|
|
31
|
+
executor_default
|
|
32
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkRO2CCHL3js = require('./chunk-RO2CCHL3.js');
|
|
3
4
|
|
|
4
|
-
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkRO2CCHL3js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-TBW5MCN6.mjs";
|
|
16
16
|
|
|
17
17
|
// ../config/src/schema.ts
|
|
18
|
-
import * as z from "zod/mini";
|
|
18
|
+
import * as z from "zod/v4/mini";
|
|
19
19
|
|
|
20
20
|
// ../config/src/constants.ts
|
|
21
21
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
@@ -1424,9 +1424,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1424
1424
|
configInput.variant = existsSync2(joinPaths(_workspaceRoot, "nx.json")) || existsSync2(joinPaths(_workspaceRoot, ".nx")) || existsSync2(joinPaths(_workspaceRoot, "lerna.json")) || existsSync2(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1425
1425
|
}
|
|
1426
1426
|
try {
|
|
1427
|
-
|
|
1428
|
-
|
|
1427
|
+
const parseResult = await Promise.resolve(
|
|
1428
|
+
workspaceConfigSchema._zod.parse(
|
|
1429
|
+
{ value: configInput, issues: [] },
|
|
1430
|
+
{ async: true }
|
|
1431
|
+
)
|
|
1429
1432
|
);
|
|
1433
|
+
result = applyDefaultConfig(parseResult.value);
|
|
1430
1434
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1431
1435
|
} catch (error) {
|
|
1432
1436
|
throw new Error(
|