@storm-software/workspace-tools 1.264.17 → 1.264.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +451 -226
- package/README.md +7 -7
- package/dist/{chunk-6WLEYOQF.js → chunk-3MWOC5X7.js} +2 -2
- package/dist/{chunk-LRNQGMXF.mjs → chunk-4UTIWEDA.mjs} +1 -1
- package/dist/{chunk-PGIKB4LI.mjs → chunk-5M3R4RLA.mjs} +1 -1
- package/dist/{chunk-B44EGIA5.mjs → chunk-5QWEZQFR.mjs} +1 -1
- package/dist/{chunk-PRBNESA3.js → chunk-5SK55RA7.js} +11 -11
- package/dist/{chunk-KGZ2OZNW.mjs → chunk-7A34G3TI.mjs} +1 -1
- package/dist/{chunk-YET5WGHJ.js → chunk-ASBO74YM.js} +5 -5
- package/dist/{chunk-EBP7GL4L.mjs → chunk-AUU7AFJV.mjs} +53 -4
- package/dist/{chunk-2PGDSXZU.mjs → chunk-AWUOBB3R.mjs} +1 -1
- package/dist/{chunk-PQ27QZOF.mjs → chunk-CEK44GFG.mjs} +1 -1
- package/dist/{chunk-3A63PAQ2.js → chunk-DJJEQUOE.js} +2 -2
- package/dist/{chunk-67DAOFEW.js → chunk-DYKPDBZQ.js} +2 -2
- package/dist/{chunk-6V33DY44.js → chunk-EEMX5TF7.js} +5 -5
- package/dist/{chunk-KURISY5P.mjs → chunk-FQSPQRIB.mjs} +1 -1
- package/dist/{chunk-F5AJY62N.mjs → chunk-HXCWS5GR.mjs} +1 -1
- package/dist/{chunk-BTRCUZD7.js → chunk-I44JBB55.js} +2 -2
- package/dist/{chunk-ZOJJNUIU.js → chunk-IFB5HNMT.js} +2 -2
- package/dist/{chunk-NXTMYDCW.js → chunk-IRPD2M2I.js} +2 -2
- package/dist/{chunk-5QD6IIAF.mjs → chunk-IRSGGDCX.mjs} +2 -2
- package/dist/{chunk-3BGF7S7Y.js → chunk-IVNDY2FE.js} +20 -20
- package/dist/{chunk-MCODRLX6.mjs → chunk-K5XDKCHY.mjs} +2 -2
- package/dist/{chunk-NSBUY2J2.js → chunk-KFT2TAHE.js} +2 -2
- package/dist/{chunk-NIW5HNFD.mjs → chunk-MHZ6V7XS.mjs} +1 -1
- package/dist/{chunk-RYGPTY75.mjs → chunk-NW4PIBL2.mjs} +1 -1
- package/dist/{chunk-OK2RRJWB.mjs → chunk-OBMMNTJQ.mjs} +2 -2
- package/dist/{chunk-Y6GFDAJL.js → chunk-P5WJDR64.js} +2 -2
- package/dist/{chunk-6JF3H2QJ.mjs → chunk-PUW5GKBJ.mjs} +1 -1
- package/dist/{chunk-PQLZX2GO.mjs → chunk-Q6PB2D4O.mjs} +2 -2
- package/dist/{chunk-VYAFH7RM.js → chunk-SPRQWSBE.js} +53 -4
- package/dist/{chunk-LPQBGYFC.js → chunk-SWKSEHJV.js} +15 -15
- package/dist/{chunk-F5NIZKZT.js → chunk-TFNKD3A2.js} +4 -4
- package/dist/{chunk-6D23MHU6.mjs → chunk-TYTLMYMZ.mjs} +1 -1
- package/dist/{chunk-5CXGHQW2.js → chunk-VGWC25SX.js} +2 -2
- package/dist/{chunk-KLUSECE7.mjs → chunk-WCGJHQTH.mjs} +2 -2
- package/dist/{chunk-R7MJYMRC.js → chunk-YCDNXKRB.js} +9 -9
- package/dist/{chunk-6LF4YU2P.js → chunk-YX566HFQ.js} +35 -35
- package/dist/{executor-CHRmY7wn.d.ts → executor-BHZDUmGV.d.ts} +1 -1
- package/dist/{executor-R_44c8dN.d.ts → executor-BSdK3i-c.d.ts} +1 -1
- package/dist/{executor-DotcoNb5.d.ts → executor-Ba3sXm2v.d.ts} +1 -1
- package/dist/{executor-kLAG_Uh0.d.mts → executor-BeYtFLmD.d.mts} +1 -1
- package/dist/{executor-C4zk52YE.d.ts → executor-C5FcAd29.d.ts} +1 -1
- package/dist/{executor-CfTJx0E3.d.mts → executor-CqRyjFhC.d.mts} +1 -1
- package/dist/{executor-KnByZ3Vj.d.mts → executor-D8PlrGW7.d.mts} +1 -1
- package/dist/{executor-BbBStgiZ.d.mts → executor-aaNF3iYy.d.mts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +11 -11
- package/dist/{generator-DWF0x5-p.d.mts → generator-BN20pTlZ.d.mts} +2 -2
- package/dist/{generator-Cbq0Bpwx.d.mts → generator-C77-chd9.d.mts} +2 -2
- package/dist/{generator-Ufzc88Fb.d.ts → generator-C8vM6WVl.d.ts} +1 -1
- package/dist/{generator-DkLHbk1Q.d.mts → generator-CDFD9683.d.mts} +2 -2
- package/dist/{generator-CbgW0ZB8.d.ts → generator-CDWEbKl9.d.ts} +2 -2
- package/dist/{generator-DWLUcY-m.d.mts → generator-CO80PAYg.d.mts} +2 -2
- package/dist/{generator-7Qr_nsE2.d.mts → generator-CPOA4iOa.d.mts} +1 -1
- package/dist/{generator-DIdGmT2e.d.mts → generator-CwtaXN68.d.mts} +1 -1
- package/dist/{generator-BEUPPjjZ.d.ts → generator-D1KDMMWv.d.ts} +2 -2
- package/dist/{generator-DhBo_-BD.d.ts → generator-DHaTv11N.d.ts} +1 -1
- package/dist/{generator-bQ0iNtEG.d.ts → generator-PWtPKnX3.d.ts} +2 -2
- package/dist/{generator-W-hgMr9s.d.ts → generator-ieAZPSV9.d.ts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +19 -19
- package/dist/index.mjs +18 -18
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +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.d.mts +2 -2
- package/dist/src/base/index.d.ts +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.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- 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 +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +4 -4
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- 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 +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- 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.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +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.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +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.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-Cj24nD9S.d.ts → types-BhjX7nv_.d.ts} +1 -1
- package/dist/{types-CKlmYL_p.d.mts → types-DAkcs-RD.d.mts} +1 -1
- package/dist/{types-ZPi96OtS.d.mts → types-DdLUCAjP.d.mts} +41 -0
- package/dist/{types-ZPi96OtS.d.ts → types-DdLUCAjP.d.ts} +41 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4UTIWEDA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
StormConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AUU7AFJV.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-FR3YQN55.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.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 = _chunkSWKSEHJVjs.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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5QWEZQFR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
formatLogMessage,
|
|
6
6
|
getConfig,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace,
|
|
15
15
|
writeWarning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AUU7AFJV.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-FR3YQN55.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -45,7 +45,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunkSWKSEHJVjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
49
49
|
hooks: {
|
|
50
50
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
51
51
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -15,15 +15,22 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
|
15
15
|
// ../config/src/constants.ts
|
|
16
16
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
17
17
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
18
|
+
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
18
19
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
19
20
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
20
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/
|
|
21
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
22
|
+
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
23
|
+
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
24
|
+
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
25
|
+
var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
26
|
+
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
27
|
+
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
21
28
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
22
|
-
|
|
29
|
+
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
23
30
|
|
|
24
|
-
Join us on [Discord](
|
|
31
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
25
32
|
|
|
26
|
-
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](
|
|
33
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
27
34
|
`;
|
|
28
35
|
|
|
29
36
|
// ../config/src/schema.ts
|
|
@@ -119,6 +126,14 @@ var WorkspaceReleaseConfigSchema = _zod2.default.object({
|
|
|
119
126
|
header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
120
127
|
footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
121
128
|
}).describe("The workspace's release config used during the release process");
|
|
129
|
+
var WorkspaceAccountConfigSchema = _zod2.default.object({
|
|
130
|
+
twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
131
|
+
discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
132
|
+
telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
133
|
+
slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
134
|
+
medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
135
|
+
github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
136
|
+
}).describe("The workspace's account config used to store various social media links");
|
|
122
137
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
123
138
|
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
124
139
|
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -138,11 +153,13 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
138
153
|
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
139
154
|
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
140
155
|
licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
156
|
+
contact: _zod2.default.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
|
|
141
157
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
142
158
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
143
159
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
144
160
|
bot: WorkspaceBotConfigSchema,
|
|
145
161
|
release: WorkspaceReleaseConfigSchema,
|
|
162
|
+
account: WorkspaceAccountConfigSchema,
|
|
146
163
|
mode: _zod2.default.enum([
|
|
147
164
|
"development",
|
|
148
165
|
"staging",
|
|
@@ -607,12 +624,21 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
607
624
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
608
625
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
609
626
|
},
|
|
627
|
+
account: {
|
|
628
|
+
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
629
|
+
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
630
|
+
telegram: process.env[`${prefix}ACCOUNT_TELEGRAM`] || void 0,
|
|
631
|
+
slack: process.env[`${prefix}ACCOUNT_SLACK`] || void 0,
|
|
632
|
+
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
633
|
+
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
634
|
+
},
|
|
610
635
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
611
636
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
612
637
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
613
638
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
614
639
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
615
640
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
641
|
+
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
616
642
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
617
643
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
618
644
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkJTAXCQX6js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -776,6 +802,26 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
776
802
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
777
803
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
778
804
|
}
|
|
805
|
+
if (config.account) {
|
|
806
|
+
if (config.account.twitter) {
|
|
807
|
+
process.env[`${prefix}ACCOUNT_TWITTER`] = config.account.twitter;
|
|
808
|
+
}
|
|
809
|
+
if (config.account.discord) {
|
|
810
|
+
process.env[`${prefix}ACCOUNT_DISCORD`] = config.account.discord;
|
|
811
|
+
}
|
|
812
|
+
if (config.account.telegram) {
|
|
813
|
+
process.env[`${prefix}ACCOUNT_TELEGRAM`] = config.account.telegram;
|
|
814
|
+
}
|
|
815
|
+
if (config.account.slack) {
|
|
816
|
+
process.env[`${prefix}ACCOUNT_SLACK`] = config.account.slack;
|
|
817
|
+
}
|
|
818
|
+
if (config.account.medium) {
|
|
819
|
+
process.env[`${prefix}ACCOUNT_MEDIUM`] = config.account.medium;
|
|
820
|
+
}
|
|
821
|
+
if (config.account.github) {
|
|
822
|
+
process.env[`${prefix}ACCOUNT_GITHUB`] = config.account.github;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
779
825
|
if (config.organization) {
|
|
780
826
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
781
827
|
}
|
|
@@ -794,6 +840,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
794
840
|
if (config.licensing) {
|
|
795
841
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
796
842
|
}
|
|
843
|
+
if (config.contact) {
|
|
844
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
845
|
+
}
|
|
797
846
|
if (config.timezone) {
|
|
798
847
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
799
848
|
process.env.TZ = config.timezone;
|
|
@@ -11,7 +11,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.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 = _chunkSPRQWSBEjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkSPRQWSBEjs.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 _chunkSPRQWSBEjs.getConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkSPRQWSBEjs.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 _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunkUALZJZUKjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkSPRQWSBEjs.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
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkSPRQWSBEjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkSPRQWSBEjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkSPRQWSBEjs.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,9 +1,9 @@
|
|
|
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 _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.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
|
+
_chunkSPRQWSBEjs.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]) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
21
|
}
|
|
@@ -63,7 +63,7 @@ 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 = _chunkIVNDY2FEjs.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) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkIVNDY2FEjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
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 _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.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
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkSPRQWSBEjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkSPRQWSBEjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkSPRQWSBEjs.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
|
+
_chunkSPRQWSBEjs.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
|
+
_chunkSPRQWSBEjs.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 = _chunkSWKSEHJVjs.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";
|