@storm-software/pulumi-tools 0.22.26 → 0.22.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-U7NBD4Q3.mjs → chunk-27GUGMCO.mjs} +56 -56
- package/dist/{chunk-IDDK6NEO.js → chunk-2GNWTDQL.js} +5 -5
- package/dist/{chunk-Q3ZY4GL7.mjs → chunk-65252442.mjs} +1 -1
- package/dist/{chunk-EZTMSLFB.mjs → chunk-7PVS3LD2.mjs} +1 -1
- package/dist/{chunk-ECMFP6XP.js → chunk-BLWGF3EM.js} +2 -2
- package/dist/{chunk-FZBGBXCO.mjs → chunk-GYL7EBWA.mjs} +1 -1
- package/dist/{chunk-46UJLYHT.js → chunk-HJCTNH6H.js} +2 -2
- package/dist/{chunk-UXV662TX.mjs → chunk-IK3E6ZEW.mjs} +1 -1
- package/dist/{chunk-LY62GWXV.mjs → chunk-JJSD6STM.mjs} +1 -1
- package/dist/{chunk-CZBKLIK7.js → chunk-LHT5W7UO.js} +51 -51
- package/dist/{chunk-LUPJZ2R2.mjs → chunk-OZBXOKYJ.mjs} +1 -1
- package/dist/{chunk-WSRHUR2Z.js → chunk-QPROLAHT.js} +2 -2
- package/dist/{chunk-3E6O2WLE.js → chunk-V3GSKYQF.js} +3 -3
- package/dist/{chunk-ULPRN2TJ.js → chunk-VR62IJRC.js} +2 -2
- package/dist/{chunk-QZ5PCQUK.js → chunk-WDKDDTVO.js} +2 -2
- package/dist/{chunk-HZ3RJKBJ.mjs → chunk-XPTD3KOT.mjs} +1 -1
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/executors/config/executor.js +4 -4
- package/dist/src/executors/config/executor.mjs +3 -3
- package/dist/src/executors/import/executor.js +4 -4
- package/dist/src/executors/import/executor.mjs +3 -3
- package/dist/src/executors/preview/executor.js +4 -4
- package/dist/src/executors/preview/executor.mjs +3 -3
- package/dist/src/executors/refresh/executor.js +4 -4
- package/dist/src/executors/refresh/executor.mjs +3 -3
- package/dist/src/executors/up/executor.js +4 -4
- package/dist/src/executors/up/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.22.27](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.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.22.26](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.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.22.25](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.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 Pulumi Tools](#storm-pulumi-tools)
|
|
@@ -1217,10 +1217,10 @@ async function getPackageJsonConfig(root) {
|
|
|
1217
1217
|
let name = void 0;
|
|
1218
1218
|
let namespace = void 0;
|
|
1219
1219
|
let repository = void 0;
|
|
1220
|
-
const
|
|
1221
|
-
if (existsSync2(join2(
|
|
1220
|
+
const workspaceRoot2 = findWorkspaceRoot(root);
|
|
1221
|
+
if (existsSync2(join2(workspaceRoot2, "package.json"))) {
|
|
1222
1222
|
const file = await readFile(
|
|
1223
|
-
joinPaths(
|
|
1223
|
+
joinPaths(workspaceRoot2, "package.json"),
|
|
1224
1224
|
"utf8"
|
|
1225
1225
|
);
|
|
1226
1226
|
if (file) {
|
|
@@ -1254,7 +1254,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
return {
|
|
1257
|
-
workspaceRoot:
|
|
1257
|
+
workspaceRoot: workspaceRoot2,
|
|
1258
1258
|
name,
|
|
1259
1259
|
namespace,
|
|
1260
1260
|
repository,
|
|
@@ -1957,10 +1957,10 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1957
1957
|
// ../config-tools/src/create-storm-config.ts
|
|
1958
1958
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1959
1959
|
var _static_cache = void 0;
|
|
1960
|
-
var createStormWorkspaceConfig = async (extensionName, schema,
|
|
1960
|
+
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot2, skipLogs = false, useDefault = true) => {
|
|
1961
1961
|
let result;
|
|
1962
1962
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1963
|
-
let _workspaceRoot =
|
|
1963
|
+
let _workspaceRoot = workspaceRoot2;
|
|
1964
1964
|
if (!_workspaceRoot) {
|
|
1965
1965
|
_workspaceRoot = findWorkspaceRoot();
|
|
1966
1966
|
}
|
|
@@ -2030,11 +2030,11 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
2030
2030
|
_extension_cache.set(extension_cache_key, extension);
|
|
2031
2031
|
return extension;
|
|
2032
2032
|
};
|
|
2033
|
-
var loadStormWorkspaceConfig = async (
|
|
2033
|
+
var loadStormWorkspaceConfig = async (workspaceRoot2, skipLogs = false) => {
|
|
2034
2034
|
const config = await createStormWorkspaceConfig(
|
|
2035
2035
|
void 0,
|
|
2036
2036
|
void 0,
|
|
2037
|
-
|
|
2037
|
+
workspaceRoot2,
|
|
2038
2038
|
skipLogs,
|
|
2039
2039
|
true
|
|
2040
2040
|
);
|
|
@@ -2050,15 +2050,15 @@ ${formatLogMessage(config)}`,
|
|
|
2050
2050
|
};
|
|
2051
2051
|
|
|
2052
2052
|
// ../config-tools/src/get-config.ts
|
|
2053
|
-
function getConfig(
|
|
2054
|
-
return loadStormWorkspaceConfig(
|
|
2053
|
+
function getConfig(workspaceRoot2, skipLogs = false) {
|
|
2054
|
+
return loadStormWorkspaceConfig(workspaceRoot2, skipLogs);
|
|
2055
2055
|
}
|
|
2056
2056
|
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
2057
|
-
let
|
|
2058
|
-
if (!
|
|
2059
|
-
|
|
2057
|
+
let workspaceRoot2 = options.workspaceRoot;
|
|
2058
|
+
if (!workspaceRoot2) {
|
|
2059
|
+
workspaceRoot2 = findWorkspaceRoot(options.cwd);
|
|
2060
2060
|
}
|
|
2061
|
-
return getConfig(
|
|
2061
|
+
return getConfig(workspaceRoot2, skipLogs);
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
2064
|
// ../workspace-tools/src/base/base-executor.ts
|
|
@@ -2073,23 +2073,23 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
2073
2073
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
|
-
const
|
|
2077
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root ||
|
|
2078
|
-
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot ||
|
|
2076
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
2077
|
+
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot2;
|
|
2078
|
+
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot2;
|
|
2079
2079
|
const projectName = context.projectName;
|
|
2080
|
-
config.workspaceRoot =
|
|
2080
|
+
config.workspaceRoot = workspaceRoot2;
|
|
2081
2081
|
writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
2082
2082
|
if (!executorOptions.skipReadingConfig) {
|
|
2083
2083
|
writeTrace(
|
|
2084
2084
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
2085
|
-
- workspaceRoot: ${
|
|
2085
|
+
- workspaceRoot: ${workspaceRoot2}
|
|
2086
2086
|
- projectRoot: ${projectRoot}
|
|
2087
2087
|
- sourceRoot: ${sourceRoot}
|
|
2088
2088
|
- projectName: ${projectName}
|
|
2089
2089
|
`,
|
|
2090
2090
|
config
|
|
2091
2091
|
);
|
|
2092
|
-
config = await getConfig(
|
|
2092
|
+
config = await getConfig(workspaceRoot2);
|
|
2093
2093
|
}
|
|
2094
2094
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
2095
2095
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -2107,7 +2107,7 @@ ${formatLogMessage(options)}
|
|
|
2107
2107
|
const tokenized = await applyWorkspaceTokens(
|
|
2108
2108
|
options,
|
|
2109
2109
|
defu3(
|
|
2110
|
-
{ workspaceRoot:
|
|
2110
|
+
{ workspaceRoot: workspaceRoot2, projectRoot, sourceRoot, projectName, config },
|
|
2111
2111
|
config,
|
|
2112
2112
|
context.projectsConfigurations.projects[context.projectName]
|
|
2113
2113
|
),
|
|
@@ -2194,14 +2194,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
2194
2194
|
writeInfo(`\u26A1 Running the ${name} generator...
|
|
2195
2195
|
|
|
2196
2196
|
`, config);
|
|
2197
|
-
const
|
|
2197
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
2198
2198
|
if (!generatorOptions.skipReadingConfig) {
|
|
2199
2199
|
writeDebug(
|
|
2200
2200
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
2201
|
-
- workspaceRoot: ${
|
|
2201
|
+
- workspaceRoot: ${workspaceRoot2}`,
|
|
2202
2202
|
config
|
|
2203
2203
|
);
|
|
2204
|
-
config = await getConfig(
|
|
2204
|
+
config = await getConfig(workspaceRoot2);
|
|
2205
2205
|
}
|
|
2206
2206
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
2207
2207
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -2294,7 +2294,7 @@ async function initGenerator(tree, schema) {
|
|
|
2294
2294
|
}
|
|
2295
2295
|
|
|
2296
2296
|
// ../workspace-tools/src/utils/cargo.ts
|
|
2297
|
-
import { joinPathFragments
|
|
2297
|
+
import { joinPathFragments } from "@nx/devkit";
|
|
2298
2298
|
import {
|
|
2299
2299
|
execSync as execSync2,
|
|
2300
2300
|
spawn
|
|
@@ -2347,10 +2347,10 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
return args;
|
|
2349
2349
|
};
|
|
2350
|
-
async function cargoCommand(...args) {
|
|
2350
|
+
async function cargoCommand(workspaceRoot2, ...args) {
|
|
2351
2351
|
console.log(`> cargo ${args.join(" ")}`);
|
|
2352
2352
|
args.push("--color", "always");
|
|
2353
|
-
return await Promise.resolve(runProcess("cargo", ...args));
|
|
2353
|
+
return await Promise.resolve(runProcess(workspaceRoot2, "cargo", ...args));
|
|
2354
2354
|
}
|
|
2355
2355
|
function cargoCommandSync(args = "", options) {
|
|
2356
2356
|
const normalizedOptions = {
|
|
@@ -2388,9 +2388,9 @@ function cargoMetadata() {
|
|
|
2388
2388
|
}
|
|
2389
2389
|
return JSON.parse(output2.output);
|
|
2390
2390
|
}
|
|
2391
|
-
function runProcess(processCmd, ...args) {
|
|
2391
|
+
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
2392
2392
|
const metadata = cargoMetadata();
|
|
2393
|
-
const targetDir = metadata?.target_directory ?? joinPathFragments(
|
|
2393
|
+
const targetDir = metadata?.target_directory ?? joinPathFragments(workspaceRoot2, "dist");
|
|
2394
2394
|
return new Promise((resolve2) => {
|
|
2395
2395
|
if (process.env.VERCEL) {
|
|
2396
2396
|
return resolve2({ success: true });
|
|
@@ -2413,7 +2413,7 @@ function runProcess(processCmd, ...args) {
|
|
|
2413
2413
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
2414
2414
|
async function cargoBuildExecutor(options, context) {
|
|
2415
2415
|
const command = buildCargoCommand("build", options, context);
|
|
2416
|
-
return await cargoCommand(...command);
|
|
2416
|
+
return await cargoCommand(context.root, ...command);
|
|
2417
2417
|
}
|
|
2418
2418
|
var executor_default = withRunExecutor(
|
|
2419
2419
|
"Cargo - Build",
|
|
@@ -2433,7 +2433,7 @@ var executor_default = withRunExecutor(
|
|
|
2433
2433
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
2434
2434
|
async function cargoCheckExecutor(options, context) {
|
|
2435
2435
|
const command = buildCargoCommand("check", options, context);
|
|
2436
|
-
return await cargoCommand(...command);
|
|
2436
|
+
return await cargoCommand(context.root, ...command);
|
|
2437
2437
|
}
|
|
2438
2438
|
var executor_default2 = withRunExecutor(
|
|
2439
2439
|
"Cargo - Check",
|
|
@@ -2452,7 +2452,7 @@ var executor_default2 = withRunExecutor(
|
|
|
2452
2452
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
2453
2453
|
async function cargoClippyExecutor(options, context) {
|
|
2454
2454
|
const command = buildCargoCommand("clippy", options, context);
|
|
2455
|
-
return await cargoCommand(...command);
|
|
2455
|
+
return await cargoCommand(context.root, ...command);
|
|
2456
2456
|
}
|
|
2457
2457
|
var executor_default3 = withRunExecutor(
|
|
2458
2458
|
"Cargo - Clippy",
|
|
@@ -2475,7 +2475,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
2475
2475
|
opts["no-deps"] = opts.noDeps;
|
|
2476
2476
|
delete opts.noDeps;
|
|
2477
2477
|
const command = buildCargoCommand("doc", options, context);
|
|
2478
|
-
return await cargoCommand(...command);
|
|
2478
|
+
return await cargoCommand(context.root, ...command);
|
|
2479
2479
|
}
|
|
2480
2480
|
var executor_default4 = withRunExecutor(
|
|
2481
2481
|
"Cargo - Doc",
|
|
@@ -2501,7 +2501,7 @@ var executor_default4 = withRunExecutor(
|
|
|
2501
2501
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
2502
2502
|
async function cargoFormatExecutor(options, context) {
|
|
2503
2503
|
const command = buildCargoCommand("fmt", options, context);
|
|
2504
|
-
return await cargoCommand(...command);
|
|
2504
|
+
return await cargoCommand(context.root, ...command);
|
|
2505
2505
|
}
|
|
2506
2506
|
var executor_default5 = withRunExecutor(
|
|
2507
2507
|
"Cargo - Format",
|
|
@@ -2631,7 +2631,7 @@ import {
|
|
|
2631
2631
|
readCachedProjectGraph,
|
|
2632
2632
|
readProjectsConfigurationFromProjectGraph
|
|
2633
2633
|
} from "nx/src/project-graph/project-graph";
|
|
2634
|
-
var addPackageDependencies = async (
|
|
2634
|
+
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
2635
2635
|
let projectGraph;
|
|
2636
2636
|
try {
|
|
2637
2637
|
projectGraph = readCachedProjectGraph();
|
|
@@ -2647,7 +2647,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2647
2647
|
const projectDependencies = calculateProjectBuildableDependencies(
|
|
2648
2648
|
void 0,
|
|
2649
2649
|
projectGraph,
|
|
2650
|
-
|
|
2650
|
+
workspaceRoot2,
|
|
2651
2651
|
projectName,
|
|
2652
2652
|
process.env.NX_TASK_TARGET_TARGET || "build",
|
|
2653
2653
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
@@ -2655,12 +2655,12 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2655
2655
|
);
|
|
2656
2656
|
const localPackages = [];
|
|
2657
2657
|
for (const project of projectDependencies.dependencies.filter(
|
|
2658
|
-
(dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !==
|
|
2658
|
+
(dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot2
|
|
2659
2659
|
)) {
|
|
2660
2660
|
const projectNode = project.node;
|
|
2661
2661
|
if (projectNode.data.root) {
|
|
2662
2662
|
const projectPackageJsonPath = joinPaths(
|
|
2663
|
-
|
|
2663
|
+
workspaceRoot2,
|
|
2664
2664
|
projectNode.data.root,
|
|
2665
2665
|
"package.json"
|
|
2666
2666
|
);
|
|
@@ -2695,7 +2695,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2695
2695
|
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
2696
2696
|
if (projectConfigurations.projects?.[dep]) {
|
|
2697
2697
|
const depPackageJsonPath = joinPaths(
|
|
2698
|
-
|
|
2698
|
+
workspaceRoot2,
|
|
2699
2699
|
projectConfigurations.projects[dep].root,
|
|
2700
2700
|
"package.json"
|
|
2701
2701
|
);
|
|
@@ -2730,9 +2730,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2730
2730
|
return packageJson;
|
|
2731
2731
|
};
|
|
2732
2732
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2733
|
-
const
|
|
2733
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2734
2734
|
const workspacePackageJsonContent = await readFile3(
|
|
2735
|
-
joinPaths(
|
|
2735
|
+
joinPaths(workspaceRoot2, "package.json"),
|
|
2736
2736
|
"utf8"
|
|
2737
2737
|
);
|
|
2738
2738
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2903,12 +2903,12 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2903
2903
|
// ../esbuild/src/context.ts
|
|
2904
2904
|
async function resolveContext(userOptions) {
|
|
2905
2905
|
const projectRoot = userOptions.projectRoot;
|
|
2906
|
-
const
|
|
2907
|
-
if (!
|
|
2906
|
+
const workspaceRoot2 = findWorkspaceRoot2(projectRoot);
|
|
2907
|
+
if (!workspaceRoot2) {
|
|
2908
2908
|
throw new Error("Cannot find Nx workspace root");
|
|
2909
2909
|
}
|
|
2910
2910
|
const workspaceConfig = await getWorkspaceConfig(true, {
|
|
2911
|
-
workspaceRoot:
|
|
2911
|
+
workspaceRoot: workspaceRoot2.dir
|
|
2912
2912
|
});
|
|
2913
2913
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
2914
2914
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -2916,7 +2916,7 @@ async function resolveContext(userOptions) {
|
|
|
2916
2916
|
exitOnError: true
|
|
2917
2917
|
});
|
|
2918
2918
|
const projectJsonPath = joinPaths(
|
|
2919
|
-
|
|
2919
|
+
workspaceRoot2.dir,
|
|
2920
2920
|
projectRoot,
|
|
2921
2921
|
"project.json"
|
|
2922
2922
|
);
|
|
@@ -2935,7 +2935,7 @@ async function resolveContext(userOptions) {
|
|
|
2935
2935
|
const options = defu4(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2936
2936
|
options.name ??= projectName;
|
|
2937
2937
|
const packageJsonPath = joinPaths(
|
|
2938
|
-
|
|
2938
|
+
workspaceRoot2.dir,
|
|
2939
2939
|
options.projectRoot,
|
|
2940
2940
|
"package.json"
|
|
2941
2941
|
);
|
|
@@ -2946,7 +2946,7 @@ async function resolveContext(userOptions) {
|
|
|
2946
2946
|
const define = defu4(options.define ?? {}, env ?? {});
|
|
2947
2947
|
const resolvedOptions = {
|
|
2948
2948
|
...options,
|
|
2949
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(
|
|
2949
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
2950
2950
|
metafile: userOptions.mode === "development",
|
|
2951
2951
|
clean: false,
|
|
2952
2952
|
env,
|
|
@@ -3446,12 +3446,12 @@ function toTSDownFormat(format4) {
|
|
|
3446
3446
|
// ../tsdown/src/build.ts
|
|
3447
3447
|
var resolveOptions = async (userOptions) => {
|
|
3448
3448
|
const options = getDefaultOptions(userOptions);
|
|
3449
|
-
const
|
|
3450
|
-
if (!
|
|
3449
|
+
const workspaceRoot2 = findWorkspaceRoot(options.projectRoot);
|
|
3450
|
+
if (!workspaceRoot2) {
|
|
3451
3451
|
throw new Error("Cannot find Nx workspace root");
|
|
3452
3452
|
}
|
|
3453
3453
|
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
3454
|
-
workspaceRoot:
|
|
3454
|
+
workspaceRoot: workspaceRoot2
|
|
3455
3455
|
});
|
|
3456
3456
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
3457
3457
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -3459,7 +3459,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3459
3459
|
exitOnError: true
|
|
3460
3460
|
});
|
|
3461
3461
|
const projectJsonPath = joinPaths(
|
|
3462
|
-
|
|
3462
|
+
workspaceRoot2,
|
|
3463
3463
|
options.projectRoot,
|
|
3464
3464
|
"project.json"
|
|
3465
3465
|
);
|
|
@@ -3476,7 +3476,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3476
3476
|
);
|
|
3477
3477
|
}
|
|
3478
3478
|
const packageJsonPath = joinPaths(
|
|
3479
|
-
|
|
3479
|
+
workspaceRoot2,
|
|
3480
3480
|
options.projectRoot,
|
|
3481
3481
|
"package.json"
|
|
3482
3482
|
);
|
|
@@ -5059,7 +5059,7 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
|
|
|
5059
5059
|
import {
|
|
5060
5060
|
output,
|
|
5061
5061
|
readJsonFile as readJsonFile2,
|
|
5062
|
-
workspaceRoot
|
|
5062
|
+
workspaceRoot
|
|
5063
5063
|
} from "@nx/devkit";
|
|
5064
5064
|
import { existsSync as existsSync12 } from "node:fs";
|
|
5065
5065
|
import { join as join4 } from "node:path";
|
|
@@ -5078,9 +5078,9 @@ import {
|
|
|
5078
5078
|
var YARN_LOCK_FILE = "yarn.lock";
|
|
5079
5079
|
var NPM_LOCK_FILE = "package-lock.json";
|
|
5080
5080
|
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
5081
|
-
var YARN_LOCK_PATH = join4(
|
|
5082
|
-
var NPM_LOCK_PATH = join4(
|
|
5083
|
-
var PNPM_LOCK_PATH = join4(
|
|
5081
|
+
var YARN_LOCK_PATH = join4(workspaceRoot, YARN_LOCK_FILE);
|
|
5082
|
+
var NPM_LOCK_PATH = join4(workspaceRoot, NPM_LOCK_FILE);
|
|
5083
|
+
var PNPM_LOCK_PATH = join4(workspaceRoot, PNPM_LOCK_FILE);
|
|
5084
5084
|
|
|
5085
5085
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
5086
5086
|
import {
|
|
@@ -5,7 +5,7 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLHT5W7UOjs = require('./chunk-LHT5W7UO.js');
|
|
9
9
|
|
|
10
10
|
// src/generators/init/generator.ts
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ var _devkit = require('@nx/devkit');
|
|
|
18
18
|
var _fs = require('fs');
|
|
19
19
|
var _path = require('path');
|
|
20
20
|
async function initGeneratorFn(tree, options, config) {
|
|
21
|
-
const task =
|
|
21
|
+
const task = _chunkLHT5W7UOjs.initGenerator.call(void 0, tree, options);
|
|
22
22
|
_devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
|
|
23
23
|
root: options.directory || "./deployment",
|
|
24
24
|
projectType: "application",
|
|
@@ -54,14 +54,14 @@ async function initGeneratorFn(tree, options, config) {
|
|
|
54
54
|
}
|
|
55
55
|
return task;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkLHT5W7UOjs.withRunGenerator.call(void 0,
|
|
58
58
|
"Initialize Storm Pulumi workspace",
|
|
59
59
|
initGeneratorFn
|
|
60
60
|
);
|
|
61
61
|
function generateNewPulumiProject(tree, options, config) {
|
|
62
62
|
return () => {
|
|
63
63
|
const template = _chunkQDPXTR73js.getCloudTemplateName.call(void 0, options.provider);
|
|
64
|
-
|
|
64
|
+
_chunkLHT5W7UOjs.run.call(void 0,
|
|
65
65
|
config,
|
|
66
66
|
[
|
|
67
67
|
`pulumi new ${template}`,
|
|
@@ -85,7 +85,7 @@ function loginToPulumi(tree, options, config) {
|
|
|
85
85
|
if (options.login.startsWith("file://")) {
|
|
86
86
|
options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
_chunkLHT5W7UOjs.run.call(void 0,
|
|
89
89
|
config,
|
|
90
90
|
["pulumi login", options.login].filter(Boolean).join(" "),
|
|
91
91
|
_path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkV3GSKYQFjs = require('./chunk-V3GSKYQF.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/refresh/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkV3GSKYQFjs.withPulumiExecutor.call(void 0,
|
|
7
7
|
"refresh",
|
|
8
8
|
(options) => [
|
|
9
9
|
"--suppress-progress",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkV3GSKYQFjs = require('./chunk-V3GSKYQF.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/import/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkV3GSKYQFjs.withPulumiExecutor.call(void 0, "import", (options) => [
|
|
7
7
|
options.target,
|
|
8
8
|
options.name,
|
|
9
9
|
options.id,
|