@storm-software/terraform-tools 0.66.16 → 0.66.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/CHANGELOG.md +23 -0
- package/README.md +1 -1
- package/dist/{chunk-S63BU6TG.js → chunk-3R4ZSDE2.js} +84 -468
- package/dist/{chunk-MN4TNZB7.mjs → chunk-DTPVX4ZK.mjs} +1 -1
- package/dist/{chunk-VOULBKRK.mjs → chunk-LHCZLKDU.mjs} +88 -472
- 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 +9 -9
|
@@ -108,14 +108,14 @@ function cargoCommandSync(args = "", options) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function cargoMetadata() {
|
|
111
|
-
const
|
|
111
|
+
const output2 = cargoCommandSync("metadata --format-version=1", {
|
|
112
112
|
stdio: "pipe"
|
|
113
113
|
});
|
|
114
|
-
if (!
|
|
114
|
+
if (!output2.success) {
|
|
115
115
|
console.error("Failed to get cargo metadata");
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
|
-
return JSON.parse(
|
|
118
|
+
return JSON.parse(output2.output);
|
|
119
119
|
}
|
|
120
120
|
function runProcess(processCmd, ...args) {
|
|
121
121
|
const metadata = cargoMetadata();
|
|
@@ -282,7 +282,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
|
|
|
282
282
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
283
283
|
var _glob = require('glob');
|
|
284
284
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
285
|
-
var copyAssets = async (
|
|
285
|
+
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
286
286
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
287
287
|
pendingAssets.push({
|
|
288
288
|
input: projectRoot,
|
|
@@ -311,29 +311,29 @@ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, ge
|
|
|
311
311
|
_chunkYDAVIV5Rjs.writeTrace.call(void 0,
|
|
312
312
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
313
313
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkYDAVIV5Rjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
314
|
-
|
|
314
|
+
config
|
|
315
315
|
);
|
|
316
316
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
317
317
|
projectDir: projectRoot,
|
|
318
|
-
rootDir:
|
|
318
|
+
rootDir: config.workspaceRoot,
|
|
319
319
|
outputDir: outputPath,
|
|
320
320
|
assets: pendingAssets
|
|
321
321
|
});
|
|
322
322
|
await assetHandler.processAllAssetsOnce();
|
|
323
|
-
_chunkYDAVIV5Rjs.writeTrace.call(void 0, "Completed copying assets to the output directory",
|
|
323
|
+
_chunkYDAVIV5Rjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
324
324
|
if (includeSrc === true) {
|
|
325
325
|
_chunkYDAVIV5Rjs.writeDebug.call(void 0,
|
|
326
326
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
327
327
|
outputPath,
|
|
328
328
|
"src"
|
|
329
329
|
)}`,
|
|
330
|
-
|
|
330
|
+
config
|
|
331
331
|
);
|
|
332
332
|
const files = await _glob.glob.call(void 0, [
|
|
333
|
-
_chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
334
|
-
_chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
335
|
-
_chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
336
|
-
_chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
333
|
+
_chunkYDAVIV5Rjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
334
|
+
_chunkYDAVIV5Rjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
335
|
+
_chunkYDAVIV5Rjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
336
|
+
_chunkYDAVIV5Rjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
337
337
|
]);
|
|
338
338
|
await Promise.allSettled(
|
|
339
339
|
files.map(
|
|
@@ -946,8 +946,8 @@ async function build2(options) {
|
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
949
|
-
async function esbuildExecutorFn(options, context,
|
|
950
|
-
_chunkYDAVIV5Rjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace",
|
|
949
|
+
async function esbuildExecutorFn(options, context, config) {
|
|
950
|
+
_chunkYDAVIV5Rjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
951
951
|
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])) {
|
|
952
952
|
throw new Error(
|
|
953
953
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1092,13 +1092,13 @@ var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDe
|
|
|
1092
1092
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
1093
1093
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1094
1094
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1095
|
-
async function sizeLimitExecutorFn(options, context,
|
|
1095
|
+
async function sizeLimitExecutorFn(options, context, config) {
|
|
1096
1096
|
if (!_optionalChain([context, 'optionalAccess', _58 => _58.projectName]) || !_optionalChain([context, 'access', _59 => _59.projectsConfigurations, 'optionalAccess', _60 => _60.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1097
1097
|
throw new Error(
|
|
1098
1098
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1099
1099
|
);
|
|
1100
1100
|
}
|
|
1101
|
-
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`,
|
|
1101
|
+
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1102
1102
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1103
1103
|
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,
|
|
1104
1104
|
_nullishCoalesce(_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'access', _67 => _67[context.projectName], 'optionalAccess', _68 => _68.root]), () => ( "./")),
|
|
@@ -1107,7 +1107,7 @@ async function sizeLimitExecutorFn(options, context, config5) {
|
|
|
1107
1107
|
}).then((result) => {
|
|
1108
1108
|
_chunkYDAVIV5Rjs.writeInfo.call(void 0,
|
|
1109
1109
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
1110
|
-
|
|
1110
|
+
config
|
|
1111
1111
|
);
|
|
1112
1112
|
});
|
|
1113
1113
|
return {
|
|
@@ -1140,12 +1140,12 @@ var _tsdown = require('tsdown');
|
|
|
1140
1140
|
|
|
1141
1141
|
// ../tsdown/src/clean.ts
|
|
1142
1142
|
|
|
1143
|
-
async function cleanDirectories2(name = "TSDown", directory,
|
|
1143
|
+
async function cleanDirectories2(name = "TSDown", directory, config) {
|
|
1144
1144
|
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
// ../tsdown/src/config.ts
|
|
1148
|
-
function getDefaultOptions(
|
|
1148
|
+
function getDefaultOptions(config) {
|
|
1149
1149
|
return {
|
|
1150
1150
|
entry: ["./src/*.ts"],
|
|
1151
1151
|
platform: "node",
|
|
@@ -1158,7 +1158,7 @@ function getDefaultOptions(config5) {
|
|
|
1158
1158
|
},
|
|
1159
1159
|
publint: true,
|
|
1160
1160
|
fixedExtension: true,
|
|
1161
|
-
...
|
|
1161
|
+
...config
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
1164
1164
|
function toTSDownFormat(format4) {
|
|
@@ -1419,8 +1419,8 @@ async function build3(options) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
|
|
1421
1421
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1422
|
-
async function tsdownExecutorFn(options, context,
|
|
1423
|
-
_chunkYDAVIV5Rjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace",
|
|
1422
|
+
async function tsdownExecutorFn(options, context, config) {
|
|
1423
|
+
_chunkYDAVIV5Rjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1424
1424
|
if (!_optionalChain([context, 'access', _71 => _71.projectsConfigurations, 'optionalAccess', _72 => _72.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _73 => _73.projectsConfigurations, 'access', _74 => _74.projects, 'access', _75 => _75[context.projectName], 'optionalAccess', _76 => _76.root])) {
|
|
1425
1425
|
throw new Error(
|
|
1426
1426
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -1460,14 +1460,14 @@ var executor_default8 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
1460
1460
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
1461
1461
|
var _fsextra = require('fs-extra');
|
|
1462
1462
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1463
|
-
async function typiaExecutorFn(options, _,
|
|
1463
|
+
async function typiaExecutorFn(options, _, config) {
|
|
1464
1464
|
if (options.clean !== false) {
|
|
1465
|
-
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`,
|
|
1465
|
+
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1466
1466
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1467
1467
|
}
|
|
1468
1468
|
await Promise.all(
|
|
1469
1469
|
options.entry.map((entry) => {
|
|
1470
|
-
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`,
|
|
1470
|
+
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1471
1471
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1472
1472
|
input: entry,
|
|
1473
1473
|
output: options.outputPath,
|
|
@@ -1499,8 +1499,8 @@ var executor_default9 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
1499
1499
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
1500
1500
|
|
|
1501
1501
|
var _jiti = require('jiti');
|
|
1502
|
-
async function unbuildExecutorFn(options, context,
|
|
1503
|
-
_chunkYDAVIV5Rjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace",
|
|
1502
|
+
async function unbuildExecutorFn(options, context, config) {
|
|
1503
|
+
_chunkYDAVIV5Rjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1504
1504
|
if (!_optionalChain([context, 'access', _85 => _85.projectsConfigurations, 'optionalAccess', _86 => _86.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1505
1505
|
throw new Error(
|
|
1506
1506
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -1516,10 +1516,10 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
1516
1516
|
"The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
|
|
1517
1517
|
);
|
|
1518
1518
|
}
|
|
1519
|
-
const jiti = _jiti.createJiti.call(void 0,
|
|
1520
|
-
fsCache:
|
|
1521
|
-
|
|
1522
|
-
|
|
1519
|
+
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1520
|
+
fsCache: config.skipCache ? false : _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
1521
|
+
config.workspaceRoot,
|
|
1522
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
1523
1523
|
"jiti"
|
|
1524
1524
|
),
|
|
1525
1525
|
interopDefault: true
|
|
@@ -1539,9 +1539,9 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
1539
1539
|
{
|
|
1540
1540
|
stubOptions: {
|
|
1541
1541
|
jiti: {
|
|
1542
|
-
fsCache:
|
|
1543
|
-
|
|
1544
|
-
|
|
1542
|
+
fsCache: config.skipCache ? false : _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
1543
|
+
config.workspaceRoot,
|
|
1544
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
1545
1545
|
"jiti"
|
|
1546
1546
|
)
|
|
1547
1547
|
}
|
|
@@ -1574,7 +1574,7 @@ var executor_default10 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
1574
1574
|
{
|
|
1575
1575
|
skipReadingConfig: false,
|
|
1576
1576
|
hooks: {
|
|
1577
|
-
applyDefaultOptions: async (options,
|
|
1577
|
+
applyDefaultOptions: async (options, config) => {
|
|
1578
1578
|
options.debug ??= false;
|
|
1579
1579
|
options.treeShaking ??= true;
|
|
1580
1580
|
options.buildOnly ??= false;
|
|
@@ -1601,46 +1601,46 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1601
1601
|
}) => async (tree, _options) => {
|
|
1602
1602
|
const stopwatch = _chunkYDAVIV5Rjs.getStopwatch.call(void 0, name);
|
|
1603
1603
|
let options = _options;
|
|
1604
|
-
let
|
|
1604
|
+
let config;
|
|
1605
1605
|
try {
|
|
1606
1606
|
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1607
1607
|
|
|
1608
|
-
`,
|
|
1608
|
+
`, config);
|
|
1609
1609
|
const workspaceRoot3 = _chunkYDAVIV5Rjs.findWorkspaceRoot.call(void 0, );
|
|
1610
1610
|
if (!generatorOptions.skipReadingConfig) {
|
|
1611
1611
|
_chunkYDAVIV5Rjs.writeDebug.call(void 0,
|
|
1612
1612
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1613
1613
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
1614
|
-
|
|
1614
|
+
config
|
|
1615
1615
|
);
|
|
1616
|
-
|
|
1616
|
+
config = await _chunkYDAVIV5Rjs.getConfig.call(void 0, workspaceRoot3);
|
|
1617
1617
|
}
|
|
1618
1618
|
if (_optionalChain([generatorOptions, 'optionalAccess', _87 => _87.hooks, 'optionalAccess', _88 => _88.applyDefaultOptions])) {
|
|
1619
|
-
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...",
|
|
1619
|
+
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1620
1620
|
options = await Promise.resolve(
|
|
1621
|
-
generatorOptions.hooks.applyDefaultOptions(options,
|
|
1621
|
+
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
1622
1622
|
);
|
|
1623
|
-
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook",
|
|
1623
|
+
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1624
1624
|
}
|
|
1625
1625
|
_chunkYDAVIV5Rjs.writeTrace.call(void 0,
|
|
1626
1626
|
`Generator schema options \u2699\uFE0F
|
|
1627
1627
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
1628
|
-
|
|
1628
|
+
config
|
|
1629
1629
|
);
|
|
1630
1630
|
const tokenized = await _chunkYDAVIV5Rjs.applyWorkspaceTokens.call(void 0,
|
|
1631
1631
|
options,
|
|
1632
|
-
{ workspaceRoot: tree.root, config
|
|
1632
|
+
{ workspaceRoot: tree.root, config },
|
|
1633
1633
|
_chunkYDAVIV5Rjs.applyWorkspaceBaseTokens
|
|
1634
1634
|
);
|
|
1635
1635
|
if (_optionalChain([generatorOptions, 'optionalAccess', _89 => _89.hooks, 'optionalAccess', _90 => _90.preProcess])) {
|
|
1636
|
-
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the preProcess hook...",
|
|
1636
|
+
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1637
1637
|
await Promise.resolve(
|
|
1638
|
-
generatorOptions.hooks.preProcess(tokenized,
|
|
1638
|
+
generatorOptions.hooks.preProcess(tokenized, config)
|
|
1639
1639
|
);
|
|
1640
|
-
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Completed the preProcess hook",
|
|
1640
|
+
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1641
1641
|
}
|
|
1642
1642
|
const result = await Promise.resolve(
|
|
1643
|
-
generatorFn(tree, tokenized,
|
|
1643
|
+
generatorFn(tree, tokenized, config)
|
|
1644
1644
|
);
|
|
1645
1645
|
if (result) {
|
|
1646
1646
|
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _91 => _91.error, 'optionalAccess', _92 => _92.message]) && typeof _optionalChain([result, 'optionalAccess', _93 => _93.error, 'optionalAccess', _94 => _94.message]) === "string" && _optionalChain([result, 'optionalAccess', _95 => _95.error, 'optionalAccess', _96 => _96.name]) && typeof _optionalChain([result, 'optionalAccess', _97 => _97.error, 'optionalAccess', _98 => _98.name]) === "string") {
|
|
@@ -1652,25 +1652,25 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
1654
|
if (_optionalChain([generatorOptions, 'optionalAccess', _100 => _100.hooks, 'optionalAccess', _101 => _101.postProcess])) {
|
|
1655
|
-
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the postProcess hook...",
|
|
1656
|
-
await Promise.resolve(generatorOptions.hooks.postProcess(
|
|
1657
|
-
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Completed the postProcess hook",
|
|
1655
|
+
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1656
|
+
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1657
|
+
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1658
1658
|
}
|
|
1659
1659
|
return () => {
|
|
1660
1660
|
_chunkYDAVIV5Rjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1661
|
-
`,
|
|
1661
|
+
`, config);
|
|
1662
1662
|
};
|
|
1663
1663
|
} catch (error) {
|
|
1664
1664
|
return () => {
|
|
1665
1665
|
_chunkYDAVIV5Rjs.writeFatal.call(void 0,
|
|
1666
1666
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
1667
|
-
|
|
1667
|
+
config
|
|
1668
1668
|
);
|
|
1669
1669
|
_chunkYDAVIV5Rjs.writeError.call(void 0,
|
|
1670
1670
|
`An exception was thrown in the generator's process
|
|
1671
1671
|
- Details: ${error.message}
|
|
1672
1672
|
- Stacktrace: ${error.stack}`,
|
|
1673
|
-
|
|
1673
|
+
config
|
|
1674
1674
|
);
|
|
1675
1675
|
};
|
|
1676
1676
|
} finally {
|
|
@@ -1706,7 +1706,7 @@ var nodeVersion = "20.11.0";
|
|
|
1706
1706
|
var pnpmVersion = "8.10.2";
|
|
1707
1707
|
|
|
1708
1708
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
1709
|
-
async function typeScriptLibraryGeneratorFn(tree, options,
|
|
1709
|
+
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
1710
1710
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
1711
1711
|
const tasks = [];
|
|
1712
1712
|
tasks.push(
|
|
@@ -1783,7 +1783,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
1783
1783
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
1784
1784
|
let repository = {
|
|
1785
1785
|
type: "github",
|
|
1786
|
-
url: _optionalChain([
|
|
1786
|
+
url: _optionalChain([config, 'optionalAccess', _102 => _102.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _103 => _103.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _104 => _104.organization]) : _optionalChain([config, 'optionalAccess', _105 => _105.organization, 'optionalAccess', _106 => _106.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _107 => _107.namespace]) || _optionalChain([config, 'optionalAccess', _108 => _108.name]) || "repository"}.git`
|
|
1787
1787
|
};
|
|
1788
1788
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
1789
1789
|
if (tree.exists("package.json")) {
|
|
@@ -1929,10 +1929,10 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1929
1929
|
};
|
|
1930
1930
|
_devkit.writeJson.call(void 0, tree, _chunkYDAVIV5Rjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
1931
1931
|
}
|
|
1932
|
-
async function normalizeOptions(tree, options,
|
|
1932
|
+
async function normalizeOptions(tree, options, config) {
|
|
1933
1933
|
let importPath = options.importPath;
|
|
1934
|
-
if (!importPath && _optionalChain([
|
|
1935
|
-
importPath = `@${_optionalChain([
|
|
1934
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _125 => _125.namespace])) {
|
|
1935
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _126 => _126.namespace])}/${options.name}`;
|
|
1936
1936
|
}
|
|
1937
1937
|
if (options.publishable) {
|
|
1938
1938
|
if (!importPath) {
|
|
@@ -1991,7 +1991,7 @@ async function normalizeOptions(tree, options, config5) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
1993
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
1994
|
-
async function browserLibraryGeneratorFn(tree, schema,
|
|
1994
|
+
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
1995
1995
|
const filesDir = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
1996
1996
|
__dirname,
|
|
1997
1997
|
"src",
|
|
@@ -2053,7 +2053,7 @@ async function browserLibraryGeneratorFn(tree, schema, config5) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
2056
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
2057
2057
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2058
2058
|
return null;
|
|
2059
2059
|
}
|
|
@@ -2074,14 +2074,14 @@ var generator_default = withRunGenerator(
|
|
|
2074
2074
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
2075
2075
|
|
|
2076
2076
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
2077
|
-
async function configSchemaGeneratorFn(tree, options,
|
|
2077
|
+
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2078
2078
|
_chunkYDAVIV5Rjs.writeInfo.call(void 0,
|
|
2079
2079
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
2080
|
-
|
|
2080
|
+
config
|
|
2081
2081
|
);
|
|
2082
2082
|
_chunkYDAVIV5Rjs.writeTrace.call(void 0,
|
|
2083
2083
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2084
|
-
|
|
2084
|
+
config
|
|
2085
2085
|
);
|
|
2086
2086
|
const jsonSchema = z.toJSONSchema(_chunkYDAVIV5Rjs.workspaceConfigSchema, {
|
|
2087
2087
|
target: "draft-7",
|
|
@@ -2090,25 +2090,25 @@ async function configSchemaGeneratorFn(tree, options, config5) {
|
|
|
2090
2090
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2091
2091
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
2092
2092
|
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.";
|
|
2093
|
-
_chunkYDAVIV5Rjs.writeTrace.call(void 0, jsonSchema,
|
|
2093
|
+
_chunkYDAVIV5Rjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2094
2094
|
if (!options.outputFile) {
|
|
2095
2095
|
throw new Error(
|
|
2096
2096
|
"The `outputFile` option is required. Please specify the output file path."
|
|
2097
2097
|
);
|
|
2098
2098
|
}
|
|
2099
2099
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2100
|
-
_nullishCoalesce(_optionalChain([
|
|
2100
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _127 => _127.workspaceRoot]), () => ( _chunkYDAVIV5Rjs.findWorkspaceRoot.call(void 0, ))),
|
|
2101
2101
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2102
2102
|
);
|
|
2103
2103
|
_chunkYDAVIV5Rjs.writeTrace.call(void 0,
|
|
2104
2104
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
2105
|
-
|
|
2105
|
+
config
|
|
2106
2106
|
);
|
|
2107
2107
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
2108
2108
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2109
2109
|
_chunkYDAVIV5Rjs.writeSuccess.call(void 0,
|
|
2110
2110
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
2111
|
-
|
|
2111
|
+
config
|
|
2112
2112
|
);
|
|
2113
2113
|
return {
|
|
2114
2114
|
success: true
|
|
@@ -2161,7 +2161,7 @@ async function initGenerator(tree, schema) {
|
|
|
2161
2161
|
|
|
2162
2162
|
|
|
2163
2163
|
|
|
2164
|
-
async function neutralLibraryGeneratorFn(tree, schema,
|
|
2164
|
+
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2165
2165
|
const filesDir = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
2166
2166
|
__dirname,
|
|
2167
2167
|
"src",
|
|
@@ -2195,7 +2195,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config5) {
|
|
|
2195
2195
|
buildable: options.bundler && options.bundler !== "none",
|
|
2196
2196
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
2197
2197
|
});
|
|
2198
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
2198
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
2199
2199
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2200
2200
|
return null;
|
|
2201
2201
|
}
|
|
@@ -2220,7 +2220,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2220
2220
|
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
async function nodeLibraryGeneratorFn(tree, schema,
|
|
2223
|
+
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2224
2224
|
const filesDir = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
2225
2225
|
__dirname,
|
|
2226
2226
|
"src",
|
|
@@ -2256,7 +2256,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config5) {
|
|
|
2256
2256
|
buildable: options.bundler && options.bundler !== "none",
|
|
2257
2257
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
2258
2258
|
});
|
|
2259
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions,
|
|
2259
|
+
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
2260
2260
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2261
2261
|
return null;
|
|
2262
2262
|
}
|
|
@@ -2512,402 +2512,6 @@ var generator_default5 = withRunGenerator(
|
|
|
2512
2512
|
presetGeneratorFn
|
|
2513
2513
|
);
|
|
2514
2514
|
|
|
2515
|
-
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
|
|
2525
|
-
var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
|
|
2526
|
-
|
|
2527
|
-
// ../git-tools/dist/chunk-5XU2KBM6.js
|
|
2528
|
-
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
2529
|
-
skip: "press enter to skip",
|
|
2530
|
-
max: "must be %d chars at most",
|
|
2531
|
-
min: "must be %d chars at least",
|
|
2532
|
-
emptyWarning: "can not be empty",
|
|
2533
|
-
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
2534
|
-
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
2535
|
-
closedIssueMessage: "Closes: "
|
|
2536
|
-
};
|
|
2537
|
-
|
|
2538
|
-
// ../git-tools/dist/chunk-3GGWHKRP.js
|
|
2539
|
-
var DEFAULT_COMMIT_TYPES = {
|
|
2540
|
-
/* --- Bumps version when selected --- */
|
|
2541
|
-
"chore": {
|
|
2542
|
-
"description": "Other changes that don't modify src or test files",
|
|
2543
|
-
"title": "Chore",
|
|
2544
|
-
"emoji": "\u2699\uFE0F ",
|
|
2545
|
-
"semverBump": "patch",
|
|
2546
|
-
"changelog": {
|
|
2547
|
-
"title": "Miscellaneous",
|
|
2548
|
-
"hidden": false
|
|
2549
|
-
}
|
|
2550
|
-
},
|
|
2551
|
-
"fix": {
|
|
2552
|
-
"description": "A change that resolves an issue previously identified with the package",
|
|
2553
|
-
"title": "Bug Fix",
|
|
2554
|
-
"emoji": "\u{1FAB2} ",
|
|
2555
|
-
"semverBump": "patch",
|
|
2556
|
-
"changelog": {
|
|
2557
|
-
"title": "Bug Fixes",
|
|
2558
|
-
"hidden": false
|
|
2559
|
-
}
|
|
2560
|
-
},
|
|
2561
|
-
"feat": {
|
|
2562
|
-
"description": "A change that adds a new feature to the package",
|
|
2563
|
-
"title": "Feature",
|
|
2564
|
-
"emoji": "\u{1F511} ",
|
|
2565
|
-
"semverBump": "minor",
|
|
2566
|
-
"changelog": {
|
|
2567
|
-
"title": "Features",
|
|
2568
|
-
"hidden": false
|
|
2569
|
-
}
|
|
2570
|
-
},
|
|
2571
|
-
"ci": {
|
|
2572
|
-
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
2573
|
-
"title": "Continuous Integration",
|
|
2574
|
-
"emoji": "\u{1F9F0} ",
|
|
2575
|
-
"semverBump": "patch",
|
|
2576
|
-
"changelog": {
|
|
2577
|
-
"title": "Continuous Integration",
|
|
2578
|
-
"hidden": false
|
|
2579
|
-
}
|
|
2580
|
-
},
|
|
2581
|
-
"refactor": {
|
|
2582
|
-
"description": "A code change that neither fixes a bug nor adds a feature",
|
|
2583
|
-
"title": "Code Refactoring",
|
|
2584
|
-
"emoji": "\u{1F9EA} ",
|
|
2585
|
-
"semverBump": "patch",
|
|
2586
|
-
"changelog": {
|
|
2587
|
-
"title": "Source Code Improvements",
|
|
2588
|
-
"hidden": false
|
|
2589
|
-
}
|
|
2590
|
-
},
|
|
2591
|
-
"style": {
|
|
2592
|
-
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
2593
|
-
"title": "Style Improvements",
|
|
2594
|
-
"emoji": "\u{1F48E} ",
|
|
2595
|
-
"semverBump": "patch",
|
|
2596
|
-
"changelog": {
|
|
2597
|
-
"title": "Style Improvements",
|
|
2598
|
-
"hidden": false
|
|
2599
|
-
}
|
|
2600
|
-
},
|
|
2601
|
-
"perf": {
|
|
2602
|
-
"description": "A code change that improves performance",
|
|
2603
|
-
"title": "Performance Improvement",
|
|
2604
|
-
"emoji": "\u23F1\uFE0F ",
|
|
2605
|
-
"semverBump": "patch",
|
|
2606
|
-
"changelog": {
|
|
2607
|
-
"title": "Performance Improvements",
|
|
2608
|
-
"hidden": false
|
|
2609
|
-
}
|
|
2610
|
-
},
|
|
2611
|
-
/* --- Does not bump version when selected --- */
|
|
2612
|
-
"docs": {
|
|
2613
|
-
"description": "A change that only includes documentation updates",
|
|
2614
|
-
"title": "Documentation",
|
|
2615
|
-
"emoji": "\u{1F4DC} ",
|
|
2616
|
-
"semverBump": "none",
|
|
2617
|
-
"changelog": {
|
|
2618
|
-
"title": "Documentation",
|
|
2619
|
-
"hidden": false
|
|
2620
|
-
}
|
|
2621
|
-
},
|
|
2622
|
-
"test": {
|
|
2623
|
-
"description": "Adding missing tests or correcting existing tests",
|
|
2624
|
-
"title": "Testing",
|
|
2625
|
-
"emoji": "\u{1F6A8} ",
|
|
2626
|
-
"semverBump": "none",
|
|
2627
|
-
"changelog": {
|
|
2628
|
-
"title": "Testing",
|
|
2629
|
-
"hidden": true
|
|
2630
|
-
}
|
|
2631
|
-
},
|
|
2632
|
-
/* --- Not included in commitlint but included in changelog --- */
|
|
2633
|
-
"deps": {
|
|
2634
|
-
"description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
2635
|
-
"title": "Dependencies",
|
|
2636
|
-
"emoji": "\u{1F4E6} ",
|
|
2637
|
-
"hidden": true,
|
|
2638
|
-
"semverBump": "patch",
|
|
2639
|
-
"changelog": {
|
|
2640
|
-
"title": "Dependency Upgrades",
|
|
2641
|
-
"hidden": false
|
|
2642
|
-
}
|
|
2643
|
-
},
|
|
2644
|
-
/* --- Not included in commitlint or changelog --- */
|
|
2645
|
-
"build": {
|
|
2646
|
-
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
2647
|
-
"title": "Build",
|
|
2648
|
-
"emoji": "\u{1F6E0} ",
|
|
2649
|
-
"hidden": true,
|
|
2650
|
-
"semverBump": "none",
|
|
2651
|
-
"changelog": {
|
|
2652
|
-
"title": "Build",
|
|
2653
|
-
"hidden": true
|
|
2654
|
-
}
|
|
2655
|
-
},
|
|
2656
|
-
"release": {
|
|
2657
|
-
"description": "Publishing a commit containing a newly released version",
|
|
2658
|
-
"title": "Publish Release",
|
|
2659
|
-
"emoji": "\u{1F680} ",
|
|
2660
|
-
"hidden": true,
|
|
2661
|
-
"semverBump": "none",
|
|
2662
|
-
"changelog": {
|
|
2663
|
-
"title": "Publish Release",
|
|
2664
|
-
"hidden": true
|
|
2665
|
-
}
|
|
2666
|
-
}
|
|
2667
|
-
};
|
|
2668
|
-
var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
|
|
2669
|
-
Object.entries(DEFAULT_COMMIT_TYPES).reduce(
|
|
2670
|
-
(ret, [key, commitType]) => {
|
|
2671
|
-
ret[key] = {
|
|
2672
|
-
...commitType.changelog,
|
|
2673
|
-
type: key,
|
|
2674
|
-
section: _optionalChain([commitType, 'access', _128 => _128.changelog, 'optionalAccess', _129 => _129.title]) || commitType.title,
|
|
2675
|
-
hidden: _optionalChain([commitType, 'access', _130 => _130.changelog, 'optionalAccess', _131 => _131.hidden])
|
|
2676
|
-
};
|
|
2677
|
-
return ret;
|
|
2678
|
-
},
|
|
2679
|
-
{}
|
|
2680
|
-
)
|
|
2681
|
-
);
|
|
2682
|
-
var CHANGELOG_COMMIT_TYPES = [
|
|
2683
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.feat,
|
|
2684
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.fix,
|
|
2685
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.chore,
|
|
2686
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.deps,
|
|
2687
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.docs,
|
|
2688
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.style,
|
|
2689
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.refactor,
|
|
2690
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.perf,
|
|
2691
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.build,
|
|
2692
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.ci,
|
|
2693
|
-
CHANGELOG_COMMIT_TYPES_OBJECT.test
|
|
2694
|
-
];
|
|
2695
|
-
var CHANGELOG_COMMIT_TYPE_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
2696
|
-
(entry) => entry.type
|
|
2697
|
-
);
|
|
2698
|
-
var CHANGELOG_COMMIT_SECTION_ORDER = CHANGELOG_COMMIT_TYPES.map(
|
|
2699
|
-
(entry) => entry.section
|
|
2700
|
-
);
|
|
2701
|
-
var changelogs = {
|
|
2702
|
-
props: {
|
|
2703
|
-
ignoreCommits: void 0,
|
|
2704
|
-
types: CHANGELOG_COMMIT_TYPES,
|
|
2705
|
-
bumpStrict: true,
|
|
2706
|
-
scope: void 0,
|
|
2707
|
-
scopeOnly: false
|
|
2708
|
-
}
|
|
2709
|
-
};
|
|
2710
|
-
var commitlint = {
|
|
2711
|
-
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal",
|
|
2712
|
-
rules: {
|
|
2713
|
-
"body-leading-blank": [1, "always"],
|
|
2714
|
-
"body-max-length": [2, "always", 600],
|
|
2715
|
-
"footer-leading-blank": [1, "always"],
|
|
2716
|
-
"footer-max-line-length": [2, "always", 150],
|
|
2717
|
-
"header-max-length": [2, "always", 150],
|
|
2718
|
-
"header-trim": [2, "always"],
|
|
2719
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
2720
|
-
"subject-empty": [2, "never"],
|
|
2721
|
-
"subject-full-stop": [2, "never", "."],
|
|
2722
|
-
"subject-max-length": [2, "always", 150],
|
|
2723
|
-
"subject-min-length": [2, "always", 3],
|
|
2724
|
-
"type-case": [2, "always", "kebab-case"],
|
|
2725
|
-
"type-empty": [2, "never"],
|
|
2726
|
-
"type-enum": [
|
|
2727
|
-
2,
|
|
2728
|
-
"always",
|
|
2729
|
-
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
2730
|
-
],
|
|
2731
|
-
"type-max-length": [2, "always", 20],
|
|
2732
|
-
"type-min-length": [2, "always", 3],
|
|
2733
|
-
"scope-empty": [2, "always"]
|
|
2734
|
-
},
|
|
2735
|
-
settings: {
|
|
2736
|
-
enableMultipleScopes: false,
|
|
2737
|
-
disableEmoji: true,
|
|
2738
|
-
breakingChangePrefix: "\u{1F4A3} ",
|
|
2739
|
-
closedIssuePrefix: "\u2705 ",
|
|
2740
|
-
format: "{type}: {emoji}{subject}"
|
|
2741
|
-
}
|
|
2742
|
-
};
|
|
2743
|
-
var config = {
|
|
2744
|
-
types: DEFAULT_COMMIT_TYPES,
|
|
2745
|
-
changelogs,
|
|
2746
|
-
commitlint
|
|
2747
|
-
};
|
|
2748
|
-
var minimal_default = config;
|
|
2749
|
-
var changelogs2 = {
|
|
2750
|
-
props: {
|
|
2751
|
-
ignoreCommits: void 0,
|
|
2752
|
-
types: CHANGELOG_COMMIT_TYPES,
|
|
2753
|
-
bumpStrict: true,
|
|
2754
|
-
scope: ["monorepo"],
|
|
2755
|
-
scopeOnly: true
|
|
2756
|
-
}
|
|
2757
|
-
};
|
|
2758
|
-
var commitlint2 = {
|
|
2759
|
-
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo",
|
|
2760
|
-
rules: {
|
|
2761
|
-
"body-leading-blank": [1, "always"],
|
|
2762
|
-
"body-max-length": [2, "always", 600],
|
|
2763
|
-
"footer-leading-blank": [1, "always"],
|
|
2764
|
-
"footer-max-line-length": [2, "always", 150],
|
|
2765
|
-
"header-max-length": [2, "always", 150],
|
|
2766
|
-
"header-trim": [2, "always"],
|
|
2767
|
-
"subject-case": [2, "always", ["sentence-case"]],
|
|
2768
|
-
"subject-empty": [2, "never"],
|
|
2769
|
-
"subject-full-stop": [2, "never", "."],
|
|
2770
|
-
"subject-max-length": [2, "always", 150],
|
|
2771
|
-
"subject-min-length": [2, "always", 3],
|
|
2772
|
-
"type-case": [2, "always", "kebab-case"],
|
|
2773
|
-
"type-empty": [2, "never"],
|
|
2774
|
-
"type-enum": [
|
|
2775
|
-
2,
|
|
2776
|
-
"always",
|
|
2777
|
-
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
2778
|
-
],
|
|
2779
|
-
"type-max-length": [2, "always", 20],
|
|
2780
|
-
"type-min-length": [2, "always", 3],
|
|
2781
|
-
"scope-case": [2, "always", ["kebab-case"]],
|
|
2782
|
-
"scope-empty": [2, "never"]
|
|
2783
|
-
},
|
|
2784
|
-
settings: {
|
|
2785
|
-
enableMultipleScopes: false,
|
|
2786
|
-
disableEmoji: true,
|
|
2787
|
-
breakingChangePrefix: "\u{1F4A3} ",
|
|
2788
|
-
closedIssuePrefix: "\u2705 ",
|
|
2789
|
-
format: "{type}({scope}): {emoji}{subject}"
|
|
2790
|
-
}
|
|
2791
|
-
};
|
|
2792
|
-
var config2 = {
|
|
2793
|
-
types: DEFAULT_COMMIT_TYPES,
|
|
2794
|
-
changelogs: changelogs2,
|
|
2795
|
-
commitlint: commitlint2
|
|
2796
|
-
};
|
|
2797
|
-
var monorepo_default = config2;
|
|
2798
|
-
var COMMIT_CONFIGS = { minimal: minimal_default, monorepo: monorepo_default };
|
|
2799
|
-
|
|
2800
|
-
// ../git-tools/dist/chunk-KZRVQ5RZ.js
|
|
2801
|
-
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
2802
|
-
type: {
|
|
2803
|
-
type: "select",
|
|
2804
|
-
title: "Commit Type",
|
|
2805
|
-
description: "Select the commit type that best describes your changes",
|
|
2806
|
-
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
2807
|
-
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
2808
|
-
).reduce((ret, type) => {
|
|
2809
|
-
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
2810
|
-
return ret;
|
|
2811
|
-
}, {}),
|
|
2812
|
-
defaultValue: "chore",
|
|
2813
|
-
maxLength: 20,
|
|
2814
|
-
minLength: 3
|
|
2815
|
-
},
|
|
2816
|
-
subject: {
|
|
2817
|
-
type: "input",
|
|
2818
|
-
title: "Commit Subject",
|
|
2819
|
-
description: "Write a short, imperative tense description of the change",
|
|
2820
|
-
maxLength: 150,
|
|
2821
|
-
minLength: 3
|
|
2822
|
-
},
|
|
2823
|
-
body: {
|
|
2824
|
-
type: "input",
|
|
2825
|
-
title: "Commit Body",
|
|
2826
|
-
description: "Provide a longer description of the change",
|
|
2827
|
-
maxLength: 600
|
|
2828
|
-
},
|
|
2829
|
-
isBreaking: {
|
|
2830
|
-
type: "confirm",
|
|
2831
|
-
title: "Breaking Changes",
|
|
2832
|
-
description: "Are there any breaking changes as a result of this commit?",
|
|
2833
|
-
defaultValue: false
|
|
2834
|
-
},
|
|
2835
|
-
breakingBody: {
|
|
2836
|
-
type: "input",
|
|
2837
|
-
title: "Breaking Changes (Details)",
|
|
2838
|
-
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
2839
|
-
when: (answers) => answers.isBreaking === true,
|
|
2840
|
-
maxLength: 600,
|
|
2841
|
-
minLength: 3
|
|
2842
|
-
},
|
|
2843
|
-
isIssueAffected: {
|
|
2844
|
-
type: "confirm",
|
|
2845
|
-
title: "Open Issue Affected",
|
|
2846
|
-
description: "Does this change impact any open issues?",
|
|
2847
|
-
defaultValue: false
|
|
2848
|
-
},
|
|
2849
|
-
issuesBody: {
|
|
2850
|
-
type: "input",
|
|
2851
|
-
title: "Open Issue Affected (Details)",
|
|
2852
|
-
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
2853
|
-
when: (answers) => answers.isIssueAffected === true,
|
|
2854
|
-
maxLength: 600,
|
|
2855
|
-
minLength: 3
|
|
2856
|
-
}
|
|
2857
|
-
};
|
|
2858
|
-
var config3 = {
|
|
2859
|
-
settings: COMMIT_CONFIGS.minimal.commitlint.settings,
|
|
2860
|
-
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
2861
|
-
questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
|
|
2862
|
-
types: DEFAULT_COMMIT_TYPES
|
|
2863
|
-
};
|
|
2864
|
-
|
|
2865
|
-
// ../git-tools/dist/chunk-JCEVFJCA.js
|
|
2866
|
-
var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
|
|
2867
|
-
type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
|
|
2868
|
-
scope: {
|
|
2869
|
-
type: "select",
|
|
2870
|
-
title: "Commit Scope",
|
|
2871
|
-
description: "Select the project that's the most impacted by this change",
|
|
2872
|
-
enum: {},
|
|
2873
|
-
defaultValue: "monorepo",
|
|
2874
|
-
maxLength: 50,
|
|
2875
|
-
minLength: 1
|
|
2876
|
-
},
|
|
2877
|
-
subject: DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
|
|
2878
|
-
body: DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
|
|
2879
|
-
isBreaking: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
|
|
2880
|
-
breakingBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
|
|
2881
|
-
isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
|
|
2882
|
-
issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
|
|
2883
|
-
};
|
|
2884
|
-
var config4 = {
|
|
2885
|
-
settings: COMMIT_CONFIGS.monorepo.commitlint.settings,
|
|
2886
|
-
messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
2887
|
-
questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
2888
|
-
types: DEFAULT_COMMIT_TYPES
|
|
2889
|
-
};
|
|
2890
|
-
|
|
2891
|
-
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
var _config = require('nx/src/command-line/release/config/config');
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
var _git = require('nx/src/command-line/release/utils/git');
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
var _resolvesemverspecifier = require('nx/src/command-line/release/utils/resolve-semver-specifier');
|
|
2903
|
-
var _semver3 = require('nx/src/command-line/release/utils/semver');
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
2908
|
-
var _utils = require('nx/src/tasks-runner/utils');
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
2515
|
// ../workspace-tools/src/base/base-executor.untyped.ts
|
|
2912
2516
|
var _untyped = require('untyped');
|
|
2913
2517
|
var base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
@@ -3272,6 +2876,18 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
3272
2876
|
}
|
|
3273
2877
|
});
|
|
3274
2878
|
|
|
2879
|
+
// ../workspace-tools/src/release/js-version-actions.ts
|
|
2880
|
+
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
2881
|
+
|
|
2882
|
+
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
|
|
2886
|
+
var _release = require('nx/release');
|
|
2887
|
+
|
|
2888
|
+
// ../workspace-tools/src/utils/registry-helpers.ts
|
|
2889
|
+
|
|
2890
|
+
|
|
3275
2891
|
// ../workspace-tools/src/utils/create-cli-options.ts
|
|
3276
2892
|
|
|
3277
2893
|
|