@storm-software/projen 0.21.262 → 0.21.264
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-MUJXUCTC.js → chunk-3KJGVJQC.js} +71 -49
- package/dist/{chunk-I6MRWTJB.mjs → chunk-Q63HPTYV.mjs} +27 -5
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.21.263](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.263) (06/28/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Upgrade workspace packages' dependencies ([fcc009e9d](https://github.com/storm-software/storm-ops/commit/fcc009e9d))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config** to **v1.138.17**
|
|
14
|
+
- Updated **config-tools** to **v1.190.80**
|
|
15
|
+
- Updated **workspace-tools** to **v1.296.60**
|
|
16
|
+
|
|
17
|
+
## [0.21.262](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.262) (06/28/2026)
|
|
18
|
+
|
|
19
|
+
### Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated **config** to **v1.138.16**
|
|
22
|
+
- Updated **config-tools** to **v1.190.79**
|
|
23
|
+
- Updated **workspace-tools** to **v1.296.59**
|
|
24
|
+
|
|
5
25
|
## [0.21.261](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.261) (06/26/2026)
|
|
6
26
|
|
|
7
27
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -1309,6 +1309,18 @@ function applyDefaultConfig(config) {
|
|
|
1309
1309
|
return config;
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
+
// ../config-tools/src/utilities/toml.ts
|
|
1313
|
+
_chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
1314
|
+
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
1315
|
+
function parseCargoToml(cargoString) {
|
|
1316
|
+
if (!cargoString) {
|
|
1317
|
+
throw new Error("Cargo.toml is empty");
|
|
1318
|
+
}
|
|
1319
|
+
return _jtoml2.default.parse(cargoString, {
|
|
1320
|
+
x: { comment: true }
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1312
1324
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
1313
1325
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
1314
1326
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
@@ -2234,6 +2246,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
2234
2246
|
|
|
2235
2247
|
var _child_process = require('child_process');
|
|
2236
2248
|
|
|
2249
|
+
|
|
2237
2250
|
var INVALID_CARGO_ARGS = [
|
|
2238
2251
|
"allFeatures",
|
|
2239
2252
|
"allTargets",
|
|
@@ -2266,8 +2279,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2266
2279
|
args.push(`--${key}`, String(value));
|
|
2267
2280
|
}
|
|
2268
2281
|
}
|
|
2269
|
-
if (context.projectName) {
|
|
2270
|
-
|
|
2282
|
+
if (context.projectName && _optionalChain([context, 'access', _90 => _90.projectsConfigurations, 'optionalAccess', _91 => _91.projects]) && _optionalChain([context, 'access', _92 => _92.projectsConfigurations, 'optionalAccess', _93 => _93.projects, 'access', _94 => _94[context.projectName]]) && _optionalChain([context, 'access', _95 => _95.projectsConfigurations, 'optionalAccess', _96 => _96.projects, 'access', _97 => _97[context.projectName], 'optionalAccess', _98 => _98.root]) && _optionalChain([context, 'access', _99 => _99.projectsConfigurations, 'optionalAccess', _100 => _100.projects, 'access', _101 => _101[context.projectName], 'optionalAccess', _102 => _102.root, 'access', _103 => _103.includes, 'call', _104 => _104("Cargo.toml")])) {
|
|
2283
|
+
const cargoToml = parseCargoToml(
|
|
2284
|
+
_fs.readFileSync.call(void 0,
|
|
2285
|
+
_devkit.joinPathFragments.call(void 0,
|
|
2286
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
2287
|
+
"Cargo.toml"
|
|
2288
|
+
),
|
|
2289
|
+
"utf-8"
|
|
2290
|
+
)
|
|
2291
|
+
);
|
|
2292
|
+
args.push("-p", cargoToml.package.name);
|
|
2271
2293
|
}
|
|
2272
2294
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
2273
2295
|
args.push("--all-features");
|
|
@@ -2290,10 +2312,10 @@ async function cargoCommand(workspaceRoot2, ...args) {
|
|
|
2290
2312
|
}
|
|
2291
2313
|
function cargoCommandSync(args = "", options) {
|
|
2292
2314
|
const normalizedOptions = {
|
|
2293
|
-
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2315
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _105 => _105.stdio]), () => ( "inherit")),
|
|
2294
2316
|
env: {
|
|
2295
2317
|
...process.env,
|
|
2296
|
-
..._optionalChain([options, 'optionalAccess',
|
|
2318
|
+
..._optionalChain([options, 'optionalAccess', _106 => _106.env])
|
|
2297
2319
|
}
|
|
2298
2320
|
};
|
|
2299
2321
|
try {
|
|
@@ -2326,7 +2348,7 @@ function cargoMetadata() {
|
|
|
2326
2348
|
}
|
|
2327
2349
|
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
2328
2350
|
const metadata = cargoMetadata();
|
|
2329
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
2351
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _107 => _107.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot2, "dist")));
|
|
2330
2352
|
return new Promise((resolve2) => {
|
|
2331
2353
|
if (process.env.VERCEL) {
|
|
2332
2354
|
return resolve2({ success: true });
|
|
@@ -2630,7 +2652,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2630
2652
|
);
|
|
2631
2653
|
const localPackages = [];
|
|
2632
2654
|
for (const project of projectDependencies.dependencies.filter(
|
|
2633
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access',
|
|
2655
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _108 => _108.node, 'access', _109 => _109.data, 'optionalAccess', _110 => _110.root]) !== projectRoot && _optionalChain([dep, 'access', _111 => _111.node, 'access', _112 => _112.data, 'optionalAccess', _113 => _113.root]) !== workspaceRoot2
|
|
2634
2656
|
)) {
|
|
2635
2657
|
const projectNode = project.node;
|
|
2636
2658
|
if (projectNode.data.root) {
|
|
@@ -2662,13 +2684,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2662
2684
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2663
2685
|
const projectName2 = projectJson.name;
|
|
2664
2686
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2665
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2687
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _114 => _114.projects, 'optionalAccess', _115 => _115[projectName2]])) {
|
|
2666
2688
|
throw new Error(
|
|
2667
2689
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
2668
2690
|
);
|
|
2669
2691
|
}
|
|
2670
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
2671
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
2692
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _116 => _116.projects, 'optionalAccess', _117 => _117[projectName2], 'access', _118 => _118.implicitDependencies, 'optionalAccess', _119 => _119.reduce, 'call', _120 => _120((ret, dep) => {
|
|
2693
|
+
if (_optionalChain([projectConfigurations, 'access', _121 => _121.projects, 'optionalAccess', _122 => _122[dep]])) {
|
|
2672
2694
|
const depPackageJsonPath = _chunkS6LG3LANjs.joinPaths.call(void 0,
|
|
2673
2695
|
workspaceRoot2,
|
|
2674
2696
|
projectConfigurations.projects[dep].root,
|
|
@@ -2688,13 +2710,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2688
2710
|
return ret;
|
|
2689
2711
|
}, [])]);
|
|
2690
2712
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
2691
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
2713
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _123 => _123.includes, 'call', _124 => _124(localPackage.name)]) && _optionalChain([packageJson, 'access', _125 => _125.devDependencies, 'optionalAccess', _126 => _126[localPackage.name]]) === void 0) {
|
|
2692
2714
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2693
2715
|
}
|
|
2694
2716
|
return ret;
|
|
2695
2717
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
2696
2718
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
2697
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
2719
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _127 => _127.includes, 'call', _128 => _128(localPackage.name)]) && _optionalChain([packageJson, 'access', _129 => _129.dependencies, 'optionalAccess', _130 => _130[localPackage.name]]) === void 0) {
|
|
2698
2720
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
2699
2721
|
}
|
|
2700
2722
|
return ret;
|
|
@@ -2809,7 +2831,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
2809
2831
|
|
|
2810
2832
|
// ../esbuild/src/assets.ts
|
|
2811
2833
|
async function copyBuildAssets(context) {
|
|
2812
|
-
if (!_optionalChain([context, 'access',
|
|
2834
|
+
if (!_optionalChain([context, 'access', _131 => _131.result, 'optionalAccess', _132 => _132.errors, 'access', _133 => _133.length]) && _optionalChain([context, 'access', _134 => _134.options, 'access', _135 => _135.assets, 'optionalAccess', _136 => _136.length])) {
|
|
2813
2835
|
writeDebug(
|
|
2814
2836
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
2815
2837
|
context.workspaceConfig
|
|
@@ -2918,7 +2940,7 @@ async function resolveContext(userOptions) {
|
|
|
2918
2940
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2919
2941
|
const projectName = projectJson.name || userOptions.name;
|
|
2920
2942
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2921
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2943
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _137 => _137.projects, 'optionalAccess', _138 => _138[projectName]])) {
|
|
2922
2944
|
throw new Error(
|
|
2923
2945
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
2924
2946
|
);
|
|
@@ -3151,7 +3173,7 @@ async function executeTsup(context) {
|
|
|
3151
3173
|
|
|
3152
3174
|
// ../esbuild/src/build.ts
|
|
3153
3175
|
async function reportResults(context) {
|
|
3154
|
-
if (_optionalChain([context, 'access',
|
|
3176
|
+
if (_optionalChain([context, 'access', _139 => _139.result, 'optionalAccess', _140 => _140.errors, 'access', _141 => _141.length]) === 0) {
|
|
3155
3177
|
if (context.result.warnings.length > 0) {
|
|
3156
3178
|
writeWarning(
|
|
3157
3179
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -3162,7 +3184,7 @@ async function reportResults(context) {
|
|
|
3162
3184
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
3163
3185
|
context.workspaceConfig
|
|
3164
3186
|
);
|
|
3165
|
-
} else if (_optionalChain([context, 'access',
|
|
3187
|
+
} else if (_optionalChain([context, 'access', _142 => _142.result, 'optionalAccess', _143 => _143.errors]) && _optionalChain([context, 'access', _144 => _144.result, 'optionalAccess', _145 => _145.errors, 'access', _146 => _146.length]) > 0) {
|
|
3166
3188
|
writeError(
|
|
3167
3189
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
3168
3190
|
context.workspaceConfig
|
|
@@ -3215,7 +3237,7 @@ async function build2(options) {
|
|
|
3215
3237
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
3216
3238
|
async function esbuildExecutorFn(options, context, config) {
|
|
3217
3239
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
3218
|
-
if (!_optionalChain([context, 'access',
|
|
3240
|
+
if (!_optionalChain([context, 'access', _147 => _147.projectsConfigurations, 'optionalAccess', _148 => _148.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context.projectName], 'optionalAccess', _152 => _152.root])) {
|
|
3219
3241
|
throw new Error(
|
|
3220
3242
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3221
3243
|
);
|
|
@@ -3224,10 +3246,10 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
3224
3246
|
...options,
|
|
3225
3247
|
projectRoot: (
|
|
3226
3248
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3227
|
-
_optionalChain([context, 'access',
|
|
3249
|
+
_optionalChain([context, 'access', _153 => _153.projectsConfigurations, 'access', _154 => _154.projects, 'optionalAccess', _155 => _155[context.projectName], 'access', _156 => _156.root])
|
|
3228
3250
|
),
|
|
3229
3251
|
name: context.projectName,
|
|
3230
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
3252
|
+
sourceRoot: _optionalChain([context, 'access', _157 => _157.projectsConfigurations, 'access', _158 => _158.projects, 'optionalAccess', _159 => _159[context.projectName], 'optionalAccess', _160 => _160.sourceRoot]),
|
|
3231
3253
|
format: options.format,
|
|
3232
3254
|
platform: options.platform
|
|
3233
3255
|
});
|
|
@@ -3267,12 +3289,12 @@ async function napiExecutor(options, context, config) {
|
|
|
3267
3289
|
const { NapiCli } = await jiti.import(
|
|
3268
3290
|
jiti.esmResolve("@napi-rs/cli")
|
|
3269
3291
|
);
|
|
3270
|
-
if (!_optionalChain([context, 'access',
|
|
3292
|
+
if (!_optionalChain([context, 'access', _161 => _161.projectGraph, 'optionalAccess', _162 => _162.nodes, 'access', _163 => _163[_nullishCoalesce(context.projectName, () => ( ""))]])) {
|
|
3271
3293
|
throw new Error(
|
|
3272
3294
|
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
3273
3295
|
);
|
|
3274
3296
|
}
|
|
3275
|
-
const projectRoot = _optionalChain([context, 'access',
|
|
3297
|
+
const projectRoot = _optionalChain([context, 'access', _164 => _164.projectGraph, 'optionalAccess', _165 => _165.nodes, 'access', _166 => _166[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _167 => _167.data, 'access', _168 => _168.root]);
|
|
3276
3298
|
const packageJson = _chunkS6LG3LANjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
3277
3299
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
3278
3300
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
@@ -3280,7 +3302,7 @@ async function napiExecutor(options, context, config) {
|
|
|
3280
3302
|
const napi = new NapiCli();
|
|
3281
3303
|
const normalizedOptions = { ...options };
|
|
3282
3304
|
const metadata = cargoMetadata();
|
|
3283
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess',
|
|
3305
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _169 => _169.target_directory]) || _chunkS6LG3LANjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
3284
3306
|
normalizedOptions.outputDir = options.outputPath;
|
|
3285
3307
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
3286
3308
|
if (options.cwd) {
|
|
@@ -3512,15 +3534,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
3512
3534
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3513
3535
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
3514
3536
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
3515
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
3537
|
+
if (!_optionalChain([context, 'optionalAccess', _170 => _170.projectName]) || !_optionalChain([context, 'access', _171 => _171.projectsConfigurations, 'optionalAccess', _172 => _172.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3516
3538
|
throw new Error(
|
|
3517
3539
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
3518
3540
|
);
|
|
3519
3541
|
}
|
|
3520
3542
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
3521
3543
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
3522
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
3523
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
3544
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _173 => _173.projectsConfigurations, 'access', _174 => _174.projects, 'access', _175 => _175[context.projectName], 'optionalAccess', _176 => _176.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
3545
|
+
_nullishCoalesce(_optionalChain([context, 'access', _177 => _177.projectsConfigurations, 'access', _178 => _178.projects, 'access', _179 => _179[context.projectName], 'optionalAccess', _180 => _180.root]), () => ( "./")),
|
|
3524
3546
|
"src"
|
|
3525
3547
|
)))
|
|
3526
3548
|
}).then((result) => {
|
|
@@ -3624,7 +3646,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3624
3646
|
const projectJson = JSON.parse(projectJsonFile);
|
|
3625
3647
|
const projectName = projectJson.name;
|
|
3626
3648
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
3627
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
3649
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _181 => _181.projects, 'optionalAccess', _182 => _182[projectName]])) {
|
|
3628
3650
|
throw new Error(
|
|
3629
3651
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
3630
3652
|
);
|
|
@@ -3845,7 +3867,7 @@ async function build3(options) {
|
|
|
3845
3867
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3846
3868
|
async function tsdownExecutorFn(options, context, config) {
|
|
3847
3869
|
writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
3848
|
-
if (!_optionalChain([context, 'access',
|
|
3870
|
+
if (!_optionalChain([context, 'access', _183 => _183.projectsConfigurations, 'optionalAccess', _184 => _184.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _185 => _185.projectsConfigurations, 'access', _186 => _186.projects, 'access', _187 => _187[context.projectName], 'optionalAccess', _188 => _188.root])) {
|
|
3849
3871
|
throw new Error(
|
|
3850
3872
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3851
3873
|
);
|
|
@@ -3854,10 +3876,10 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
3854
3876
|
...options,
|
|
3855
3877
|
projectRoot: (
|
|
3856
3878
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3857
|
-
_optionalChain([context, 'access',
|
|
3879
|
+
_optionalChain([context, 'access', _189 => _189.projectsConfigurations, 'access', _190 => _190.projects, 'optionalAccess', _191 => _191[context.projectName], 'access', _192 => _192.root])
|
|
3858
3880
|
),
|
|
3859
3881
|
name: context.projectName,
|
|
3860
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
3882
|
+
sourceRoot: _optionalChain([context, 'access', _193 => _193.projectsConfigurations, 'access', _194 => _194.projects, 'optionalAccess', _195 => _195[context.projectName], 'optionalAccess', _196 => _196.sourceRoot]),
|
|
3861
3883
|
format: options.format,
|
|
3862
3884
|
platform: options.platform
|
|
3863
3885
|
});
|
|
@@ -3927,7 +3949,7 @@ _chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
|
3927
3949
|
|
|
3928
3950
|
async function unbuildExecutorFn(options, context, config) {
|
|
3929
3951
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3930
|
-
if (!_optionalChain([context, 'access',
|
|
3952
|
+
if (!_optionalChain([context, 'access', _197 => _197.projectsConfigurations, 'optionalAccess', _198 => _198.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3931
3953
|
throw new Error(
|
|
3932
3954
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
3933
3955
|
);
|
|
@@ -4049,7 +4071,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
4049
4071
|
);
|
|
4050
4072
|
config = await getConfig(workspaceRoot2);
|
|
4051
4073
|
}
|
|
4052
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
4074
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _199 => _199.hooks, 'optionalAccess', _200 => _200.applyDefaultOptions])) {
|
|
4053
4075
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
4054
4076
|
options = await Promise.resolve(
|
|
4055
4077
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -4066,7 +4088,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4066
4088
|
{ workspaceRoot: tree.root, config },
|
|
4067
4089
|
applyWorkspaceBaseTokens
|
|
4068
4090
|
);
|
|
4069
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
4091
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _201 => _201.hooks, 'optionalAccess', _202 => _202.preProcess])) {
|
|
4070
4092
|
writeDebug("Running the preProcess hook...", config);
|
|
4071
4093
|
await Promise.resolve(
|
|
4072
4094
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -4077,15 +4099,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
4077
4099
|
generatorFn(tree, tokenized, config)
|
|
4078
4100
|
);
|
|
4079
4101
|
if (result) {
|
|
4080
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
4102
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _203 => _203.error, 'optionalAccess', _204 => _204.message]) && typeof _optionalChain([result, 'optionalAccess', _205 => _205.error, 'optionalAccess', _206 => _206.message]) === "string" && _optionalChain([result, 'optionalAccess', _207 => _207.error, 'optionalAccess', _208 => _208.name]) && typeof _optionalChain([result, 'optionalAccess', _209 => _209.error, 'optionalAccess', _210 => _210.name]) === "string") {
|
|
4081
4103
|
throw new Error(`The ${name} generator failed to run`, {
|
|
4082
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
4104
|
+
cause: _optionalChain([result, 'optionalAccess', _211 => _211.error])
|
|
4083
4105
|
});
|
|
4084
4106
|
} else if (result.success && result.data) {
|
|
4085
4107
|
return result;
|
|
4086
4108
|
}
|
|
4087
4109
|
}
|
|
4088
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
4110
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _212 => _212.hooks, 'optionalAccess', _213 => _213.postProcess])) {
|
|
4089
4111
|
writeDebug("Running the postProcess hook...", config);
|
|
4090
4112
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
4091
4113
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -4219,15 +4241,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4219
4241
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
4220
4242
|
let repository = {
|
|
4221
4243
|
type: "github",
|
|
4222
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
4244
|
+
url: _optionalChain([config, 'optionalAccess', _214 => _214.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _215 => _215.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _216 => _216.organization]) : _optionalChain([config, 'optionalAccess', _217 => _217.organization, 'optionalAccess', _218 => _218.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _219 => _219.namespace]) || _optionalChain([config, 'optionalAccess', _220 => _220.name]) || "repository"}.git`
|
|
4223
4245
|
};
|
|
4224
4246
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
4225
4247
|
if (tree.exists("package.json")) {
|
|
4226
4248
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
4227
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4249
|
+
if (_optionalChain([packageJson, 'optionalAccess', _221 => _221.repository])) {
|
|
4228
4250
|
repository = packageJson.repository;
|
|
4229
4251
|
}
|
|
4230
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4252
|
+
if (_optionalChain([packageJson, 'optionalAccess', _222 => _222.description])) {
|
|
4231
4253
|
description = packageJson.description;
|
|
4232
4254
|
}
|
|
4233
4255
|
}
|
|
@@ -4282,9 +4304,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4282
4304
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
4283
4305
|
...json,
|
|
4284
4306
|
pnpm: {
|
|
4285
|
-
..._optionalChain([json, 'optionalAccess',
|
|
4307
|
+
..._optionalChain([json, 'optionalAccess', _223 => _223.pnpm]),
|
|
4286
4308
|
overrides: {
|
|
4287
|
-
..._optionalChain([json, 'optionalAccess',
|
|
4309
|
+
..._optionalChain([json, 'optionalAccess', _224 => _224.pnpm, 'optionalAccess', _225 => _225.overrides]),
|
|
4288
4310
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
4289
4311
|
}
|
|
4290
4312
|
}
|
|
@@ -4302,10 +4324,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
4302
4324
|
]);
|
|
4303
4325
|
if (tree.exists("package.json")) {
|
|
4304
4326
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
4305
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4327
|
+
if (_optionalChain([packageJson, 'optionalAccess', _226 => _226.repository])) {
|
|
4306
4328
|
repository = packageJson.repository;
|
|
4307
4329
|
}
|
|
4308
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4330
|
+
if (_optionalChain([packageJson, 'optionalAccess', _227 => _227.description])) {
|
|
4309
4331
|
description = packageJson.description;
|
|
4310
4332
|
}
|
|
4311
4333
|
}
|
|
@@ -4342,22 +4364,22 @@ function getOutputPath(options) {
|
|
|
4342
4364
|
function createProjectTsConfigJson(tree, options) {
|
|
4343
4365
|
const tsconfig = {
|
|
4344
4366
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
4345
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4367
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _228 => _228.tsconfigOptions]), () => ( {})),
|
|
4346
4368
|
compilerOptions: {
|
|
4347
4369
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4348
4370
|
outDir: _chunkS6LG3LANjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4349
4371
|
noEmit: true,
|
|
4350
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4372
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _229 => _229.tsconfigOptions, 'optionalAccess', _230 => _230.compilerOptions]), () => ( {}))
|
|
4351
4373
|
},
|
|
4352
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4374
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _231 => _231.tsconfigOptions, 'optionalAccess', _232 => _232.files]), () => ( []))],
|
|
4353
4375
|
include: [
|
|
4354
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4376
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _233 => _233.tsconfigOptions, 'optionalAccess', _234 => _234.include]), () => ( [])),
|
|
4355
4377
|
"src/**/*.ts",
|
|
4356
4378
|
"src/**/*.js",
|
|
4357
4379
|
"bin/**/*"
|
|
4358
4380
|
],
|
|
4359
4381
|
exclude: [
|
|
4360
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4382
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _235 => _235.tsconfigOptions, 'optionalAccess', _236 => _236.exclude]), () => ( [])),
|
|
4361
4383
|
"jest.config.ts",
|
|
4362
4384
|
"src/**/*.spec.ts",
|
|
4363
4385
|
"src/**/*.test.ts"
|
|
@@ -4367,8 +4389,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4367
4389
|
}
|
|
4368
4390
|
async function normalizeOptions(tree, options, config) {
|
|
4369
4391
|
let importPath = options.importPath;
|
|
4370
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
4371
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
4392
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _237 => _237.namespace])) {
|
|
4393
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _238 => _238.namespace])}/${options.name}`;
|
|
4372
4394
|
}
|
|
4373
4395
|
if (options.publishable) {
|
|
4374
4396
|
if (!importPath) {
|
|
@@ -4534,7 +4556,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
4534
4556
|
);
|
|
4535
4557
|
}
|
|
4536
4558
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
4537
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
4559
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
4538
4560
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
4539
4561
|
);
|
|
4540
4562
|
writeTrace(
|
|
@@ -1310,6 +1310,18 @@ function applyDefaultConfig(config) {
|
|
|
1310
1310
|
return config;
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
+
// ../config-tools/src/utilities/toml.ts
|
|
1314
|
+
init_esm_shims();
|
|
1315
|
+
import TOML from "@ltd/j-toml";
|
|
1316
|
+
function parseCargoToml(cargoString) {
|
|
1317
|
+
if (!cargoString) {
|
|
1318
|
+
throw new Error("Cargo.toml is empty");
|
|
1319
|
+
}
|
|
1320
|
+
return TOML.parse(cargoString, {
|
|
1321
|
+
x: { comment: true }
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1313
1325
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
1314
1326
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
1315
1327
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
@@ -2234,6 +2246,7 @@ import {
|
|
|
2234
2246
|
execSync,
|
|
2235
2247
|
spawn
|
|
2236
2248
|
} from "node:child_process";
|
|
2249
|
+
import { readFileSync } from "node:fs";
|
|
2237
2250
|
import { relative as relative2 } from "node:path";
|
|
2238
2251
|
var INVALID_CARGO_ARGS = [
|
|
2239
2252
|
"allFeatures",
|
|
@@ -2267,8 +2280,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2267
2280
|
args.push(`--${key}`, String(value));
|
|
2268
2281
|
}
|
|
2269
2282
|
}
|
|
2270
|
-
if (context.projectName) {
|
|
2271
|
-
|
|
2283
|
+
if (context.projectName && context.projectsConfigurations?.projects && context.projectsConfigurations?.projects[context.projectName] && context.projectsConfigurations?.projects[context.projectName]?.root && context.projectsConfigurations?.projects[context.projectName]?.root.includes("Cargo.toml")) {
|
|
2284
|
+
const cargoToml = parseCargoToml(
|
|
2285
|
+
readFileSync(
|
|
2286
|
+
joinPathFragments(
|
|
2287
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
2288
|
+
"Cargo.toml"
|
|
2289
|
+
),
|
|
2290
|
+
"utf-8"
|
|
2291
|
+
)
|
|
2292
|
+
);
|
|
2293
|
+
args.push("-p", cargoToml.package.name);
|
|
2272
2294
|
}
|
|
2273
2295
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
2274
2296
|
args.push("--all-features");
|
|
@@ -2463,7 +2485,7 @@ var executor_default5 = withRunExecutor(
|
|
|
2463
2485
|
init_esm_shims();
|
|
2464
2486
|
import { joinPathFragments as joinPathFragments2 } from "@nx/devkit";
|
|
2465
2487
|
import { execSync as execSync2 } from "node:child_process";
|
|
2466
|
-
import { readFileSync } from "node:fs";
|
|
2488
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2467
2489
|
import https from "node:https";
|
|
2468
2490
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
2469
2491
|
|
|
@@ -2600,7 +2622,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2600
2622
|
init_esm_shims();
|
|
2601
2623
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
2602
2624
|
import { Glob } from "glob";
|
|
2603
|
-
import { existsSync as existsSync4, readFileSync as
|
|
2625
|
+
import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
|
|
2604
2626
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
2605
2627
|
import {
|
|
2606
2628
|
createProjectGraphAsync,
|
|
@@ -2676,7 +2698,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
2676
2698
|
"package.json"
|
|
2677
2699
|
);
|
|
2678
2700
|
if (existsSync4(depPackageJsonPath)) {
|
|
2679
|
-
const depPackageJsonContent =
|
|
2701
|
+
const depPackageJsonContent = readFileSync3(
|
|
2680
2702
|
depPackageJsonPath,
|
|
2681
2703
|
"utf8"
|
|
2682
2704
|
);
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-ICQF6LXX.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3KJGVJQCjs = require('./chunk-3KJGVJQC.js');
|
|
5
5
|
require('./chunk-S6LG3LAN.js');
|
|
6
6
|
require('./chunk-5LBXV7EV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunk3KJGVJQCjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkVZJHYHPDjs = require('./chunk-VZJHYHPD.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3KJGVJQCjs = require('./chunk-3KJGVJQC.js');
|
|
8
8
|
require('./chunk-S6LG3LAN.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunk5LBXV7EVjs = require('./chunk-5LBXV7EV.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunk5LBXV7EVjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunk3KJGVJQCjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunk5LBXV7EVjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunk5LBXV7EVjs.__reExport.call(void 0, index_exports, _chunk5LBXV7EVjs.__toESM.call(void 0, _chunkVZJHYHPDjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunk3KJGVJQCjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3KJGVJQCjs = require('../../../chunk-3KJGVJQC.js');
|
|
5
5
|
require('../../../chunk-S6LG3LAN.js');
|
|
6
6
|
require('../../../chunk-5LBXV7EV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunk3KJGVJQCjs.generator_default; exports.initGeneratorFn = _chunk3KJGVJQCjs.initGeneratorFn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/projen",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.264",
|
|
4
4
|
"description": "Tools for managing Projen configuration automation within a Nx workspace.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iac",
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
"dependencies": {
|
|
116
116
|
"@aws/pdk": "^0.25.17",
|
|
117
117
|
"@nx/devkit": "22.7.5",
|
|
118
|
-
"@storm-software/config": "1.138.
|
|
119
|
-
"@storm-software/config-tools": "1.190.
|
|
120
|
-
"@storm-software/workspace-tools": "1.296.
|
|
118
|
+
"@storm-software/config": "1.138.18",
|
|
119
|
+
"@storm-software/config-tools": "1.190.81",
|
|
120
|
+
"@storm-software/workspace-tools": "1.296.61"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
123
|
"@types/node": "^25.9.4",
|
|
@@ -134,5 +134,5 @@
|
|
|
134
134
|
"publishConfig": { "access": "public" },
|
|
135
135
|
"executors": "./executors.json",
|
|
136
136
|
"generators": "./generators.json",
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "61f91d519ffe77bde1a06627ba2d7dcda4c7ce20"
|
|
138
138
|
}
|