@storm-software/build-tools 0.143.17 → 0.143.19
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/README.md +7 -7
- package/dist/{chunk-I6EDCLZ2.mjs → chunk-3WFCBFRM.mjs} +1 -1
- package/dist/{chunk-2NWQJSIK.mjs → chunk-B5EAYIOT.mjs} +1 -1
- package/dist/{chunk-4X7SCEOW.js → chunk-H64CZVJJ.js} +5 -5
- package/dist/{chunk-LUFEVD6N.js → chunk-INGOZELS.js} +8 -8
- package/dist/{chunk-QQTS7ULR.js → chunk-INX6NBKW.js} +31 -0
- package/dist/{chunk-VYA5GTSJ.js → chunk-L6FYW3ID.js} +2 -2
- package/dist/{chunk-UARG2X4E.mjs → chunk-MCFSUUJG.mjs} +1 -1
- package/dist/{chunk-Y2OUQU3Z.mjs → chunk-NTSC46IQ.mjs} +1 -1
- package/dist/{chunk-FBPO37RD.mjs → chunk-O4QVCGZS.mjs} +31 -0
- package/dist/{chunk-LA4VRSSD.mjs → chunk-PUP2YY6V.mjs} +46 -2
- package/dist/{chunk-NWCQPWKZ.js → chunk-SX4FMBR4.js} +87 -43
- package/dist/{chunk-2RUAFQ2S.js → chunk-XCPCKIUW.js} +8 -8
- package/dist/{chunk-A37LOAKN.js → chunk-XKPVTPMQ.js} +16 -16
- package/dist/{chunk-6HCYVYAO.mjs → chunk-Z424F4SY.mjs} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/plugins/analyze.js +3 -3
- package/dist/plugins/analyze.mjs +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/ts-resolve.js +3 -3
- package/dist/plugins/ts-resolve.mjs +2 -2
- package/dist/{types-C18fi0i4.d.ts → types-BOD8Yftb.d.mts} +64 -0
- package/dist/{types-C18fi0i4.d.mts → types-BOD8Yftb.d.ts} +64 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utilities/copy-assets.d.mts +1 -1
- package/dist/utilities/copy-assets.d.ts +1 -1
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.d.mts +1 -1
- package/dist/utilities/generate-package-json.d.ts +1 -1
- package/dist/utilities/generate-package-json.js +3 -3
- package/dist/utilities/generate-package-json.mjs +2 -2
- package/dist/utilities/get-entry-points.d.mts +1 -1
- package/dist/utilities/get-entry-points.d.ts +1 -1
- package/dist/utilities/get-entry-points.js +3 -3
- package/dist/utilities/get-entry-points.mjs +2 -2
- package/dist/utilities/get-env.d.mts +1 -1
- package/dist/utilities/get-env.d.ts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +6 -6
- package/dist/utilities/index.mjs +5 -5
- package/dist/utilities/read-nx-config.js +3 -3
- package/dist/utilities/read-nx-config.mjs +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"><img src="https://
|
|
6
|
+
<div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
|
|
7
7
|
<br />
|
|
8
8
|
|
|
9
9
|
<div align="center">
|
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -33,7 +33,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
33
33
|
<!-- prettier-ignore-end -->
|
|
34
34
|
|
|
35
35
|
<div align="center">
|
|
36
|
-
<b>Be sure to ⭐ this
|
|
36
|
+
<b>Be sure to ⭐ this <a href="https://github.com/storm-software/storm-ops" target="_blank">repository on GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<br />
|
|
@@ -229,7 +229,7 @@ specification. Contributions of any kind welcome!
|
|
|
229
229
|
<br />
|
|
230
230
|
|
|
231
231
|
<div align="center">
|
|
232
|
-
<img src="https://
|
|
232
|
+
<img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
|
|
233
233
|
</div>
|
|
234
234
|
<br />
|
|
235
235
|
|
|
@@ -238,7 +238,7 @@ specification. Contributions of any kind welcome!
|
|
|
238
238
|
</div>
|
|
239
239
|
|
|
240
240
|
<div align="center">
|
|
241
|
-
<b>Fingerprint:</b>
|
|
241
|
+
<b>Fingerprint:</b> F47F 1853 BCAD DE9B 42C8 6316 9FDE EC95 47FE D106
|
|
242
242
|
</div>
|
|
243
243
|
<br />
|
|
244
244
|
|
|
@@ -261,9 +261,9 @@ channel!
|
|
|
261
261
|
|
|
262
262
|
<br />
|
|
263
263
|
|
|
264
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
264
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
265
265
|
<br />
|
|
266
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
266
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
267
267
|
|
|
268
268
|
<br />
|
|
269
269
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkINX6NBKWjs = require('./chunk-INX6NBKW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -11,7 +11,7 @@ var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
|
11
11
|
// src/utilities/get-entry-points.ts
|
|
12
12
|
var _glob = require('glob');
|
|
13
13
|
var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
14
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
14
|
+
const workspaceRoot = config.workspaceRoot || _chunkINX6NBKWjs.findWorkspaceRoot.call(void 0, );
|
|
15
15
|
const entryPoints = [];
|
|
16
16
|
if (entry) {
|
|
17
17
|
if (typeof entry === "string") {
|
|
@@ -23,7 +23,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
if (emitOnAll) {
|
|
26
|
-
entryPoints.push(
|
|
26
|
+
entryPoints.push(_chunkINX6NBKWjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
27
27
|
}
|
|
28
28
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
29
29
|
const paths = [];
|
|
@@ -35,9 +35,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
35
35
|
]
|
|
36
36
|
});
|
|
37
37
|
paths.push(...files.reduce((ret, filePath) => {
|
|
38
|
-
const result =
|
|
38
|
+
const result = _chunkINX6NBKWjs.correctPaths.call(void 0, _chunkINX6NBKWjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkINX6NBKWjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkINX6NBKWjs.correctPaths.call(void 0, projectRoot), ""));
|
|
39
39
|
if (result) {
|
|
40
|
-
|
|
40
|
+
_chunkINX6NBKWjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkINX6NBKWjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
41
41
|
if (!paths.includes(result)) {
|
|
42
42
|
paths.push(result);
|
|
43
43
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkINX6NBKWjs = require('./chunk-INX6NBKW.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -37,8 +37,8 @@ var copyAssets = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (con
|
|
|
37
37
|
output: "src/"
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
40
|
+
_chunkINX6NBKWjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
41
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkINX6NBKWjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
42
42
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
43
43
|
projectDir: projectRoot,
|
|
44
44
|
rootDir: config.workspaceRoot,
|
|
@@ -47,12 +47,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
47
47
|
});
|
|
48
48
|
await assetHandler.processAllAssetsOnce();
|
|
49
49
|
if (includeSrc === true) {
|
|
50
|
-
|
|
50
|
+
_chunkINX6NBKWjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkINX6NBKWjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
51
51
|
const files = await _glob.glob.call(void 0, [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
_chunkINX6NBKWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
53
|
+
_chunkINX6NBKWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
54
|
+
_chunkINX6NBKWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
55
|
+
_chunkINX6NBKWjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
56
56
|
]);
|
|
57
57
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
58
58
|
|
|
@@ -238,8 +238,23 @@ var LogLevelLabel = {
|
|
|
238
238
|
// ../config/src/constants.ts
|
|
239
239
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
240
240
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
241
|
+
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
241
242
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
242
243
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
244
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
245
|
+
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
246
|
+
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
247
|
+
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
248
|
+
var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
249
|
+
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
250
|
+
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
251
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
252
|
+
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.
|
|
253
|
+
|
|
254
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
255
|
+
|
|
256
|
+
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!
|
|
257
|
+
`;
|
|
243
258
|
|
|
244
259
|
// ../config/src/schema.ts
|
|
245
260
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
@@ -330,6 +345,19 @@ var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
|
330
345
|
name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
331
346
|
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
332
347
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
348
|
+
var WorkspaceReleaseConfigSchema = _zod2.default.object({
|
|
349
|
+
banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
350
|
+
header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
351
|
+
footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
352
|
+
}).describe("The workspace's release config used during the release process");
|
|
353
|
+
var WorkspaceAccountConfigSchema = _zod2.default.object({
|
|
354
|
+
twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
355
|
+
discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
356
|
+
telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
357
|
+
slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
358
|
+
medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
359
|
+
github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
360
|
+
}).describe("The workspace's account config used to store various social media links");
|
|
333
361
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
334
362
|
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
335
363
|
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -349,10 +377,13 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
349
377
|
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
350
378
|
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
351
379
|
licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
380
|
+
contact: _zod2.default.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
|
|
352
381
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
353
382
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
354
383
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
355
384
|
bot: WorkspaceBotConfigSchema,
|
|
385
|
+
release: WorkspaceReleaseConfigSchema,
|
|
386
|
+
account: WorkspaceAccountConfigSchema,
|
|
356
387
|
mode: _zod2.default.enum([
|
|
357
388
|
"development",
|
|
358
389
|
"staging",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkINX6NBKWjs = require('./chunk-INX6NBKW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -30,7 +30,7 @@ function analyze() {
|
|
|
30
30
|
renderChunk(source, chunk) {
|
|
31
31
|
const sourceBytes = formatBytes(source.length);
|
|
32
32
|
const fileName = chunk.fileName;
|
|
33
|
-
|
|
33
|
+
_chunkINX6NBKWjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -238,8 +238,23 @@ var LogLevelLabel = {
|
|
|
238
238
|
// ../config/src/constants.ts
|
|
239
239
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
240
240
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
241
|
+
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
241
242
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
242
243
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
244
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
245
|
+
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
246
|
+
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
247
|
+
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
248
|
+
var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
249
|
+
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
250
|
+
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
251
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
252
|
+
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.
|
|
253
|
+
|
|
254
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
255
|
+
|
|
256
|
+
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!
|
|
257
|
+
`;
|
|
243
258
|
|
|
244
259
|
// ../config/src/schema.ts
|
|
245
260
|
import z from "zod";
|
|
@@ -330,6 +345,19 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
330
345
|
name: z.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
331
346
|
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
332
347
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
348
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
349
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
350
|
+
header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
351
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
352
|
+
}).describe("The workspace's release config used during the release process");
|
|
353
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
354
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
355
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
356
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
357
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
358
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
359
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
360
|
+
}).describe("The workspace's account config used to store various social media links");
|
|
333
361
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
334
362
|
cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
335
363
|
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -349,10 +377,13 @@ var StormConfigSchema = z.object({
|
|
|
349
377
|
homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
350
378
|
docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
351
379
|
licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
380
|
+
contact: z.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
|
|
352
381
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
353
382
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
354
383
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
355
384
|
bot: WorkspaceBotConfigSchema,
|
|
385
|
+
release: WorkspaceReleaseConfigSchema,
|
|
386
|
+
account: WorkspaceAccountConfigSchema,
|
|
356
387
|
mode: z.enum([
|
|
357
388
|
"development",
|
|
358
389
|
"staging",
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
joinPaths,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O4QVCGZS.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-O6YSETKJ.mjs";
|
|
@@ -106,12 +106,26 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
106
106
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
107
107
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
108
108
|
},
|
|
109
|
+
release: {
|
|
110
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
111
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
112
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
113
|
+
},
|
|
114
|
+
account: {
|
|
115
|
+
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
116
|
+
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
117
|
+
telegram: process.env[`${prefix}ACCOUNT_TELEGRAM`] || void 0,
|
|
118
|
+
slack: process.env[`${prefix}ACCOUNT_SLACK`] || void 0,
|
|
119
|
+
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
120
|
+
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
121
|
+
},
|
|
109
122
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
110
123
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
111
124
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
112
125
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
113
126
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
114
127
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
128
|
+
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
115
129
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
116
130
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
117
131
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -270,6 +284,31 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
270
284
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
271
285
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
272
286
|
}
|
|
287
|
+
if (config.release) {
|
|
288
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
289
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
290
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
291
|
+
}
|
|
292
|
+
if (config.account) {
|
|
293
|
+
if (config.account.twitter) {
|
|
294
|
+
process.env[`${prefix}ACCOUNT_TWITTER`] = config.account.twitter;
|
|
295
|
+
}
|
|
296
|
+
if (config.account.discord) {
|
|
297
|
+
process.env[`${prefix}ACCOUNT_DISCORD`] = config.account.discord;
|
|
298
|
+
}
|
|
299
|
+
if (config.account.telegram) {
|
|
300
|
+
process.env[`${prefix}ACCOUNT_TELEGRAM`] = config.account.telegram;
|
|
301
|
+
}
|
|
302
|
+
if (config.account.slack) {
|
|
303
|
+
process.env[`${prefix}ACCOUNT_SLACK`] = config.account.slack;
|
|
304
|
+
}
|
|
305
|
+
if (config.account.medium) {
|
|
306
|
+
process.env[`${prefix}ACCOUNT_MEDIUM`] = config.account.medium;
|
|
307
|
+
}
|
|
308
|
+
if (config.account.github) {
|
|
309
|
+
process.env[`${prefix}ACCOUNT_GITHUB`] = config.account.github;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
273
312
|
if (config.organization) {
|
|
274
313
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
275
314
|
}
|
|
@@ -288,6 +327,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
288
327
|
if (config.licensing) {
|
|
289
328
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
290
329
|
}
|
|
330
|
+
if (config.contact) {
|
|
331
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
332
|
+
}
|
|
291
333
|
if (config.timezone) {
|
|
292
334
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
293
335
|
process.env.TZ = config.timezone;
|
|
@@ -386,7 +428,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
386
428
|
}
|
|
387
429
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
388
430
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
389
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
431
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
432
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
433
|
+
}
|
|
390
434
|
}
|
|
391
435
|
}, "setConfigEnv");
|
|
392
436
|
var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|