@storm-software/projen 0.15.6 → 0.15.8

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 CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  # Changelog for Storm Ops - Projen
4
4
 
5
+ ## [0.15.7](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.7) (2025-05-13)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+
11
+ ## [0.15.6](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.6) (2025-05-09)
12
+
13
+ ### Miscellaneous
14
+
15
+ - **monorepo:** Regenerate README markdown files
16
+ - **monorepo:** Upgrade Nx packages to v21.0.3
17
+ - **monorepo:** Regenerate README markdown files
18
+
5
19
  ## [0.15.5](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.5) (2025-05-08)
6
20
 
7
21
  ### Miscellaneous
package/README.md CHANGED
@@ -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
- [![Version](https://img.shields.io/badge/version-0.15.5-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.15.7-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __commonJS,
3
3
  init_esm_shims
4
- } from "./chunk-UEPYPO6U.mjs";
4
+ } from "./chunk-UQC7DEDF.mjs";
5
5
 
6
6
  // src/components/index.ts
7
7
  var require_components = __commonJS({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-UEPYPO6U.mjs";
3
+ } from "./chunk-UQC7DEDF.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/correct-paths.ts
6
6
  init_esm_shims();
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  correctPaths,
3
3
  joinPaths
4
- } from "./chunk-6Q5BZMKY.mjs";
4
+ } from "./chunk-6YIKZSMZ.mjs";
5
5
  import {
6
6
  __dirname,
7
7
  __require,
8
8
  init_esm_shims
9
- } from "./chunk-UEPYPO6U.mjs";
9
+ } from "./chunk-UQC7DEDF.mjs";
10
10
 
11
11
  // src/generators/init/generator.ts
12
12
  init_esm_shims();
@@ -70,10 +70,10 @@ init_esm_shims();
70
70
 
71
71
  // ../config/src/constants.ts
72
72
  init_esm_shims();
73
- var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
73
+ var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
74
74
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
75
75
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
76
- var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
76
+ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
77
77
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
78
78
  var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
79
79
  var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
@@ -251,10 +251,13 @@ var stormWorkspaceConfigSchema = z.object({
251
251
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
252
252
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
253
253
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
254
- homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
255
- docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
256
- licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
257
- contact: z.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
254
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
255
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
256
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
257
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
258
+ support: z.string().trim().url().optional().describe(
259
+ "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
260
+ ),
258
261
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
259
262
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
260
263
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
@@ -455,9 +458,10 @@ var DEFAULT_COLOR_CONFIG = {
455
458
  negative: "#dc2626"
456
459
  }
457
460
  };
458
- var getDefaultConfig = async (root) => {
461
+ async function getPackageJsonConfig(root) {
459
462
  let license = STORM_DEFAULT_LICENSE;
460
- let homepage = STORM_DEFAULT_HOMEPAGE;
463
+ let homepage = void 0;
464
+ let support = void 0;
461
465
  let name = void 0;
462
466
  let namespace = void 0;
463
467
  let repository = void 0;
@@ -488,6 +492,13 @@ var getDefaultConfig = async (root) => {
488
492
  if (packageJson.homepage) {
489
493
  homepage = packageJson.homepage;
490
494
  }
495
+ if (packageJson.bugs) {
496
+ if (typeof packageJson.bugs === "string") {
497
+ support = packageJson.bugs;
498
+ } else if (packageJson.bugs.url) {
499
+ support = packageJson.bugs.url;
500
+ }
501
+ }
491
502
  }
492
503
  }
493
504
  return {
@@ -497,13 +508,38 @@ var getDefaultConfig = async (root) => {
497
508
  repository,
498
509
  license,
499
510
  homepage,
500
- docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
501
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
502
- error: {
503
- url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
504
- }
511
+ support
505
512
  };
506
- };
513
+ }
514
+ function applyDefaultConfig(config) {
515
+ if (!config.support && config.contact) {
516
+ config.support = config.contact;
517
+ }
518
+ if (!config.contact && config.support) {
519
+ config.contact = config.support;
520
+ }
521
+ if (config.homepage) {
522
+ if (!config.docs) {
523
+ config.docs = `${config.homepage}/docs`;
524
+ }
525
+ if (!config.license) {
526
+ config.license = `${config.homepage}/license`;
527
+ }
528
+ if (!config.support) {
529
+ config.support = `${config.homepage}/support`;
530
+ }
531
+ if (!config.contact) {
532
+ config.contact = `${config.homepage}/contact`;
533
+ }
534
+ if (!config.error?.codesFile || !config?.error?.url) {
535
+ config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
536
+ if (config.homepage) {
537
+ config.error.url ??= `${config.homepage}/errors`;
538
+ }
539
+ }
540
+ }
541
+ return config;
542
+ }
507
543
 
508
544
  // ../config-tools/src/logger/chalk.ts
509
545
  init_esm_shims();
@@ -947,6 +983,7 @@ var getConfigEnv = () => {
947
983
  docs: process.env[`${prefix}DOCS`] || void 0,
948
984
  licensing: process.env[`${prefix}LICENSING`] || void 0,
949
985
  contact: process.env[`${prefix}CONTACT`] || void 0,
986
+ support: process.env[`${prefix}SUPPORT`] || void 0,
950
987
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
951
988
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
952
989
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
@@ -1166,6 +1203,9 @@ var setConfigEnv = (config) => {
1166
1203
  if (config.contact) {
1167
1204
  process.env[`${prefix}CONTACT`] = config.contact;
1168
1205
  }
1206
+ if (config.support) {
1207
+ process.env[`${prefix}SUPPORT`] = config.support;
1208
+ }
1169
1209
  if (config.timezone) {
1170
1210
  process.env[`${prefix}TIMEZONE`] = config.timezone;
1171
1211
  process.env.TZ = config.timezone;
@@ -1415,9 +1455,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
1415
1455
  return void 0;
1416
1456
  }
1417
1457
  }
1418
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1419
- result = await stormWorkspaceConfigSchema.parseAsync(
1420
- defu2(configEnv, configFile, defaultConfig)
1458
+ const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1459
+ result = applyDefaultConfig(
1460
+ await stormWorkspaceConfigSchema.parseAsync(
1461
+ defu2(configEnv, configFile, defaultConfig)
1462
+ )
1421
1463
  );
1422
1464
  result.workspaceRoot ??= _workspaceRoot;
1423
1465
  } else {
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunkRZYNLMJ5js = require('./chunk-RZYNLMJ5.js');
4
+
5
+ // generators.ts
6
+ _chunkRZYNLMJ5js.init_cjs_shims.call(void 0, );