@storm-software/projen 0.20.2 → 0.20.4
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-IRRWQAPT.js → chunk-3MCLGPTO.js} +6 -0
- package/dist/{chunk-NYLT2HUX.mjs → chunk-SJU5D3RI.mjs} +21 -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,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.20.3](https://github.com/storm-software/storm-ops/releases/tag/projen%400.20.3) (2025-09-20)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([2eed9fa1f](https://github.com/storm-software/storm-ops/commit/2eed9fa1f))
|
|
11
|
+
|
|
12
|
+
## [0.20.2](https://github.com/storm-software/storm-ops/releases/tag/projen%400.20.2) (2025-09-20)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Update workspace package links
|
|
17
|
+
([b5a7b29f8](https://github.com/storm-software/storm-ops/commit/b5a7b29f8))
|
|
18
|
+
|
|
5
19
|
## [0.20.1](https://github.com/storm-software/storm-ops/releases/tag/projen%400.20.1) (2025-09-19)
|
|
6
20
|
|
|
7
21
|
### 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)
|
|
@@ -3102,6 +3107,7 @@ _chunkPZ7N3OYJjs.init_cjs_shims.call(void 0, );
|
|
|
3102
3107
|
|
|
3103
3108
|
|
|
3104
3109
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3110
|
+
var _dist = require('packages/config-tools/dist');
|
|
3105
3111
|
var _semver = require('semver');
|
|
3106
3112
|
|
|
3107
3113
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
@@ -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
|
|
|
@@ -3103,11 +3108,12 @@ init_esm_shims();
|
|
|
3103
3108
|
import { exec as exec2 } from "node:child_process";
|
|
3104
3109
|
|
|
3105
3110
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
3111
|
+
import { writeWarning as writeWarning2 } from "packages/config-tools/dist";
|
|
3106
3112
|
import { coerce, gt, valid } from "semver";
|
|
3107
3113
|
|
|
3108
3114
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
3109
3115
|
init_esm_shims();
|
|
3110
|
-
import { existsSync as
|
|
3116
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
3111
3117
|
import { readFile as readFile5, writeFile as writeFile2 } from "node:fs/promises";
|
|
3112
3118
|
import { parse, stringify } from "yaml";
|
|
3113
3119
|
|
|
@@ -3123,7 +3129,7 @@ import {
|
|
|
3123
3129
|
readJsonFile
|
|
3124
3130
|
} from "@nx/devkit";
|
|
3125
3131
|
import { execFileSync } from "child_process";
|
|
3126
|
-
import { existsSync as
|
|
3132
|
+
import { existsSync as existsSync10 } from "node:fs";
|
|
3127
3133
|
import { readFile as readFile7, writeFile as writeFile4 } from "node:fs/promises";
|
|
3128
3134
|
import { dirname, resolve } from "path";
|
|
3129
3135
|
import { format as format2 } from "prettier";
|
|
@@ -5110,7 +5116,7 @@ import {
|
|
|
5110
5116
|
readJsonFile as readJsonFile2,
|
|
5111
5117
|
workspaceRoot as workspaceRoot2
|
|
5112
5118
|
} from "@nx/devkit";
|
|
5113
|
-
import { existsSync as
|
|
5119
|
+
import { existsSync as existsSync11 } from "node:fs";
|
|
5114
5120
|
import { join as join4 } from "node:path";
|
|
5115
5121
|
import {
|
|
5116
5122
|
getNpmLockfileDependencies,
|
|
@@ -5140,7 +5146,7 @@ import {
|
|
|
5140
5146
|
readJsonFile as readJsonFile3
|
|
5141
5147
|
} from "@nx/devkit";
|
|
5142
5148
|
import defu6 from "defu";
|
|
5143
|
-
import { existsSync as
|
|
5149
|
+
import { existsSync as existsSync12 } from "node:fs";
|
|
5144
5150
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
5145
5151
|
|
|
5146
5152
|
// ../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 _chunk3MCLGPTOjs = require('./chunk-3MCLGPTO.js');
|
|
5
5
|
require('./chunk-GZV7AWC7.js');
|
|
6
6
|
require('./chunk-PZ7N3OYJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunk3MCLGPTOjs.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 _chunk3MCLGPTOjs = require('./chunk-3MCLGPTO.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: () => _chunk3MCLGPTOjs.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 = _chunk3MCLGPTOjs.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 _chunk3MCLGPTOjs = require('../../../chunk-3MCLGPTO.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 = _chunk3MCLGPTOjs.generator_default; exports.initGeneratorFn = _chunk3MCLGPTOjs.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.4",
|
|
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": "5ba1714ea3ed713513913707565190fad212ee67"
|
|
146
146
|
}
|