@storm-software/projen 0.15.7 → 0.15.9
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-NYGDQVRP.mjs → chunk-3Y4CAAKD.mjs} +1 -1
- package/dist/{chunk-XUEK3ZVF.mjs → chunk-54OIA56I.mjs} +70 -20
- package/dist/{chunk-6Q5BZMKY.mjs → chunk-6YIKZSMZ.mjs} +1 -1
- package/dist/{chunk-L6JCOSGQ.js → chunk-DXCHFSHP.js} +292 -242
- package/dist/chunk-LZV7UWZY.js +6 -0
- package/dist/{chunk-NZ6H7M6Y.js → chunk-OFRLB5Y5.js} +3 -3
- package/dist/{chunk-VVOOG5R3.js → chunk-RZYNLMJ5.js} +2 -2
- package/dist/{chunk-UEPYPO6U.mjs → chunk-UQC7DEDF.mjs} +2 -2
- package/dist/{chunk-MQ5Q4ABA.mjs → chunk-VAMYC2GR.mjs} +1 -1
- package/dist/{chunk-BPUBJWVF.js → chunk-VBX7XODB.js} +2 -2
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +5 -5
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +4 -4
- package/dist/src/components/nx-workspace.mjs +2 -2
- package/dist/src/generators/init/generator.js +4 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.js +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-QWBZK22S.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.15.8](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.8) (2025-05-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
|
|
11
|
+
## [0.15.7](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.7) (2025-05-13)
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Regenerate README markdown files
|
|
16
|
+
|
|
5
17
|
## [0.15.6](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.6) (2025-05-09)
|
|
6
18
|
|
|
7
19
|
### 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
|
-
[](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 -->
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths,
|
|
3
3
|
joinPaths
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6YIKZSMZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__dirname,
|
|
7
7
|
__require,
|
|
8
8
|
init_esm_shims
|
|
9
|
-
} from "./chunk-
|
|
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://
|
|
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://
|
|
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().
|
|
255
|
-
docs: z.string().trim().url().
|
|
256
|
-
licensing: z.string().trim().url().
|
|
257
|
-
contact: z.string().trim().url().
|
|
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
|
-
|
|
461
|
+
async function getPackageJsonConfig(root) {
|
|
459
462
|
let license = STORM_DEFAULT_LICENSE;
|
|
460
|
-
let 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
|
-
|
|
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
|
|
1419
|
-
result =
|
|
1420
|
-
|
|
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 {
|
|
@@ -2322,6 +2364,14 @@ async function resolveContext(userOptions) {
|
|
|
2322
2364
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
2323
2365
|
};
|
|
2324
2366
|
context.options.esbuildPlugins = [...context.options.esbuildPlugins ?? []];
|
|
2367
|
+
if (context.options.verbose) {
|
|
2368
|
+
writeDebug(
|
|
2369
|
+
` \u2699\uFE0F Build options resolved:
|
|
2370
|
+
|
|
2371
|
+
${formatLogMessage(context.options)}`,
|
|
2372
|
+
workspaceConfig
|
|
2373
|
+
);
|
|
2374
|
+
}
|
|
2325
2375
|
return context;
|
|
2326
2376
|
}
|
|
2327
2377
|
|
|
@@ -4318,7 +4368,7 @@ var typescript_build_executor_untyped_default = defineUntypedSchema4({
|
|
|
4318
4368
|
]
|
|
4319
4369
|
},
|
|
4320
4370
|
$default: "esnext",
|
|
4321
|
-
$resolve: (val = "esnext") => val.toLowerCase()
|
|
4371
|
+
$resolve: (val = "esnext") => typeof val === "string" ? val.toLowerCase() : val
|
|
4322
4372
|
},
|
|
4323
4373
|
format: {
|
|
4324
4374
|
$schema: {
|