@storm-software/build-tools 0.143.18 → 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-MBDFPBDC.mjs → chunk-3WFCBFRM.mjs} +1 -1
- package/dist/{chunk-HD2W64SX.mjs → chunk-B5EAYIOT.mjs} +1 -1
- package/dist/{chunk-D2774IWJ.js → chunk-H64CZVJJ.js} +5 -5
- package/dist/{chunk-MZM33AA7.js → chunk-INGOZELS.js} +8 -8
- package/dist/{chunk-WJHZ4GHU.js → chunk-INX6NBKW.js} +21 -4
- package/dist/{chunk-VL65QJVX.js → chunk-L6FYW3ID.js} +2 -2
- package/dist/{chunk-DVDSUEQJ.mjs → chunk-MCFSUUJG.mjs} +1 -1
- package/dist/{chunk-WNCNUNY4.mjs → chunk-NTSC46IQ.mjs} +1 -1
- package/dist/{chunk-ATN46F4O.mjs → chunk-O4QVCGZS.mjs} +21 -4
- package/dist/{chunk-7VVGHAK3.mjs → chunk-PUP2YY6V.mjs} +33 -1
- package/dist/{chunk-DJEVAWGZ.js → chunk-SX4FMBR4.js} +74 -42
- package/dist/{chunk-QJDRCNMR.js → chunk-XCPCKIUW.js} +8 -8
- package/dist/{chunk-47N4BMGR.js → chunk-XKPVTPMQ.js} +10 -10
- package/dist/{chunk-4G2TMZVB.mjs → chunk-Z424F4SY.mjs} +1 -1
- 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-BngOPPZH.d.ts → types-BOD8Yftb.d.mts} +41 -0
- package/dist/{types-BngOPPZH.d.mts → types-BOD8Yftb.d.ts} +41 -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 +1 -1
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,15 +238,22 @@ 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";
|
|
243
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/
|
|
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";
|
|
244
251
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
245
|
-
|
|
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.
|
|
246
253
|
|
|
247
|
-
Join us on [Discord](
|
|
254
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
248
255
|
|
|
249
|
-
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](
|
|
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!
|
|
250
257
|
`;
|
|
251
258
|
|
|
252
259
|
// ../config/src/schema.ts
|
|
@@ -343,6 +350,14 @@ var WorkspaceReleaseConfigSchema = _zod2.default.object({
|
|
|
343
350
|
header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
344
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")
|
|
345
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");
|
|
346
361
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
347
362
|
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
348
363
|
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -362,11 +377,13 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
362
377
|
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
363
378
|
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
364
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"),
|
|
365
381
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
366
382
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
367
383
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
368
384
|
bot: WorkspaceBotConfigSchema,
|
|
369
385
|
release: WorkspaceReleaseConfigSchema,
|
|
386
|
+
account: WorkspaceAccountConfigSchema,
|
|
370
387
|
mode: _zod2.default.enum([
|
|
371
388
|
"development",
|
|
372
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,15 +238,22 @@ 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";
|
|
243
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/
|
|
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";
|
|
244
251
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
245
|
-
|
|
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.
|
|
246
253
|
|
|
247
|
-
Join us on [Discord](
|
|
254
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
248
255
|
|
|
249
|
-
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](
|
|
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!
|
|
250
257
|
`;
|
|
251
258
|
|
|
252
259
|
// ../config/src/schema.ts
|
|
@@ -343,6 +350,14 @@ var WorkspaceReleaseConfigSchema = z.object({
|
|
|
343
350
|
header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
344
351
|
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
345
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");
|
|
346
361
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
347
362
|
cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
348
363
|
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -362,11 +377,13 @@ var StormConfigSchema = z.object({
|
|
|
362
377
|
homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
363
378
|
docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
364
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"),
|
|
365
381
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
366
382
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
367
383
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
368
384
|
bot: WorkspaceBotConfigSchema,
|
|
369
385
|
release: WorkspaceReleaseConfigSchema,
|
|
386
|
+
account: WorkspaceAccountConfigSchema,
|
|
370
387
|
mode: z.enum([
|
|
371
388
|
"development",
|
|
372
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";
|
|
@@ -111,12 +111,21 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
111
111
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
112
112
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
113
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
|
+
},
|
|
114
122
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
115
123
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
116
124
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
117
125
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
118
126
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
119
127
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
128
|
+
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
120
129
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
121
130
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
122
131
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -280,6 +289,26 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
280
289
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
281
290
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
282
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
|
+
}
|
|
283
312
|
if (config.organization) {
|
|
284
313
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
285
314
|
}
|
|
@@ -298,6 +327,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
298
327
|
if (config.licensing) {
|
|
299
328
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
300
329
|
}
|
|
330
|
+
if (config.contact) {
|
|
331
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
332
|
+
}
|
|
301
333
|
if (config.timezone) {
|
|
302
334
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
303
335
|
process.env.TZ = config.timezone;
|