@storm-software/projen 0.21.26 → 0.21.28
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 +28 -0
- package/README.md +1 -2
- package/dist/{chunk-VEXO5ZNX.js → chunk-UXVQWB4X.js} +51 -51
- package/dist/{chunk-YVG5AMHE.mjs → chunk-V7KK2D6Z.mjs} +56 -56
- 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,34 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.21.27](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.27) (11/12/2025)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([ce28ea33d](https://github.com/storm-software/storm-ops/commit/ce28ea33d))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **workspace-tools** to **v1.292.27**
|
|
15
|
+
- Updated **config-tools** to **v1.188.27**
|
|
16
|
+
- Updated **config** to **v1.134.27**
|
|
17
|
+
|
|
18
|
+
## [0.21.26](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.26) (11/12/2025)
|
|
19
|
+
|
|
20
|
+
### Miscellaneous
|
|
21
|
+
|
|
22
|
+
- **monorepo:** Update workspace `Cargo.lock` file
|
|
23
|
+
([cf76a171f](https://github.com/storm-software/storm-ops/commit/cf76a171f))
|
|
24
|
+
- **monorepo:** Regenerate README markdown files
|
|
25
|
+
([a27c96498](https://github.com/storm-software/storm-ops/commit/a27c96498))
|
|
26
|
+
|
|
27
|
+
### Updated Dependencies
|
|
28
|
+
|
|
29
|
+
- Updated **workspace-tools** to **v1.292.26**
|
|
30
|
+
- Updated **config-tools** to **v1.188.26**
|
|
31
|
+
- Updated **config** to **v1.134.26**
|
|
32
|
+
|
|
5
33
|
## [0.21.25](https://github.com/storm-software/storm-ops/releases/tag/projen%400.21.25) (11/12/2025)
|
|
6
34
|
|
|
7
35
|
### 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 -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Projen Tools](#storm-projen-tools)
|
|
@@ -1129,10 +1129,10 @@ async function getPackageJsonConfig(root) {
|
|
|
1129
1129
|
let name = void 0;
|
|
1130
1130
|
let namespace = void 0;
|
|
1131
1131
|
let repository = void 0;
|
|
1132
|
-
const
|
|
1133
|
-
if (_fs.existsSync.call(void 0, _path.join.call(void 0,
|
|
1132
|
+
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1133
|
+
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot2, "package.json"))) {
|
|
1134
1134
|
const file = await _promises.readFile.call(void 0,
|
|
1135
|
-
_chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
1135
|
+
_chunkWFD75WAFjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
1136
1136
|
"utf8"
|
|
1137
1137
|
);
|
|
1138
1138
|
if (file) {
|
|
@@ -1166,7 +1166,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
return {
|
|
1169
|
-
workspaceRoot:
|
|
1169
|
+
workspaceRoot: workspaceRoot2,
|
|
1170
1170
|
name,
|
|
1171
1171
|
namespace,
|
|
1172
1172
|
repository,
|
|
@@ -1872,10 +1872,10 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1872
1872
|
// ../config-tools/src/create-storm-config.ts
|
|
1873
1873
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1874
1874
|
var _static_cache = void 0;
|
|
1875
|
-
var createStormWorkspaceConfig = async (extensionName, schema,
|
|
1875
|
+
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, skipLogs = false, useDefault = true) => {
|
|
1876
1876
|
let result;
|
|
1877
1877
|
if (!_optionalChain([_static_cache, 'optionalAccess', _62 => _62.data]) || !_optionalChain([_static_cache, 'optionalAccess', _63 => _63.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1878
|
-
let _workspaceRoot =
|
|
1878
|
+
let _workspaceRoot = workspaceRoot2;
|
|
1879
1879
|
if (!_workspaceRoot) {
|
|
1880
1880
|
_workspaceRoot = findWorkspaceRoot();
|
|
1881
1881
|
}
|
|
@@ -1945,11 +1945,11 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
1945
1945
|
_extension_cache.set(extension_cache_key, extension);
|
|
1946
1946
|
return extension;
|
|
1947
1947
|
};
|
|
1948
|
-
var loadStormWorkspaceConfig = async (
|
|
1948
|
+
var loadStormWorkspaceConfig = async (workspaceRoot2, skipLogs = false) => {
|
|
1949
1949
|
const config = await createStormWorkspaceConfig(
|
|
1950
1950
|
void 0,
|
|
1951
1951
|
void 0,
|
|
1952
|
-
|
|
1952
|
+
workspaceRoot2,
|
|
1953
1953
|
skipLogs,
|
|
1954
1954
|
true
|
|
1955
1955
|
);
|
|
@@ -1966,15 +1966,15 @@ ${formatLogMessage(config)}`,
|
|
|
1966
1966
|
|
|
1967
1967
|
// ../config-tools/src/get-config.ts
|
|
1968
1968
|
_chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
1969
|
-
function getConfig(
|
|
1970
|
-
return loadStormWorkspaceConfig(
|
|
1969
|
+
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
1970
|
+
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
1971
1971
|
}
|
|
1972
1972
|
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
1973
|
-
let
|
|
1974
|
-
if (!
|
|
1975
|
-
|
|
1973
|
+
let workspaceRoot2 = options.workspaceRoot;
|
|
1974
|
+
if (!workspaceRoot2) {
|
|
1975
|
+
workspaceRoot2 = findWorkspaceRoot(options.cwd);
|
|
1976
1976
|
}
|
|
1977
|
-
return getConfig(
|
|
1977
|
+
return getConfig(workspaceRoot2, skipLogs);
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
1980
|
// ../workspace-tools/src/base/base-executor.ts
|
|
@@ -1989,23 +1989,23 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1989
1989
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1990
1990
|
);
|
|
1991
1991
|
}
|
|
1992
|
-
const
|
|
1993
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root ||
|
|
1994
|
-
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot ||
|
|
1992
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
1993
|
+
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot2;
|
|
1994
|
+
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot2;
|
|
1995
1995
|
const projectName = context.projectName;
|
|
1996
|
-
config.workspaceRoot =
|
|
1996
|
+
config.workspaceRoot = workspaceRoot2;
|
|
1997
1997
|
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
1998
1998
|
if (!executorOptions.skipReadingConfig) {
|
|
1999
1999
|
writeTrace(
|
|
2000
2000
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
2001
|
-
- workspaceRoot: ${
|
|
2001
|
+
- workspaceRoot: ${workspaceRoot2}
|
|
2002
2002
|
- projectRoot: ${projectRoot}
|
|
2003
2003
|
- sourceRoot: ${sourceRoot}
|
|
2004
2004
|
- projectName: ${projectName}
|
|
2005
2005
|
`,
|
|
2006
2006
|
config
|
|
2007
2007
|
);
|
|
2008
|
-
config = await getConfig(
|
|
2008
|
+
config = await getConfig(workspaceRoot2);
|
|
2009
2009
|
}
|
|
2010
2010
|
if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.applyDefaultOptions])) {
|
|
2011
2011
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -2023,7 +2023,7 @@ ${formatLogMessage(options)}
|
|
|
2023
2023
|
const tokenized = await applyWorkspaceTokens(
|
|
2024
2024
|
options,
|
|
2025
2025
|
_defu.defu.call(void 0,
|
|
2026
|
-
{ workspaceRoot:
|
|
2026
|
+
{ workspaceRoot: workspaceRoot2, projectRoot, sourceRoot, projectName, config },
|
|
2027
2027
|
config,
|
|
2028
2028
|
context.projectsConfigurations.projects[context.projectName]
|
|
2029
2029
|
),
|
|
@@ -2154,10 +2154,10 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
return args;
|
|
2156
2156
|
};
|
|
2157
|
-
async function cargoCommand(...args) {
|
|
2157
|
+
async function cargoCommand(workspaceRoot2, ...args) {
|
|
2158
2158
|
console.log(`> cargo ${args.join(" ")}`);
|
|
2159
2159
|
args.push("--color", "always");
|
|
2160
|
-
return await Promise.resolve(runProcess("cargo", ...args));
|
|
2160
|
+
return await Promise.resolve(runProcess(workspaceRoot2, "cargo", ...args));
|
|
2161
2161
|
}
|
|
2162
2162
|
function cargoCommandSync(args = "", options) {
|
|
2163
2163
|
const normalizedOptions = {
|
|
@@ -2195,9 +2195,9 @@ function cargoMetadata() {
|
|
|
2195
2195
|
}
|
|
2196
2196
|
return JSON.parse(output2.output);
|
|
2197
2197
|
}
|
|
2198
|
-
function runProcess(processCmd, ...args) {
|
|
2198
|
+
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
2199
2199
|
const metadata = cargoMetadata();
|
|
2200
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _88 => _88.target_directory]), () => ( _devkit.joinPathFragments.call(void 0,
|
|
2200
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _88 => _88.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot2, "dist")));
|
|
2201
2201
|
return new Promise((resolve2) => {
|
|
2202
2202
|
if (process.env.VERCEL) {
|
|
2203
2203
|
return resolve2({ success: true });
|
|
@@ -2220,7 +2220,7 @@ function runProcess(processCmd, ...args) {
|
|
|
2220
2220
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
2221
2221
|
async function cargoBuildExecutor(options, context) {
|
|
2222
2222
|
const command = buildCargoCommand("build", options, context);
|
|
2223
|
-
return await cargoCommand(...command);
|
|
2223
|
+
return await cargoCommand(context.root, ...command);
|
|
2224
2224
|
}
|
|
2225
2225
|
var executor_default = withRunExecutor(
|
|
2226
2226
|
"Cargo - Build",
|
|
@@ -2241,7 +2241,7 @@ var executor_default = withRunExecutor(
|
|
|
2241
2241
|
_chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
2242
2242
|
async function cargoCheckExecutor(options, context) {
|
|
2243
2243
|
const command = buildCargoCommand("check", options, context);
|
|
2244
|
-
return await cargoCommand(...command);
|
|
2244
|
+
return await cargoCommand(context.root, ...command);
|
|
2245
2245
|
}
|
|
2246
2246
|
var executor_default2 = withRunExecutor(
|
|
2247
2247
|
"Cargo - Check",
|
|
@@ -2261,7 +2261,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2261
2261
|
_chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
2262
2262
|
async function cargoClippyExecutor(options, context) {
|
|
2263
2263
|
const command = buildCargoCommand("clippy", options, context);
|
|
2264
|
-
return await cargoCommand(...command);
|
|
2264
|
+
return await cargoCommand(context.root, ...command);
|
|
2265
2265
|
}
|
|
2266
2266
|
var executor_default3 = withRunExecutor(
|
|
2267
2267
|
"Cargo - Clippy",
|
|
@@ -2285,7 +2285,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
2285
2285
|
opts["no-deps"] = opts.noDeps;
|
|
2286
2286
|
delete opts.noDeps;
|
|
2287
2287
|
const command = buildCargoCommand("doc", options, context);
|
|
2288
|
-
return await cargoCommand(...command);
|
|
2288
|
+
return await cargoCommand(context.root, ...command);
|
|
2289
2289
|
}
|
|
2290
2290
|
var executor_default4 = withRunExecutor(
|
|
2291
2291
|
"Cargo - Doc",
|
|
@@ -2312,7 +2312,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2312
2312
|
_chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
2313
2313
|
async function cargoFormatExecutor(options, context) {
|
|
2314
2314
|
const command = buildCargoCommand("fmt", options, context);
|
|
2315
|
-
return await cargoCommand(...command);
|
|
2315
|
+
return await cargoCommand(context.root, ...command);
|
|
2316
2316
|
}
|
|
2317
2317
|
var executor_default5 = withRunExecutor(
|
|
2318
2318
|
"Cargo - Format",
|
|
@@ -2473,7 +2473,7 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
|
2473
2473
|
|
|
2474
2474
|
|
|
2475
2475
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
2476
|
-
var addPackageDependencies = async (
|
|
2476
|
+
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
2477
2477
|
let projectGraph;
|
|
2478
2478
|
try {
|
|
2479
2479
|
projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
@@ -2489,7 +2489,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2489
2489
|
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0,
|
|
2490
2490
|
void 0,
|
|
2491
2491
|
projectGraph,
|
|
2492
|
-
|
|
2492
|
+
workspaceRoot2,
|
|
2493
2493
|
projectName,
|
|
2494
2494
|
process.env.NX_TASK_TARGET_TARGET || "build",
|
|
2495
2495
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
@@ -2497,12 +2497,12 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2497
2497
|
);
|
|
2498
2498
|
const localPackages = [];
|
|
2499
2499
|
for (const project of projectDependencies.dependencies.filter(
|
|
2500
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _89 => _89.node, 'access', _90 => _90.data, 'optionalAccess', _91 => _91.root]) !== projectRoot && _optionalChain([dep, 'access', _92 => _92.node, 'access', _93 => _93.data, 'optionalAccess', _94 => _94.root]) !==
|
|
2500
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _89 => _89.node, 'access', _90 => _90.data, 'optionalAccess', _91 => _91.root]) !== projectRoot && _optionalChain([dep, 'access', _92 => _92.node, 'access', _93 => _93.data, 'optionalAccess', _94 => _94.root]) !== workspaceRoot2
|
|
2501
2501
|
)) {
|
|
2502
2502
|
const projectNode = project.node;
|
|
2503
2503
|
if (projectNode.data.root) {
|
|
2504
2504
|
const projectPackageJsonPath = _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
2505
|
-
|
|
2505
|
+
workspaceRoot2,
|
|
2506
2506
|
projectNode.data.root,
|
|
2507
2507
|
"package.json"
|
|
2508
2508
|
);
|
|
@@ -2537,7 +2537,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2537
2537
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName2], 'access', _99 => _99.implicitDependencies, 'optionalAccess', _100 => _100.reduce, 'call', _101 => _101((ret, dep) => {
|
|
2538
2538
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2539
2539
|
const depPackageJsonPath = _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
2540
|
-
|
|
2540
|
+
workspaceRoot2,
|
|
2541
2541
|
projectConfigurations.projects[dep].root,
|
|
2542
2542
|
"package.json"
|
|
2543
2543
|
);
|
|
@@ -2572,9 +2572,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2572
2572
|
return packageJson;
|
|
2573
2573
|
};
|
|
2574
2574
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2575
|
-
const
|
|
2575
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2576
2576
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2577
|
-
_chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
2577
|
+
_chunkWFD75WAFjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
2578
2578
|
"utf8"
|
|
2579
2579
|
);
|
|
2580
2580
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2761,12 +2761,12 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2761
2761
|
// ../esbuild/src/context.ts
|
|
2762
2762
|
async function resolveContext(userOptions) {
|
|
2763
2763
|
const projectRoot = userOptions.projectRoot;
|
|
2764
|
-
const
|
|
2765
|
-
if (!
|
|
2764
|
+
const workspaceRoot2 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
2765
|
+
if (!workspaceRoot2) {
|
|
2766
2766
|
throw new Error("Cannot find Nx workspace root");
|
|
2767
2767
|
}
|
|
2768
2768
|
const workspaceConfig = await getWorkspaceConfig(true, {
|
|
2769
|
-
workspaceRoot:
|
|
2769
|
+
workspaceRoot: workspaceRoot2.dir
|
|
2770
2770
|
});
|
|
2771
2771
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
2772
2772
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -2774,7 +2774,7 @@ async function resolveContext(userOptions) {
|
|
|
2774
2774
|
exitOnError: true
|
|
2775
2775
|
});
|
|
2776
2776
|
const projectJsonPath = _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
2777
|
-
|
|
2777
|
+
workspaceRoot2.dir,
|
|
2778
2778
|
projectRoot,
|
|
2779
2779
|
"project.json"
|
|
2780
2780
|
);
|
|
@@ -2793,7 +2793,7 @@ async function resolveContext(userOptions) {
|
|
|
2793
2793
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2794
2794
|
options.name ??= projectName;
|
|
2795
2795
|
const packageJsonPath = _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
2796
|
-
|
|
2796
|
+
workspaceRoot2.dir,
|
|
2797
2797
|
options.projectRoot,
|
|
2798
2798
|
"package.json"
|
|
2799
2799
|
);
|
|
@@ -2804,7 +2804,7 @@ async function resolveContext(userOptions) {
|
|
|
2804
2804
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2805
2805
|
const resolvedOptions = {
|
|
2806
2806
|
...options,
|
|
2807
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
2807
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkWFD75WAFjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2808
2808
|
metafile: userOptions.mode === "development",
|
|
2809
2809
|
clean: false,
|
|
2810
2810
|
env,
|
|
@@ -3331,12 +3331,12 @@ function toTSDownFormat(format4) {
|
|
|
3331
3331
|
// ../tsdown/src/build.ts
|
|
3332
3332
|
var resolveOptions = async (userOptions) => {
|
|
3333
3333
|
const options = getDefaultOptions(userOptions);
|
|
3334
|
-
const
|
|
3335
|
-
if (!
|
|
3334
|
+
const workspaceRoot2 = findWorkspaceRoot(options.projectRoot);
|
|
3335
|
+
if (!workspaceRoot2) {
|
|
3336
3336
|
throw new Error("Cannot find Nx workspace root");
|
|
3337
3337
|
}
|
|
3338
3338
|
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
3339
|
-
workspaceRoot:
|
|
3339
|
+
workspaceRoot: workspaceRoot2
|
|
3340
3340
|
});
|
|
3341
3341
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
3342
3342
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -3344,7 +3344,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3344
3344
|
exitOnError: true
|
|
3345
3345
|
});
|
|
3346
3346
|
const projectJsonPath = _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
3347
|
-
|
|
3347
|
+
workspaceRoot2,
|
|
3348
3348
|
options.projectRoot,
|
|
3349
3349
|
"project.json"
|
|
3350
3350
|
);
|
|
@@ -3361,7 +3361,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3361
3361
|
);
|
|
3362
3362
|
}
|
|
3363
3363
|
const packageJsonPath = _chunkWFD75WAFjs.joinPaths.call(void 0,
|
|
3364
|
-
|
|
3364
|
+
workspaceRoot2,
|
|
3365
3365
|
options.projectRoot,
|
|
3366
3366
|
"package.json"
|
|
3367
3367
|
);
|
|
@@ -3769,14 +3769,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
3769
3769
|
writeInfo(`\u26A1 Running the ${name} generator...
|
|
3770
3770
|
|
|
3771
3771
|
`, config);
|
|
3772
|
-
const
|
|
3772
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
3773
3773
|
if (!generatorOptions.skipReadingConfig) {
|
|
3774
3774
|
writeDebug(
|
|
3775
3775
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
3776
|
-
- workspaceRoot: ${
|
|
3776
|
+
- workspaceRoot: ${workspaceRoot2}`,
|
|
3777
3777
|
config
|
|
3778
3778
|
);
|
|
3779
|
-
config = await getConfig(
|
|
3779
|
+
config = await getConfig(workspaceRoot2);
|
|
3780
3780
|
}
|
|
3781
3781
|
if (_optionalChain([generatorOptions, 'optionalAccess', _171 => _171.hooks, 'optionalAccess', _172 => _172.applyDefaultOptions])) {
|
|
3782
3782
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -1130,10 +1130,10 @@ async function getPackageJsonConfig(root) {
|
|
|
1130
1130
|
let name = void 0;
|
|
1131
1131
|
let namespace = void 0;
|
|
1132
1132
|
let repository = void 0;
|
|
1133
|
-
const
|
|
1134
|
-
if (existsSync2(join2(
|
|
1133
|
+
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1134
|
+
if (existsSync2(join2(workspaceRoot2, "package.json"))) {
|
|
1135
1135
|
const file = await readFile(
|
|
1136
|
-
joinPaths(
|
|
1136
|
+
joinPaths(workspaceRoot2, "package.json"),
|
|
1137
1137
|
"utf8"
|
|
1138
1138
|
);
|
|
1139
1139
|
if (file) {
|
|
@@ -1167,7 +1167,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
return {
|
|
1170
|
-
workspaceRoot:
|
|
1170
|
+
workspaceRoot: workspaceRoot2,
|
|
1171
1171
|
name,
|
|
1172
1172
|
namespace,
|
|
1173
1173
|
repository,
|
|
@@ -1873,10 +1873,10 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1873
1873
|
// ../config-tools/src/create-storm-config.ts
|
|
1874
1874
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1875
1875
|
var _static_cache = void 0;
|
|
1876
|
-
var createStormWorkspaceConfig = async (extensionName, schema,
|
|
1876
|
+
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, skipLogs = false, useDefault = true) => {
|
|
1877
1877
|
let result;
|
|
1878
1878
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1879
|
-
let _workspaceRoot =
|
|
1879
|
+
let _workspaceRoot = workspaceRoot2;
|
|
1880
1880
|
if (!_workspaceRoot) {
|
|
1881
1881
|
_workspaceRoot = findWorkspaceRoot();
|
|
1882
1882
|
}
|
|
@@ -1946,11 +1946,11 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
1946
1946
|
_extension_cache.set(extension_cache_key, extension);
|
|
1947
1947
|
return extension;
|
|
1948
1948
|
};
|
|
1949
|
-
var loadStormWorkspaceConfig = async (
|
|
1949
|
+
var loadStormWorkspaceConfig = async (workspaceRoot2, skipLogs = false) => {
|
|
1950
1950
|
const config = await createStormWorkspaceConfig(
|
|
1951
1951
|
void 0,
|
|
1952
1952
|
void 0,
|
|
1953
|
-
|
|
1953
|
+
workspaceRoot2,
|
|
1954
1954
|
skipLogs,
|
|
1955
1955
|
true
|
|
1956
1956
|
);
|
|
@@ -1967,15 +1967,15 @@ ${formatLogMessage(config)}`,
|
|
|
1967
1967
|
|
|
1968
1968
|
// ../config-tools/src/get-config.ts
|
|
1969
1969
|
init_esm_shims();
|
|
1970
|
-
function getConfig(
|
|
1971
|
-
return loadStormWorkspaceConfig(
|
|
1970
|
+
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
1971
|
+
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
1972
1972
|
}
|
|
1973
1973
|
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
1974
|
-
let
|
|
1975
|
-
if (!
|
|
1976
|
-
|
|
1974
|
+
let workspaceRoot2 = options.workspaceRoot;
|
|
1975
|
+
if (!workspaceRoot2) {
|
|
1976
|
+
workspaceRoot2 = findWorkspaceRoot(options.cwd);
|
|
1977
1977
|
}
|
|
1978
|
-
return getConfig(
|
|
1978
|
+
return getConfig(workspaceRoot2, skipLogs);
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
1981
|
// ../workspace-tools/src/base/base-executor.ts
|
|
@@ -1990,23 +1990,23 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1990
1990
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1991
1991
|
);
|
|
1992
1992
|
}
|
|
1993
|
-
const
|
|
1994
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root ||
|
|
1995
|
-
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot ||
|
|
1993
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
1994
|
+
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot2;
|
|
1995
|
+
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot2;
|
|
1996
1996
|
const projectName = context.projectName;
|
|
1997
|
-
config.workspaceRoot =
|
|
1997
|
+
config.workspaceRoot = workspaceRoot2;
|
|
1998
1998
|
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
1999
1999
|
if (!executorOptions.skipReadingConfig) {
|
|
2000
2000
|
writeTrace(
|
|
2001
2001
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
2002
|
-
- workspaceRoot: ${
|
|
2002
|
+
- workspaceRoot: ${workspaceRoot2}
|
|
2003
2003
|
- projectRoot: ${projectRoot}
|
|
2004
2004
|
- sourceRoot: ${sourceRoot}
|
|
2005
2005
|
- projectName: ${projectName}
|
|
2006
2006
|
`,
|
|
2007
2007
|
config
|
|
2008
2008
|
);
|
|
2009
|
-
config = await getConfig(
|
|
2009
|
+
config = await getConfig(workspaceRoot2);
|
|
2010
2010
|
}
|
|
2011
2011
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
2012
2012
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -2024,7 +2024,7 @@ ${formatLogMessage(options)}
|
|
|
2024
2024
|
const tokenized = await applyWorkspaceTokens(
|
|
2025
2025
|
options,
|
|
2026
2026
|
defu3(
|
|
2027
|
-
{ workspaceRoot:
|
|
2027
|
+
{ workspaceRoot: workspaceRoot2, projectRoot, sourceRoot, projectName, config },
|
|
2028
2028
|
config,
|
|
2029
2029
|
context.projectsConfigurations.projects[context.projectName]
|
|
2030
2030
|
),
|
|
@@ -2102,7 +2102,7 @@ var _isFunction2 = (value) => {
|
|
|
2102
2102
|
|
|
2103
2103
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2104
2104
|
init_esm_shims();
|
|
2105
|
-
import { joinPathFragments
|
|
2105
|
+
import { joinPathFragments } from "@nx/devkit";
|
|
2106
2106
|
import {
|
|
2107
2107
|
execSync,
|
|
2108
2108
|
spawn
|
|
@@ -2155,10 +2155,10 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
return args;
|
|
2157
2157
|
};
|
|
2158
|
-
async function cargoCommand(...args) {
|
|
2158
|
+
async function cargoCommand(workspaceRoot2, ...args) {
|
|
2159
2159
|
console.log(`> cargo ${args.join(" ")}`);
|
|
2160
2160
|
args.push("--color", "always");
|
|
2161
|
-
return await Promise.resolve(runProcess("cargo", ...args));
|
|
2161
|
+
return await Promise.resolve(runProcess(workspaceRoot2, "cargo", ...args));
|
|
2162
2162
|
}
|
|
2163
2163
|
function cargoCommandSync(args = "", options) {
|
|
2164
2164
|
const normalizedOptions = {
|
|
@@ -2196,9 +2196,9 @@ function cargoMetadata() {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
return JSON.parse(output2.output);
|
|
2198
2198
|
}
|
|
2199
|
-
function runProcess(processCmd, ...args) {
|
|
2199
|
+
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
2200
2200
|
const metadata = cargoMetadata();
|
|
2201
|
-
const targetDir = metadata?.target_directory ?? joinPathFragments(
|
|
2201
|
+
const targetDir = metadata?.target_directory ?? joinPathFragments(workspaceRoot2, "dist");
|
|
2202
2202
|
return new Promise((resolve2) => {
|
|
2203
2203
|
if (process.env.VERCEL) {
|
|
2204
2204
|
return resolve2({ success: true });
|
|
@@ -2221,7 +2221,7 @@ function runProcess(processCmd, ...args) {
|
|
|
2221
2221
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
2222
2222
|
async function cargoBuildExecutor(options, context) {
|
|
2223
2223
|
const command = buildCargoCommand("build", options, context);
|
|
2224
|
-
return await cargoCommand(...command);
|
|
2224
|
+
return await cargoCommand(context.root, ...command);
|
|
2225
2225
|
}
|
|
2226
2226
|
var executor_default = withRunExecutor(
|
|
2227
2227
|
"Cargo - Build",
|
|
@@ -2242,7 +2242,7 @@ var executor_default = withRunExecutor(
|
|
|
2242
2242
|
init_esm_shims();
|
|
2243
2243
|
async function cargoCheckExecutor(options, context) {
|
|
2244
2244
|
const command = buildCargoCommand("check", options, context);
|
|
2245
|
-
return await cargoCommand(...command);
|
|
2245
|
+
return await cargoCommand(context.root, ...command);
|
|
2246
2246
|
}
|
|
2247
2247
|
var executor_default2 = withRunExecutor(
|
|
2248
2248
|
"Cargo - Check",
|
|
@@ -2262,7 +2262,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2262
2262
|
init_esm_shims();
|
|
2263
2263
|
async function cargoClippyExecutor(options, context) {
|
|
2264
2264
|
const command = buildCargoCommand("clippy", options, context);
|
|
2265
|
-
return await cargoCommand(...command);
|
|
2265
|
+
return await cargoCommand(context.root, ...command);
|
|
2266
2266
|
}
|
|
2267
2267
|
var executor_default3 = withRunExecutor(
|
|
2268
2268
|
"Cargo - Clippy",
|
|
@@ -2286,7 +2286,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
2286
2286
|
opts["no-deps"] = opts.noDeps;
|
|
2287
2287
|
delete opts.noDeps;
|
|
2288
2288
|
const command = buildCargoCommand("doc", options, context);
|
|
2289
|
-
return await cargoCommand(...command);
|
|
2289
|
+
return await cargoCommand(context.root, ...command);
|
|
2290
2290
|
}
|
|
2291
2291
|
var executor_default4 = withRunExecutor(
|
|
2292
2292
|
"Cargo - Doc",
|
|
@@ -2313,7 +2313,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2313
2313
|
init_esm_shims();
|
|
2314
2314
|
async function cargoFormatExecutor(options, context) {
|
|
2315
2315
|
const command = buildCargoCommand("fmt", options, context);
|
|
2316
|
-
return await cargoCommand(...command);
|
|
2316
|
+
return await cargoCommand(context.root, ...command);
|
|
2317
2317
|
}
|
|
2318
2318
|
var executor_default5 = withRunExecutor(
|
|
2319
2319
|
"Cargo - Format",
|
|
@@ -2474,7 +2474,7 @@ import {
|
|
|
2474
2474
|
readCachedProjectGraph,
|
|
2475
2475
|
readProjectsConfigurationFromProjectGraph
|
|
2476
2476
|
} from "nx/src/project-graph/project-graph";
|
|
2477
|
-
var addPackageDependencies = async (
|
|
2477
|
+
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
2478
2478
|
let projectGraph;
|
|
2479
2479
|
try {
|
|
2480
2480
|
projectGraph = readCachedProjectGraph();
|
|
@@ -2490,7 +2490,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2490
2490
|
const projectDependencies = calculateProjectBuildableDependencies(
|
|
2491
2491
|
void 0,
|
|
2492
2492
|
projectGraph,
|
|
2493
|
-
|
|
2493
|
+
workspaceRoot2,
|
|
2494
2494
|
projectName,
|
|
2495
2495
|
process.env.NX_TASK_TARGET_TARGET || "build",
|
|
2496
2496
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
@@ -2498,12 +2498,12 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2498
2498
|
);
|
|
2499
2499
|
const localPackages = [];
|
|
2500
2500
|
for (const project of projectDependencies.dependencies.filter(
|
|
2501
|
-
(dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !==
|
|
2501
|
+
(dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot2
|
|
2502
2502
|
)) {
|
|
2503
2503
|
const projectNode = project.node;
|
|
2504
2504
|
if (projectNode.data.root) {
|
|
2505
2505
|
const projectPackageJsonPath = joinPaths(
|
|
2506
|
-
|
|
2506
|
+
workspaceRoot2,
|
|
2507
2507
|
projectNode.data.root,
|
|
2508
2508
|
"package.json"
|
|
2509
2509
|
);
|
|
@@ -2538,7 +2538,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2538
2538
|
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
2539
2539
|
if (projectConfigurations.projects?.[dep]) {
|
|
2540
2540
|
const depPackageJsonPath = joinPaths(
|
|
2541
|
-
|
|
2541
|
+
workspaceRoot2,
|
|
2542
2542
|
projectConfigurations.projects[dep].root,
|
|
2543
2543
|
"package.json"
|
|
2544
2544
|
);
|
|
@@ -2573,9 +2573,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2573
2573
|
return packageJson;
|
|
2574
2574
|
};
|
|
2575
2575
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2576
|
-
const
|
|
2576
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2577
2577
|
const workspacePackageJsonContent = await readFile3(
|
|
2578
|
-
joinPaths(
|
|
2578
|
+
joinPaths(workspaceRoot2, "package.json"),
|
|
2579
2579
|
"utf8"
|
|
2580
2580
|
);
|
|
2581
2581
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2762,12 +2762,12 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2762
2762
|
// ../esbuild/src/context.ts
|
|
2763
2763
|
async function resolveContext(userOptions) {
|
|
2764
2764
|
const projectRoot = userOptions.projectRoot;
|
|
2765
|
-
const
|
|
2766
|
-
if (!
|
|
2765
|
+
const workspaceRoot2 = findWorkspaceRoot2(projectRoot);
|
|
2766
|
+
if (!workspaceRoot2) {
|
|
2767
2767
|
throw new Error("Cannot find Nx workspace root");
|
|
2768
2768
|
}
|
|
2769
2769
|
const workspaceConfig = await getWorkspaceConfig(true, {
|
|
2770
|
-
workspaceRoot:
|
|
2770
|
+
workspaceRoot: workspaceRoot2.dir
|
|
2771
2771
|
});
|
|
2772
2772
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
2773
2773
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -2775,7 +2775,7 @@ async function resolveContext(userOptions) {
|
|
|
2775
2775
|
exitOnError: true
|
|
2776
2776
|
});
|
|
2777
2777
|
const projectJsonPath = joinPaths(
|
|
2778
|
-
|
|
2778
|
+
workspaceRoot2.dir,
|
|
2779
2779
|
projectRoot,
|
|
2780
2780
|
"project.json"
|
|
2781
2781
|
);
|
|
@@ -2794,7 +2794,7 @@ async function resolveContext(userOptions) {
|
|
|
2794
2794
|
const options = defu4(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2795
2795
|
options.name ??= projectName;
|
|
2796
2796
|
const packageJsonPath = joinPaths(
|
|
2797
|
-
|
|
2797
|
+
workspaceRoot2.dir,
|
|
2798
2798
|
options.projectRoot,
|
|
2799
2799
|
"package.json"
|
|
2800
2800
|
);
|
|
@@ -2805,7 +2805,7 @@ async function resolveContext(userOptions) {
|
|
|
2805
2805
|
const define = defu4(options.define ?? {}, env ?? {});
|
|
2806
2806
|
const resolvedOptions = {
|
|
2807
2807
|
...options,
|
|
2808
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(
|
|
2808
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2809
2809
|
metafile: userOptions.mode === "development",
|
|
2810
2810
|
clean: false,
|
|
2811
2811
|
env,
|
|
@@ -3332,12 +3332,12 @@ function toTSDownFormat(format4) {
|
|
|
3332
3332
|
// ../tsdown/src/build.ts
|
|
3333
3333
|
var resolveOptions = async (userOptions) => {
|
|
3334
3334
|
const options = getDefaultOptions(userOptions);
|
|
3335
|
-
const
|
|
3336
|
-
if (!
|
|
3335
|
+
const workspaceRoot2 = findWorkspaceRoot(options.projectRoot);
|
|
3336
|
+
if (!workspaceRoot2) {
|
|
3337
3337
|
throw new Error("Cannot find Nx workspace root");
|
|
3338
3338
|
}
|
|
3339
3339
|
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
3340
|
-
workspaceRoot:
|
|
3340
|
+
workspaceRoot: workspaceRoot2
|
|
3341
3341
|
});
|
|
3342
3342
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
3343
3343
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -3345,7 +3345,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3345
3345
|
exitOnError: true
|
|
3346
3346
|
});
|
|
3347
3347
|
const projectJsonPath = joinPaths(
|
|
3348
|
-
|
|
3348
|
+
workspaceRoot2,
|
|
3349
3349
|
options.projectRoot,
|
|
3350
3350
|
"project.json"
|
|
3351
3351
|
);
|
|
@@ -3362,7 +3362,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3362
3362
|
);
|
|
3363
3363
|
}
|
|
3364
3364
|
const packageJsonPath = joinPaths(
|
|
3365
|
-
|
|
3365
|
+
workspaceRoot2,
|
|
3366
3366
|
options.projectRoot,
|
|
3367
3367
|
"package.json"
|
|
3368
3368
|
);
|
|
@@ -3770,14 +3770,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
3770
3770
|
writeInfo(`\u26A1 Running the ${name} generator...
|
|
3771
3771
|
|
|
3772
3772
|
`, config);
|
|
3773
|
-
const
|
|
3773
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
3774
3774
|
if (!generatorOptions.skipReadingConfig) {
|
|
3775
3775
|
writeDebug(
|
|
3776
3776
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
3777
|
-
- workspaceRoot: ${
|
|
3777
|
+
- workspaceRoot: ${workspaceRoot2}`,
|
|
3778
3778
|
config
|
|
3779
3779
|
);
|
|
3780
|
-
config = await getConfig(
|
|
3780
|
+
config = await getConfig(workspaceRoot2);
|
|
3781
3781
|
}
|
|
3782
3782
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
3783
3783
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -5095,7 +5095,7 @@ init_esm_shims();
|
|
|
5095
5095
|
import {
|
|
5096
5096
|
output,
|
|
5097
5097
|
readJsonFile as readJsonFile2,
|
|
5098
|
-
workspaceRoot
|
|
5098
|
+
workspaceRoot
|
|
5099
5099
|
} from "@nx/devkit";
|
|
5100
5100
|
import { existsSync as existsSync12 } from "node:fs";
|
|
5101
5101
|
import { join as join4 } from "node:path";
|
|
@@ -5114,9 +5114,9 @@ import {
|
|
|
5114
5114
|
var YARN_LOCK_FILE = "yarn.lock";
|
|
5115
5115
|
var NPM_LOCK_FILE = "package-lock.json";
|
|
5116
5116
|
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
5117
|
-
var YARN_LOCK_PATH = join4(
|
|
5118
|
-
var NPM_LOCK_PATH = join4(
|
|
5119
|
-
var PNPM_LOCK_PATH = join4(
|
|
5117
|
+
var YARN_LOCK_PATH = join4(workspaceRoot, YARN_LOCK_FILE);
|
|
5118
|
+
var NPM_LOCK_PATH = join4(workspaceRoot, NPM_LOCK_FILE);
|
|
5119
|
+
var PNPM_LOCK_PATH = join4(workspaceRoot, PNPM_LOCK_FILE);
|
|
5120
5120
|
|
|
5121
5121
|
// ../workspace-tools/src/utils/nx-json.ts
|
|
5122
5122
|
init_esm_shims();
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-2J4V6NGV.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUXVQWB4Xjs = require('./chunk-UXVQWB4X.js');
|
|
5
5
|
require('./chunk-WFD75WAF.js');
|
|
6
6
|
require('./chunk-ANVGCRXX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkUXVQWB4Xjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkTLCUVFDEjs = require('./chunk-TLCUVFDE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUXVQWB4Xjs = require('./chunk-UXVQWB4X.js');
|
|
8
8
|
require('./chunk-WFD75WAF.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunkANVGCRXXjs = require('./chunk-ANVGCRXX.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkANVGCRXXjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunkUXVQWB4Xjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkANVGCRXXjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkANVGCRXXjs.__reExport.call(void 0, index_exports, _chunkANVGCRXXjs.__toESM.call(void 0, _chunkTLCUVFDEjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunkUXVQWB4Xjs.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 _chunkUXVQWB4Xjs = require('../../../chunk-UXVQWB4X.js');
|
|
5
5
|
require('../../../chunk-WFD75WAF.js');
|
|
6
6
|
require('../../../chunk-ANVGCRXX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkUXVQWB4Xjs.generator_default; exports.initGeneratorFn = _chunkUXVQWB4Xjs.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.28",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing Projen configuration automation within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
],
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@nx/devkit": "^22.0.3",
|
|
118
|
-
"@storm-software/config": "1.134.
|
|
119
|
-
"@storm-software/config-tools": "1.188.
|
|
120
|
-
"@storm-software/workspace-tools": "1.292.
|
|
118
|
+
"@storm-software/config": "1.134.27",
|
|
119
|
+
"@storm-software/config-tools": "1.188.27",
|
|
120
|
+
"@storm-software/workspace-tools": "1.292.27",
|
|
121
121
|
"projen": "^0.91.6",
|
|
122
122
|
"tsup": "8.4.0",
|
|
123
123
|
"untyped": "1.5.2"
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
143
|
"executors": "./executors.json",
|
|
144
144
|
"generators": "./generators.json",
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "fb8e2634c4a094f22dce9c0bb87a38be0e569cc0"
|
|
146
146
|
}
|