@storm-software/terraform-tools 0.64.4 → 0.65.1
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 +20 -0
- package/README.md +1 -1
- package/dist/{chunk-ZSVUMNQ4.js → chunk-IR7HW7YG.js} +226 -118
- package/dist/{chunk-QFSU34UE.mjs → chunk-NMQP6WEB.mjs} +1 -1
- package/dist/{chunk-R4C74FTE.mjs → chunk-QFNYSNEH.mjs} +227 -119
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/terraform-executor.mjs +1 -1
- package/dist/src/executors/apply/executor.mjs +1 -1
- package/dist/src/executors/destroy/executor.mjs +1 -1
- package/dist/src/executors/output/executor.mjs +1 -1
- package/dist/src/executors/plan/executor.mjs +1 -1
- package/dist/src/generators/init/init.js +2 -2
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.65.0](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.65.0) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **conventional-changelog:** Added `minimal` and `monorepo` configs to the
|
|
10
|
+
package
|
|
11
|
+
([4b4809048](https://github.com/storm-software/storm-ops/commit/4b4809048))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Update workspace package links
|
|
16
|
+
([18136e9ad](https://github.com/storm-software/storm-ops/commit/18136e9ad))
|
|
17
|
+
|
|
18
|
+
## [0.64.4](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.64.4) (2025-09-18)
|
|
19
|
+
|
|
20
|
+
### Miscellaneous
|
|
21
|
+
|
|
22
|
+
- **monorepo:** Update workspace package links
|
|
23
|
+
([4ecf1952d](https://github.com/storm-software/storm-ops/commit/4ecf1952d))
|
|
24
|
+
|
|
5
25
|
## [0.64.3](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.64.3) (2025-09-18)
|
|
6
26
|
|
|
7
27
|
### 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 -->
|
|
@@ -281,7 +281,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
|
|
|
281
281
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
282
282
|
var _glob = require('glob');
|
|
283
283
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
284
|
-
var copyAssets = async (
|
|
284
|
+
var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
285
285
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
286
286
|
pendingAssets.push({
|
|
287
287
|
input: projectRoot,
|
|
@@ -310,29 +310,29 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
310
310
|
_chunkZPLASCRLjs.writeTrace.call(void 0,
|
|
311
311
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
312
312
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkZPLASCRLjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
313
|
-
|
|
313
|
+
config5
|
|
314
314
|
);
|
|
315
315
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
316
316
|
projectDir: projectRoot,
|
|
317
|
-
rootDir:
|
|
317
|
+
rootDir: config5.workspaceRoot,
|
|
318
318
|
outputDir: outputPath,
|
|
319
319
|
assets: pendingAssets
|
|
320
320
|
});
|
|
321
321
|
await assetHandler.processAllAssetsOnce();
|
|
322
|
-
_chunkZPLASCRLjs.writeTrace.call(void 0, "Completed copying assets to the output directory",
|
|
322
|
+
_chunkZPLASCRLjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config5);
|
|
323
323
|
if (includeSrc === true) {
|
|
324
324
|
_chunkZPLASCRLjs.writeDebug.call(void 0,
|
|
325
325
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
326
326
|
outputPath,
|
|
327
327
|
"src"
|
|
328
328
|
)}`,
|
|
329
|
-
|
|
329
|
+
config5
|
|
330
330
|
);
|
|
331
331
|
const files = await _glob.glob.call(void 0, [
|
|
332
|
-
_chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
333
|
-
_chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
334
|
-
_chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
335
|
-
_chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
332
|
+
_chunkZPLASCRLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
333
|
+
_chunkZPLASCRLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
334
|
+
_chunkZPLASCRLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.js"),
|
|
335
|
+
_chunkZPLASCRLjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
336
336
|
]);
|
|
337
337
|
await Promise.allSettled(
|
|
338
338
|
files.map(
|
|
@@ -910,8 +910,8 @@ async function build(options) {
|
|
|
910
910
|
}
|
|
911
911
|
|
|
912
912
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
913
|
-
async function esbuildExecutorFn(options, context,
|
|
914
|
-
_chunkZPLASCRLjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace",
|
|
913
|
+
async function esbuildExecutorFn(options, context, config5) {
|
|
914
|
+
_chunkZPLASCRLjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config5);
|
|
915
915
|
if (!_optionalChain([context, 'access', _44 => _44.projectsConfigurations, 'optionalAccess', _45 => _45.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _46 => _46.projectsConfigurations, 'access', _47 => _47.projects, 'access', _48 => _48[context.projectName], 'optionalAccess', _49 => _49.root])) {
|
|
916
916
|
throw new Error(
|
|
917
917
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1056,13 +1056,13 @@ var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDe
|
|
|
1056
1056
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
1057
1057
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1058
1058
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1059
|
-
async function sizeLimitExecutorFn(options, context,
|
|
1059
|
+
async function sizeLimitExecutorFn(options, context, config5) {
|
|
1060
1060
|
if (!_optionalChain([context, 'optionalAccess', _58 => _58.projectName]) || !_optionalChain([context, 'access', _59 => _59.projectsConfigurations, 'optionalAccess', _60 => _60.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1061
1061
|
throw new Error(
|
|
1062
1062
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
|
-
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`,
|
|
1065
|
+
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config5);
|
|
1066
1066
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1067
1067
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'access', _63 => _63[context.projectName], 'optionalAccess', _64 => _64.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1068
1068
|
_nullishCoalesce(_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'access', _67 => _67[context.projectName], 'optionalAccess', _68 => _68.root]), () => ( "./")),
|
|
@@ -1071,7 +1071,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
1071
1071
|
}).then((result) => {
|
|
1072
1072
|
_chunkZPLASCRLjs.writeInfo.call(void 0,
|
|
1073
1073
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1074
|
-
|
|
1074
|
+
config5
|
|
1075
1075
|
);
|
|
1076
1076
|
});
|
|
1077
1077
|
return {
|
|
@@ -1094,14 +1094,14 @@ var executor_default7 = _chunkZPLASCRLjs.withRunExecutor.call(void 0,
|
|
|
1094
1094
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
1095
1095
|
var _fsextra = require('fs-extra');
|
|
1096
1096
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1097
|
-
async function typiaExecutorFn(options, _,
|
|
1097
|
+
async function typiaExecutorFn(options, _, config5) {
|
|
1098
1098
|
if (options.clean !== false) {
|
|
1099
|
-
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`,
|
|
1099
|
+
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config5);
|
|
1100
1100
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1101
1101
|
}
|
|
1102
1102
|
await Promise.all(
|
|
1103
1103
|
options.entry.map((entry) => {
|
|
1104
|
-
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`,
|
|
1104
|
+
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config5);
|
|
1105
1105
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1106
1106
|
input: entry,
|
|
1107
1107
|
output: options.outputPath,
|
|
@@ -1133,8 +1133,8 @@ var executor_default8 = _chunkZPLASCRLjs.withRunExecutor.call(void 0,
|
|
|
1133
1133
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
1134
1134
|
|
|
1135
1135
|
var _jiti = require('jiti');
|
|
1136
|
-
async function unbuildExecutorFn(options, context,
|
|
1137
|
-
_chunkZPLASCRLjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace",
|
|
1136
|
+
async function unbuildExecutorFn(options, context, config5) {
|
|
1137
|
+
_chunkZPLASCRLjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config5);
|
|
1138
1138
|
if (!_optionalChain([context, 'access', _69 => _69.projectsConfigurations, 'optionalAccess', _70 => _70.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1139
1139
|
throw new Error(
|
|
1140
1140
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1150,10 +1150,10 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1150
1150
|
"The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
|
|
1151
1151
|
);
|
|
1152
1152
|
}
|
|
1153
|
-
const jiti = _jiti.createJiti.call(void 0,
|
|
1154
|
-
fsCache:
|
|
1155
|
-
|
|
1156
|
-
|
|
1153
|
+
const jiti = _jiti.createJiti.call(void 0, config5.workspaceRoot, {
|
|
1154
|
+
fsCache: config5.skipCache ? false : _chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
1155
|
+
config5.workspaceRoot,
|
|
1156
|
+
config5.directories.cache || "node_modules/.cache/storm",
|
|
1157
1157
|
"jiti"
|
|
1158
1158
|
),
|
|
1159
1159
|
interopDefault: true
|
|
@@ -1173,9 +1173,9 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1173
1173
|
{
|
|
1174
1174
|
stubOptions: {
|
|
1175
1175
|
jiti: {
|
|
1176
|
-
fsCache:
|
|
1177
|
-
|
|
1178
|
-
|
|
1176
|
+
fsCache: config5.skipCache ? false : _chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
1177
|
+
config5.workspaceRoot,
|
|
1178
|
+
config5.directories.cache || "node_modules/.cache/storm",
|
|
1179
1179
|
"jiti"
|
|
1180
1180
|
)
|
|
1181
1181
|
}
|
|
@@ -1208,7 +1208,7 @@ var executor_default9 = _chunkZPLASCRLjs.withRunExecutor.call(void 0,
|
|
|
1208
1208
|
{
|
|
1209
1209
|
skipReadingConfig: false,
|
|
1210
1210
|
hooks: {
|
|
1211
|
-
applyDefaultOptions: async (options,
|
|
1211
|
+
applyDefaultOptions: async (options, config5) => {
|
|
1212
1212
|
options.debug ??= false;
|
|
1213
1213
|
options.treeShaking ??= true;
|
|
1214
1214
|
options.buildOnly ??= false;
|
|
@@ -1235,46 +1235,46 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1235
1235
|
}) => async (tree, _options) => {
|
|
1236
1236
|
const stopwatch = _chunkZPLASCRLjs.getStopwatch.call(void 0, name);
|
|
1237
1237
|
let options = _options;
|
|
1238
|
-
let
|
|
1238
|
+
let config5;
|
|
1239
1239
|
try {
|
|
1240
1240
|
_chunkZPLASCRLjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1241
1241
|
|
|
1242
|
-
`,
|
|
1242
|
+
`, config5);
|
|
1243
1243
|
const workspaceRoot3 = _chunkZPLASCRLjs.findWorkspaceRoot.call(void 0, );
|
|
1244
1244
|
if (!generatorOptions.skipReadingConfig) {
|
|
1245
1245
|
_chunkZPLASCRLjs.writeDebug.call(void 0,
|
|
1246
1246
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1247
1247
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
1248
|
-
|
|
1248
|
+
config5
|
|
1249
1249
|
);
|
|
1250
|
-
|
|
1250
|
+
config5 = await _chunkZPLASCRLjs.getConfig.call(void 0, workspaceRoot3);
|
|
1251
1251
|
}
|
|
1252
1252
|
if (_optionalChain([generatorOptions, 'optionalAccess', _71 => _71.hooks, 'optionalAccess', _72 => _72.applyDefaultOptions])) {
|
|
1253
|
-
_chunkZPLASCRLjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...",
|
|
1253
|
+
_chunkZPLASCRLjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config5);
|
|
1254
1254
|
options = await Promise.resolve(
|
|
1255
|
-
generatorOptions.hooks.applyDefaultOptions(options,
|
|
1255
|
+
generatorOptions.hooks.applyDefaultOptions(options, config5)
|
|
1256
1256
|
);
|
|
1257
|
-
_chunkZPLASCRLjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook",
|
|
1257
|
+
_chunkZPLASCRLjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config5);
|
|
1258
1258
|
}
|
|
1259
1259
|
_chunkZPLASCRLjs.writeTrace.call(void 0,
|
|
1260
1260
|
`Generator schema options \u2699\uFE0F
|
|
1261
1261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1262
|
-
|
|
1262
|
+
config5
|
|
1263
1263
|
);
|
|
1264
1264
|
const tokenized = await _chunkZPLASCRLjs.applyWorkspaceTokens.call(void 0,
|
|
1265
1265
|
options,
|
|
1266
|
-
{ workspaceRoot: tree.root, config },
|
|
1266
|
+
{ workspaceRoot: tree.root, config: config5 },
|
|
1267
1267
|
_chunkZPLASCRLjs.applyWorkspaceBaseTokens
|
|
1268
1268
|
);
|
|
1269
1269
|
if (_optionalChain([generatorOptions, 'optionalAccess', _73 => _73.hooks, 'optionalAccess', _74 => _74.preProcess])) {
|
|
1270
|
-
_chunkZPLASCRLjs.writeDebug.call(void 0, "Running the preProcess hook...",
|
|
1270
|
+
_chunkZPLASCRLjs.writeDebug.call(void 0, "Running the preProcess hook...", config5);
|
|
1271
1271
|
await Promise.resolve(
|
|
1272
|
-
generatorOptions.hooks.preProcess(tokenized,
|
|
1272
|
+
generatorOptions.hooks.preProcess(tokenized, config5)
|
|
1273
1273
|
);
|
|
1274
|
-
_chunkZPLASCRLjs.writeDebug.call(void 0, "Completed the preProcess hook",
|
|
1274
|
+
_chunkZPLASCRLjs.writeDebug.call(void 0, "Completed the preProcess hook", config5);
|
|
1275
1275
|
}
|
|
1276
1276
|
const result = await Promise.resolve(
|
|
1277
|
-
generatorFn(tree, tokenized,
|
|
1277
|
+
generatorFn(tree, tokenized, config5)
|
|
1278
1278
|
);
|
|
1279
1279
|
if (result) {
|
|
1280
1280
|
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _75 => _75.error, 'optionalAccess', _76 => _76.message]) && typeof _optionalChain([result, 'optionalAccess', _77 => _77.error, 'optionalAccess', _78 => _78.message]) === "string" && _optionalChain([result, 'optionalAccess', _79 => _79.error, 'optionalAccess', _80 => _80.name]) && typeof _optionalChain([result, 'optionalAccess', _81 => _81.error, 'optionalAccess', _82 => _82.name]) === "string") {
|
|
@@ -1286,25 +1286,25 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
if (_optionalChain([generatorOptions, 'optionalAccess', _84 => _84.hooks, 'optionalAccess', _85 => _85.postProcess])) {
|
|
1289
|
-
_chunkZPLASCRLjs.writeDebug.call(void 0, "Running the postProcess hook...",
|
|
1290
|
-
await Promise.resolve(generatorOptions.hooks.postProcess(
|
|
1291
|
-
_chunkZPLASCRLjs.writeDebug.call(void 0, "Completed the postProcess hook",
|
|
1289
|
+
_chunkZPLASCRLjs.writeDebug.call(void 0, "Running the postProcess hook...", config5);
|
|
1290
|
+
await Promise.resolve(generatorOptions.hooks.postProcess(config5));
|
|
1291
|
+
_chunkZPLASCRLjs.writeDebug.call(void 0, "Completed the postProcess hook", config5);
|
|
1292
1292
|
}
|
|
1293
1293
|
return () => {
|
|
1294
1294
|
_chunkZPLASCRLjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1295
|
-
`,
|
|
1295
|
+
`, config5);
|
|
1296
1296
|
};
|
|
1297
1297
|
} catch (error) {
|
|
1298
1298
|
return () => {
|
|
1299
1299
|
_chunkZPLASCRLjs.writeFatal.call(void 0,
|
|
1300
1300
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1301
|
-
|
|
1301
|
+
config5
|
|
1302
1302
|
);
|
|
1303
1303
|
_chunkZPLASCRLjs.writeError.call(void 0,
|
|
1304
1304
|
`An exception was thrown in the generator's process
|
|
1305
1305
|
- Details: ${error.message}
|
|
1306
1306
|
- Stacktrace: ${error.stack}`,
|
|
1307
|
-
|
|
1307
|
+
config5
|
|
1308
1308
|
);
|
|
1309
1309
|
};
|
|
1310
1310
|
} finally {
|
|
@@ -1340,7 +1340,7 @@ var nodeVersion = "20.11.0";
|
|
|
1340
1340
|
var pnpmVersion = "8.10.2";
|
|
1341
1341
|
|
|
1342
1342
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
1343
|
-
async function typeScriptLibraryGeneratorFn(tree, options,
|
|
1343
|
+
async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
1344
1344
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
1345
1345
|
const tasks = [];
|
|
1346
1346
|
tasks.push(
|
|
@@ -1417,7 +1417,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1417
1417
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
1418
1418
|
let repository = {
|
|
1419
1419
|
type: "github",
|
|
1420
|
-
url: _optionalChain([
|
|
1420
|
+
url: _optionalChain([config5, 'optionalAccess', _86 => _86.repository]) || `https://github.com/${(typeof _optionalChain([config5, 'optionalAccess', _87 => _87.organization]) === "string" ? _optionalChain([config5, 'optionalAccess', _88 => _88.organization]) : _optionalChain([config5, 'optionalAccess', _89 => _89.organization, 'optionalAccess', _90 => _90.name])) || "storm-software"}/${_optionalChain([config5, 'optionalAccess', _91 => _91.namespace]) || _optionalChain([config5, 'optionalAccess', _92 => _92.name]) || "repository"}.git`
|
|
1421
1421
|
};
|
|
1422
1422
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
1423
1423
|
if (tree.exists("package.json")) {
|
|
@@ -1563,10 +1563,10 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
_devkit.writeJson.call(void 0, tree, _chunkZPLASCRLjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
1565
1565
|
}
|
|
1566
|
-
async function normalizeOptions(tree, options,
|
|
1566
|
+
async function normalizeOptions(tree, options, config5) {
|
|
1567
1567
|
let importPath = options.importPath;
|
|
1568
|
-
if (!importPath && _optionalChain([
|
|
1569
|
-
importPath = `@${_optionalChain([
|
|
1568
|
+
if (!importPath && _optionalChain([config5, 'optionalAccess', _109 => _109.namespace])) {
|
|
1569
|
+
importPath = `@${_optionalChain([config5, 'optionalAccess', _110 => _110.namespace])}/${options.name}`;
|
|
1570
1570
|
}
|
|
1571
1571
|
if (options.publishable) {
|
|
1572
1572
|
if (!importPath) {
|
|
@@ -1625,7 +1625,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
1627
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
1628
|
-
async function browserLibraryGeneratorFn(tree, schema,
|
|
1628
|
+
async function browserLibraryGeneratorFn(tree, schema, config5) {
|
|
1629
1629
|
const filesDir = _chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
1630
1630
|
__dirname,
|
|
1631
1631
|
"src",
|
|
@@ -1687,7 +1687,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
});
|
|
1690
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
1690
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
|
|
1691
1691
|
await _devkit.formatFiles.call(void 0, tree);
|
|
1692
1692
|
return null;
|
|
1693
1693
|
}
|
|
@@ -1708,14 +1708,14 @@ var generator_default = withRunGenerator(
|
|
|
1708
1708
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
1709
1709
|
|
|
1710
1710
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
1711
|
-
async function configSchemaGeneratorFn(tree, options,
|
|
1711
|
+
async function configSchemaGeneratorFn(tree, options, config5) {
|
|
1712
1712
|
_chunkZPLASCRLjs.writeInfo.call(void 0,
|
|
1713
1713
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
1714
|
-
|
|
1714
|
+
config5
|
|
1715
1715
|
);
|
|
1716
1716
|
_chunkZPLASCRLjs.writeTrace.call(void 0,
|
|
1717
1717
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
1718
|
-
|
|
1718
|
+
config5
|
|
1719
1719
|
);
|
|
1720
1720
|
const jsonSchema = z.toJSONSchema(_chunkZPLASCRLjs.workspaceConfigSchema, {
|
|
1721
1721
|
target: "draft-7",
|
|
@@ -1724,25 +1724,25 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
1724
1724
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
1725
1725
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
1726
1726
|
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
1727
|
-
_chunkZPLASCRLjs.writeTrace.call(void 0, jsonSchema,
|
|
1727
|
+
_chunkZPLASCRLjs.writeTrace.call(void 0, jsonSchema, config5);
|
|
1728
1728
|
if (!options.outputFile) {
|
|
1729
1729
|
throw new Error(
|
|
1730
1730
|
"The `outputFile` option is required. Please specify the output file path."
|
|
1731
1731
|
);
|
|
1732
1732
|
}
|
|
1733
1733
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
1734
|
-
_nullishCoalesce(_optionalChain([
|
|
1734
|
+
_nullishCoalesce(_optionalChain([config5, 'optionalAccess', _111 => _111.workspaceRoot]), () => ( _chunkZPLASCRLjs.findWorkspaceRoot.call(void 0, ))),
|
|
1735
1735
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
1736
1736
|
);
|
|
1737
1737
|
_chunkZPLASCRLjs.writeTrace.call(void 0,
|
|
1738
1738
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
1739
|
-
|
|
1739
|
+
config5
|
|
1740
1740
|
);
|
|
1741
1741
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
1742
1742
|
await _devkit.formatFiles.call(void 0, tree);
|
|
1743
1743
|
_chunkZPLASCRLjs.writeSuccess.call(void 0,
|
|
1744
1744
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
1745
|
-
|
|
1745
|
+
config5
|
|
1746
1746
|
);
|
|
1747
1747
|
return {
|
|
1748
1748
|
success: true
|
|
@@ -1795,7 +1795,7 @@ async function initGenerator(tree, schema) {
|
|
|
1795
1795
|
|
|
1796
1796
|
|
|
1797
1797
|
|
|
1798
|
-
async function neutralLibraryGeneratorFn(tree, schema,
|
|
1798
|
+
async function neutralLibraryGeneratorFn(tree, schema, config5) {
|
|
1799
1799
|
const filesDir = _chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
1800
1800
|
__dirname,
|
|
1801
1801
|
"src",
|
|
@@ -1829,7 +1829,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
1829
1829
|
buildable: options.bundler && options.bundler !== "none",
|
|
1830
1830
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
1831
1831
|
});
|
|
1832
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
1832
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
|
|
1833
1833
|
await _devkit.formatFiles.call(void 0, tree);
|
|
1834
1834
|
return null;
|
|
1835
1835
|
}
|
|
@@ -1854,7 +1854,7 @@ var generator_default3 = withRunGenerator(
|
|
|
1854
1854
|
|
|
1855
1855
|
|
|
1856
1856
|
|
|
1857
|
-
async function nodeLibraryGeneratorFn(tree, schema,
|
|
1857
|
+
async function nodeLibraryGeneratorFn(tree, schema, config5) {
|
|
1858
1858
|
const filesDir = _chunkZPLASCRLjs.joinPaths.call(void 0,
|
|
1859
1859
|
__dirname,
|
|
1860
1860
|
"src",
|
|
@@ -1890,7 +1890,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
1890
1890
|
buildable: options.bundler && options.bundler !== "none",
|
|
1891
1891
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
1892
1892
|
});
|
|
1893
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
1893
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config5);
|
|
1894
1894
|
await _devkit.formatFiles.call(void 0, tree);
|
|
1895
1895
|
return null;
|
|
1896
1896
|
}
|
|
@@ -2158,8 +2158,19 @@ var generator_default5 = withRunGenerator(
|
|
|
2158
2158
|
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
2159
2159
|
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
2160
2160
|
|
|
2161
|
-
// ../git-tools/dist/chunk-
|
|
2162
|
-
var
|
|
2161
|
+
// ../git-tools/dist/chunk-5XU2KBM6.js
|
|
2162
|
+
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
2163
|
+
skip: "press enter to skip",
|
|
2164
|
+
max: "must be %d chars at most",
|
|
2165
|
+
min: "must be %d chars at least",
|
|
2166
|
+
emptyWarning: "can not be empty",
|
|
2167
|
+
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
2168
|
+
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
2169
|
+
closedIssueMessage: "Closes: "
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2172
|
+
// ../git-tools/dist/chunk-3GGWHKRP.js
|
|
2173
|
+
var DEFAULT_COMMIT_TYPES = {
|
|
2163
2174
|
/* --- Bumps version when selected --- */
|
|
2164
2175
|
"chore": {
|
|
2165
2176
|
"description": "Other changes that don't modify src or test files",
|
|
@@ -2288,15 +2299,148 @@ var COMMIT_TYPES = {
|
|
|
2288
2299
|
}
|
|
2289
2300
|
}
|
|
2290
2301
|
};
|
|
2302
|
+
var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
|
|
2303
|
+
Object.entries(DEFAULT_COMMIT_TYPES).reduce(
|
|
2304
|
+
(ret, [key, commitType]) => {
|
|
2305
|
+
ret[key] = {
|
|
2306
|
+
...commitType.changelog,
|
|
2307
|
+
type: key,
|
|
2308
|
+
section: _optionalChain([commitType, 'access', _112 => _112.changelog, 'optionalAccess', _113 => _113.title]) || commitType.title,
|
|
2309
|
+
hidden: _optionalChain([commitType, 'access', _114 => _114.changelog, 'optionalAccess', _115 => _115.hidden])
|
|
2310
|
+
};
|
|
2311
|
+
return ret;
|
|
2312
|
+
},
|
|
2313
|
+
{}
|
|
2314
|
+
)
|
|
2315
|
+
);
|
|
2316
|
+
var CHANGELOG_COMMIT_TYPES = [
|
|
2317
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.feat,
|
|
2318
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.fix,
|
|
2319
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.chore,
|
|
2320
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.deps,
|
|
2321
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.docs,
|
|
2322
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.style,
|
|
2323
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
|
|
2324
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.perf,
|
|
2325
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.build,
|
|
2326
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.ci,
|
|
2327
|
+
CHANGELOG_COMMIT_TYPES_OBJECT.test
|
|
2328
|
+
];
|
|
2329
|
+
var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
2330
|
+
(entry) => entry.type
|
|
2331
|
+
);
|
|
2332
|
+
var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
2333
|
+
(entry) => entry.section
|
|
2334
|
+
);
|
|
2335
|
+
var changelogs = {
|
|
2336
|
+
props: {
|
|
2337
|
+
ignoreCommits: void 0,
|
|
2338
|
+
types: CHANGELOG_COMMIT_TYPES,
|
|
2339
|
+
bumpStrict: true,
|
|
2340
|
+
scope: void 0,
|
|
2341
|
+
scopeOnly: false
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
var commitlint = {
|
|
2345
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
|
|
2346
|
+
rules: {
|
|
2347
|
+
"body-leading-blank": [1, "always"],
|
|
2348
|
+
"body-max-length": [2, "always", 600],
|
|
2349
|
+
"footer-leading-blank": [1, "always"],
|
|
2350
|
+
"footer-max-line-length": [2, "always", 150],
|
|
2351
|
+
"header-max-length": [2, "always", 150],
|
|
2352
|
+
"header-trim": [2, "always"],
|
|
2353
|
+
"subject-case": [2, "always", ["sentence-case"]],
|
|
2354
|
+
"subject-empty": [2, "never"],
|
|
2355
|
+
"subject-full-stop": [2, "never", "."],
|
|
2356
|
+
"subject-max-length": [2, "always", 150],
|
|
2357
|
+
"subject-min-length": [2, "always", 3],
|
|
2358
|
+
"type-case": [2, "always", "kebab-case"],
|
|
2359
|
+
"type-empty": [2, "never"],
|
|
2360
|
+
"type-enum": [
|
|
2361
|
+
2,
|
|
2362
|
+
"always",
|
|
2363
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
2364
|
+
],
|
|
2365
|
+
"type-max-length": [2, "always", 20],
|
|
2366
|
+
"type-min-length": [2, "always", 3],
|
|
2367
|
+
"scope-empty": [2, "always"]
|
|
2368
|
+
},
|
|
2369
|
+
settings: {
|
|
2370
|
+
enableMultipleScopes: false,
|
|
2371
|
+
disableEmoji: true,
|
|
2372
|
+
breakingChangePrefix: "\u{1F4A3} ",
|
|
2373
|
+
closedIssuePrefix: "\u2705 ",
|
|
2374
|
+
format: "{type}: {emoji}{subject}"
|
|
2375
|
+
}
|
|
2376
|
+
};
|
|
2377
|
+
var config = {
|
|
2378
|
+
types: DEFAULT_COMMIT_TYPES,
|
|
2379
|
+
changelogs,
|
|
2380
|
+
commitlint
|
|
2381
|
+
};
|
|
2382
|
+
var minimal_default = config;
|
|
2383
|
+
var changelogs2 = {
|
|
2384
|
+
props: {
|
|
2385
|
+
ignoreCommits: void 0,
|
|
2386
|
+
types: CHANGELOG_COMMIT_TYPES,
|
|
2387
|
+
bumpStrict: true,
|
|
2388
|
+
scope: ["monorepo"],
|
|
2389
|
+
scopeOnly: true
|
|
2390
|
+
}
|
|
2391
|
+
};
|
|
2392
|
+
var commitlint2 = {
|
|
2393
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
|
|
2394
|
+
rules: {
|
|
2395
|
+
"body-leading-blank": [1, "always"],
|
|
2396
|
+
"body-max-length": [2, "always", 600],
|
|
2397
|
+
"footer-leading-blank": [1, "always"],
|
|
2398
|
+
"footer-max-line-length": [2, "always", 150],
|
|
2399
|
+
"header-max-length": [2, "always", 150],
|
|
2400
|
+
"header-trim": [2, "always"],
|
|
2401
|
+
"subject-case": [2, "always", ["sentence-case"]],
|
|
2402
|
+
"subject-empty": [2, "never"],
|
|
2403
|
+
"subject-full-stop": [2, "never", "."],
|
|
2404
|
+
"subject-max-length": [2, "always", 150],
|
|
2405
|
+
"subject-min-length": [2, "always", 3],
|
|
2406
|
+
"type-case": [2, "always", "kebab-case"],
|
|
2407
|
+
"type-empty": [2, "never"],
|
|
2408
|
+
"type-enum": [
|
|
2409
|
+
2,
|
|
2410
|
+
"always",
|
|
2411
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
2412
|
+
],
|
|
2413
|
+
"type-max-length": [2, "always", 20],
|
|
2414
|
+
"type-min-length": [2, "always", 3],
|
|
2415
|
+
"scope-case": [2, "always", ["kebab-case"]],
|
|
2416
|
+
"scope-empty": [2, "never"]
|
|
2417
|
+
},
|
|
2418
|
+
settings: {
|
|
2419
|
+
enableMultipleScopes: false,
|
|
2420
|
+
disableEmoji: true,
|
|
2421
|
+
breakingChangePrefix: "\u{1F4A3} ",
|
|
2422
|
+
closedIssuePrefix: "\u2705 ",
|
|
2423
|
+
format: "{type}({scope}): {emoji}{subject}"
|
|
2424
|
+
}
|
|
2425
|
+
};
|
|
2426
|
+
var config2 = {
|
|
2427
|
+
types: DEFAULT_COMMIT_TYPES,
|
|
2428
|
+
changelogs: changelogs2,
|
|
2429
|
+
commitlint: commitlint2
|
|
2430
|
+
};
|
|
2431
|
+
var monorepo_default = config2;
|
|
2432
|
+
var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
|
|
2433
|
+
|
|
2434
|
+
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
2291
2435
|
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
2292
2436
|
type: {
|
|
2293
2437
|
type: "select",
|
|
2294
2438
|
title: "Commit Type",
|
|
2295
2439
|
description: "Select the commit type that best describes your changes",
|
|
2296
|
-
enum: Object.keys(
|
|
2297
|
-
(type) =>
|
|
2440
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
2441
|
+
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
2298
2442
|
).reduce((ret, type) => {
|
|
2299
|
-
ret[type] =
|
|
2443
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
2300
2444
|
return ret;
|
|
2301
2445
|
}, {}),
|
|
2302
2446
|
defaultValue: "chore",
|
|
@@ -2345,6 +2489,14 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
|
2345
2489
|
minLength: 3
|
|
2346
2490
|
}
|
|
2347
2491
|
};
|
|
2492
|
+
var config3 = {
|
|
2493
|
+
settings: COMMIT_CONFIGS.minimal.commitlint.settings,
|
|
2494
|
+
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
2495
|
+
questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
|
|
2496
|
+
types: DEFAULT_COMMIT_TYPES
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
2348
2500
|
var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
2349
2501
|
type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
|
|
2350
2502
|
scope: {
|
|
@@ -2363,55 +2515,11 @@ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
|
2363
2515
|
isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
|
|
2364
2516
|
issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
|
|
2365
2517
|
};
|
|
2366
|
-
var
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
"header-max-length": [2, "always", 150],
|
|
2372
|
-
"header-trim": [2, "always"],
|
|
2373
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
2374
|
-
"subject-empty": [2, "never"],
|
|
2375
|
-
"subject-full-stop": [2, "never", "."],
|
|
2376
|
-
"subject-max-length": [2, "always", 150],
|
|
2377
|
-
"subject-min-length": [2, "always", 3],
|
|
2378
|
-
"type-case": [2, "always", "kebab-case"],
|
|
2379
|
-
"type-empty": [2, "never"],
|
|
2380
|
-
"type-enum": [
|
|
2381
|
-
2,
|
|
2382
|
-
"always",
|
|
2383
|
-
Object.keys(COMMIT_TYPES)
|
|
2384
|
-
],
|
|
2385
|
-
"type-max-length": [2, "always", 20],
|
|
2386
|
-
"type-min-length": [2, "always", 3],
|
|
2387
|
-
"scope-empty": 0,
|
|
2388
|
-
"scope-case": 0,
|
|
2389
|
-
"scope-enum": 0
|
|
2390
|
-
/* Disabled */
|
|
2391
|
-
};
|
|
2392
|
-
var DEFAULT_MONOREPO_COMMIT_RULES = {
|
|
2393
|
-
"body-leading-blank": [1, "always"],
|
|
2394
|
-
"body-max-length": [2, "always", 600],
|
|
2395
|
-
"footer-leading-blank": [1, "always"],
|
|
2396
|
-
"footer-max-line-length": [2, "always", 150],
|
|
2397
|
-
"header-max-length": [2, "always", 150],
|
|
2398
|
-
"header-trim": [2, "always"],
|
|
2399
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
2400
|
-
"subject-empty": [2, "never"],
|
|
2401
|
-
"subject-full-stop": [2, "never", "."],
|
|
2402
|
-
"subject-max-length": [2, "always", 150],
|
|
2403
|
-
"subject-min-length": [2, "always", 3],
|
|
2404
|
-
"type-case": [2, "always", "kebab-case"],
|
|
2405
|
-
"type-empty": [2, "never"],
|
|
2406
|
-
"type-enum": [
|
|
2407
|
-
2,
|
|
2408
|
-
"always",
|
|
2409
|
-
Object.keys(COMMIT_TYPES)
|
|
2410
|
-
],
|
|
2411
|
-
"type-max-length": [2, "always", 20],
|
|
2412
|
-
"type-min-length": [2, "always", 3],
|
|
2413
|
-
"scope-case": [2, "always", ["kebab-case"]],
|
|
2414
|
-
"scope-empty": [2, "never"]
|
|
2518
|
+
var config4 = {
|
|
2519
|
+
settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
|
|
2520
|
+
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
2521
|
+
questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
2522
|
+
types: DEFAULT_COMMIT_TYPES
|
|
2415
2523
|
};
|
|
2416
2524
|
|
|
2417
2525
|
// ../workspace-tools/src/generators/release-version/generator.ts
|