@storm-software/projen 0.20.2 → 0.20.3
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 +7 -0
- package/README.md +1 -1
- package/dist/{chunk-IRRWQAPT.js → chunk-56BLXRJY.js} +5 -0
- package/dist/{chunk-NYLT2HUX.mjs → chunk-N6LDSJWM.mjs} +20 -15
- 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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.20.2](https://github.com/storm-software/storm-ops/releases/tag/projen%400.20.2) (2025-09-20)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([b5a7b29f8](https://github.com/storm-software/storm-ops/commit/b5a7b29f8))
|
|
11
|
+
|
|
5
12
|
## [0.20.1](https://github.com/storm-software/storm-ops/releases/tag/projen%400.20.1) (2025-09-19)
|
|
6
13
|
|
|
7
14
|
### 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 -->
|
|
@@ -410,6 +410,7 @@ var rootFiles = [
|
|
|
410
410
|
var rootDirectories = [
|
|
411
411
|
".storm-workspace",
|
|
412
412
|
".nx",
|
|
413
|
+
".git",
|
|
413
414
|
".github",
|
|
414
415
|
".vscode",
|
|
415
416
|
".verdaccio"
|
|
@@ -1284,6 +1285,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1284
1285
|
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1285
1286
|
|
|
1286
1287
|
|
|
1288
|
+
|
|
1287
1289
|
// ../config-tools/src/env/get-env.ts
|
|
1288
1290
|
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
1289
1291
|
var getExtensionEnv = (extensionName) => {
|
|
@@ -1896,6 +1898,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
|
|
|
1896
1898
|
configFile,
|
|
1897
1899
|
defaultConfig
|
|
1898
1900
|
);
|
|
1901
|
+
if (!configInput.variant) {
|
|
1902
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkGZV7AWC7js.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkGZV7AWC7js.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkGZV7AWC7js.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkGZV7AWC7js.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1903
|
+
}
|
|
1899
1904
|
try {
|
|
1900
1905
|
result = applyDefaultConfig(
|
|
1901
1906
|
await workspaceConfigSchema.parseAsync(configInput)
|
|
@@ -411,6 +411,7 @@ var rootFiles = [
|
|
|
411
411
|
var rootDirectories = [
|
|
412
412
|
".storm-workspace",
|
|
413
413
|
".nx",
|
|
414
|
+
".git",
|
|
414
415
|
".github",
|
|
415
416
|
".vscode",
|
|
416
417
|
".verdaccio"
|
|
@@ -1284,6 +1285,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1284
1285
|
// ../config-tools/src/create-storm-config.ts
|
|
1285
1286
|
init_esm_shims();
|
|
1286
1287
|
import defu2 from "defu";
|
|
1288
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
1287
1289
|
|
|
1288
1290
|
// ../config-tools/src/env/get-env.ts
|
|
1289
1291
|
init_esm_shims();
|
|
@@ -1897,6 +1899,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
|
|
|
1897
1899
|
configFile,
|
|
1898
1900
|
defaultConfig
|
|
1899
1901
|
);
|
|
1902
|
+
if (!configInput.variant) {
|
|
1903
|
+
configInput.variant = existsSync3(joinPaths(_workspaceRoot, "nx.json")) || existsSync3(joinPaths(_workspaceRoot, ".nx")) || existsSync3(joinPaths(_workspaceRoot, "lerna.json")) || existsSync3(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1904
|
+
}
|
|
1900
1905
|
try {
|
|
1901
1906
|
result = applyDefaultConfig(
|
|
1902
1907
|
await workspaceConfigSchema.parseAsync(configInput)
|
|
@@ -2461,7 +2466,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
2461
2466
|
init_esm_shims();
|
|
2462
2467
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
2463
2468
|
import { Glob } from "glob";
|
|
2464
|
-
import { existsSync as
|
|
2469
|
+
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
2465
2470
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
2466
2471
|
import {
|
|
2467
2472
|
createProjectGraphAsync,
|
|
@@ -2501,7 +2506,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2501
2506
|
projectNode.data.root,
|
|
2502
2507
|
"package.json"
|
|
2503
2508
|
);
|
|
2504
|
-
if (
|
|
2509
|
+
if (existsSync4(projectPackageJsonPath)) {
|
|
2505
2510
|
const projectPackageJsonContent = await readFile3(
|
|
2506
2511
|
projectPackageJsonPath,
|
|
2507
2512
|
"utf8"
|
|
@@ -2536,7 +2541,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2536
2541
|
projectConfigurations.projects[dep].root,
|
|
2537
2542
|
"package.json"
|
|
2538
2543
|
);
|
|
2539
|
-
if (
|
|
2544
|
+
if (existsSync4(depPackageJsonPath)) {
|
|
2540
2545
|
const depPackageJsonContent = readFileSync2(
|
|
2541
2546
|
depPackageJsonPath,
|
|
2542
2547
|
"utf8"
|
|
@@ -2639,7 +2644,7 @@ init_esm_shims();
|
|
|
2639
2644
|
|
|
2640
2645
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
2641
2646
|
init_esm_shims();
|
|
2642
|
-
import { existsSync as
|
|
2647
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
2643
2648
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
2644
2649
|
|
|
2645
2650
|
// ../build-tools/src/utilities/task-graph.ts
|
|
@@ -2685,7 +2690,7 @@ import {
|
|
|
2685
2690
|
readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2
|
|
2686
2691
|
} from "@nx/devkit";
|
|
2687
2692
|
import defu4 from "defu";
|
|
2688
|
-
import { existsSync as
|
|
2693
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
2689
2694
|
import hf from "node:fs/promises";
|
|
2690
2695
|
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
2691
2696
|
|
|
@@ -2753,7 +2758,7 @@ async function resolveContext(userOptions) {
|
|
|
2753
2758
|
projectRoot,
|
|
2754
2759
|
"project.json"
|
|
2755
2760
|
);
|
|
2756
|
-
if (!
|
|
2761
|
+
if (!existsSync6(projectJsonPath)) {
|
|
2757
2762
|
throw new Error("Cannot find project.json configuration");
|
|
2758
2763
|
}
|
|
2759
2764
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
@@ -2772,7 +2777,7 @@ async function resolveContext(userOptions) {
|
|
|
2772
2777
|
options.projectRoot,
|
|
2773
2778
|
"package.json"
|
|
2774
2779
|
);
|
|
2775
|
-
if (!
|
|
2780
|
+
if (!existsSync6(packageJsonPath)) {
|
|
2776
2781
|
throw new Error("Cannot find package.json configuration");
|
|
2777
2782
|
}
|
|
2778
2783
|
const env = getEnv("esbuild", options);
|
|
@@ -2827,17 +2832,17 @@ ${formatLogMessage(context.options)}`,
|
|
|
2827
2832
|
// ../esbuild/src/package-json.ts
|
|
2828
2833
|
init_esm_shims();
|
|
2829
2834
|
import { writeJsonFile } from "@nx/devkit";
|
|
2830
|
-
import { existsSync as
|
|
2835
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
2831
2836
|
import hf2 from "node:fs/promises";
|
|
2832
2837
|
async function generatePackageJson(context) {
|
|
2833
|
-
if (context.options.generatePackageJson !== false &&
|
|
2838
|
+
if (context.options.generatePackageJson !== false && existsSync7(joinPaths(context.options.projectRoot, "package.json"))) {
|
|
2834
2839
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2835
2840
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2836
2841
|
const packageJsonPath = joinPaths(
|
|
2837
2842
|
context.options.projectRoot,
|
|
2838
2843
|
"project.json"
|
|
2839
2844
|
);
|
|
2840
|
-
if (!
|
|
2845
|
+
if (!existsSync7(packageJsonPath)) {
|
|
2841
2846
|
throw new Error("Cannot find package.json configuration");
|
|
2842
2847
|
}
|
|
2843
2848
|
const packageJsonFile = await hf2.readFile(
|
|
@@ -3091,7 +3096,7 @@ import {
|
|
|
3091
3096
|
createProjectGraphAsync as createProjectGraphAsync3,
|
|
3092
3097
|
readCachedProjectGraph as readCachedProjectGraph2
|
|
3093
3098
|
} from "@nx/devkit";
|
|
3094
|
-
import { existsSync as
|
|
3099
|
+
import { existsSync as existsSync9 } from "node:fs";
|
|
3095
3100
|
import { readFile as readFile6, writeFile as writeFile3 } from "node:fs/promises";
|
|
3096
3101
|
import { format } from "prettier";
|
|
3097
3102
|
|
|
@@ -3107,7 +3112,7 @@ import { coerce, gt, valid } from "semver";
|
|
|
3107
3112
|
|
|
3108
3113
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3109
3114
|
init_esm_shims();
|
|
3110
|
-
import { existsSync as
|
|
3115
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
3111
3116
|
import { readFile as readFile5, writeFile as writeFile2 } from "node:fs/promises";
|
|
3112
3117
|
import { parse, stringify } from "yaml";
|
|
3113
3118
|
|
|
@@ -3123,7 +3128,7 @@ import {
|
|
|
3123
3128
|
readJsonFile
|
|
3124
3129
|
} from "@nx/devkit";
|
|
3125
3130
|
import { execFileSync } from "child_process";
|
|
3126
|
-
import { existsSync as
|
|
3131
|
+
import { existsSync as existsSync10 } from "node:fs";
|
|
3127
3132
|
import { readFile as readFile7, writeFile as writeFile4 } from "node:fs/promises";
|
|
3128
3133
|
import { dirname, resolve } from "path";
|
|
3129
3134
|
import { format as format2 } from "prettier";
|
|
@@ -5110,7 +5115,7 @@ import {
|
|
|
5110
5115
|
readJsonFile as readJsonFile2,
|
|
5111
5116
|
workspaceRoot as workspaceRoot2
|
|
5112
5117
|
} from "@nx/devkit";
|
|
5113
|
-
import { existsSync as
|
|
5118
|
+
import { existsSync as existsSync11 } from "node:fs";
|
|
5114
5119
|
import { join as join4 } from "node:path";
|
|
5115
5120
|
import {
|
|
5116
5121
|
getNpmLockfileDependencies,
|
|
@@ -5140,7 +5145,7 @@ import {
|
|
|
5140
5145
|
readJsonFile as readJsonFile3
|
|
5141
5146
|
} from "@nx/devkit";
|
|
5142
5147
|
import defu6 from "defu";
|
|
5143
|
-
import { existsSync as
|
|
5148
|
+
import { existsSync as existsSync12 } from "node:fs";
|
|
5144
5149
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
5145
5150
|
|
|
5146
5151
|
// ../workspace-tools/src/utils/typia-transform.ts
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-JEFKKWZ2.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk56BLXRJYjs = require('./chunk-56BLXRJY.js');
|
|
5
5
|
require('./chunk-GZV7AWC7.js');
|
|
6
6
|
require('./chunk-PZ7N3OYJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunk56BLXRJYjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunk43C4WGNJjs = require('./chunk-43C4WGNJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk56BLXRJYjs = require('./chunk-56BLXRJY.js');
|
|
8
8
|
require('./chunk-GZV7AWC7.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunkPZ7N3OYJjs = require('./chunk-PZ7N3OYJ.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkPZ7N3OYJjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunk56BLXRJYjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkPZ7N3OYJjs.__reExport.call(void 0, index_exports, _chunkPZ7N3OYJjs.__toESM.call(void 0, _chunk43C4WGNJjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunk56BLXRJYjs.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 _chunk56BLXRJYjs = require('../../../chunk-56BLXRJY.js');
|
|
5
5
|
require('../../../chunk-GZV7AWC7.js');
|
|
6
6
|
require('../../../chunk-PZ7N3OYJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunk56BLXRJYjs.generator_default; exports.initGeneratorFn = _chunk56BLXRJYjs.initGeneratorFn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/projen",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing Projen configuration automation within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
143
|
"executors": "./executors.json",
|
|
144
144
|
"generators": "./generators.json",
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "4d44644a8d56ed0d61e060cf74147fcc83210a5c"
|
|
146
146
|
}
|