@storm-software/pulumi-tools 0.21.11 → 0.21.12
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 +12 -0
- package/dist/{chunk-NNYCVGHK.mjs → chunk-2VVANYI6.mjs} +1 -1
- package/dist/{chunk-TSE36T44.mjs → chunk-6GKFHYCT.mjs} +1 -1
- package/dist/{chunk-NZTDZYV5.js → chunk-6IFSXBEG.js} +374 -23
- package/dist/{chunk-B4J3AL6Z.mjs → chunk-6YKOTFAR.mjs} +1 -1
- package/dist/{chunk-IILDNNFO.mjs → chunk-AYD5EAKY.mjs} +1 -1
- package/dist/{chunk-DKUPIFT7.js → chunk-BRPSVZDR.js} +2 -2
- package/dist/{chunk-IKWQFWPQ.mjs → chunk-C4KSMICQ.mjs} +1 -1
- package/dist/{chunk-THU6C5OX.js → chunk-DHDV77V3.js} +2 -2
- package/dist/{chunk-UVX2KJRN.js → chunk-EPPQWNSL.js} +5 -5
- package/dist/{chunk-2IOSY2P5.mjs → chunk-FLBJLROM.mjs} +1 -1
- package/dist/{chunk-6P4SXHR5.js → chunk-I2FQB455.js} +2 -2
- package/dist/{chunk-2SWNM6XP.js → chunk-KIBAXX22.js} +2 -2
- package/dist/{chunk-QUZKMWWK.mjs → chunk-LGMC5TXM.mjs} +1 -1
- package/dist/{chunk-VY6W3WIK.js → chunk-T6GGI44I.js} +2 -2
- package/dist/{chunk-IVRLLLJC.mjs → chunk-VJNYLWPX.mjs} +361 -10
- package/dist/{chunk-Z3ACNHUU.js → chunk-YGHWQ6M7.js} +3 -3
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.21.11](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.21.11) (2025-09-21)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([91c9879c3](https://github.com/storm-software/storm-ops/commit/91c9879c3))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated config-tools to 1.187.6
|
|
15
|
+
- Updated config to 1.133.3
|
|
16
|
+
|
|
5
17
|
## [0.21.10](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.21.10) (2025-09-21)
|
|
6
18
|
|
|
7
19
|
### Miscellaneous
|
|
@@ -2529,6 +2529,7 @@ var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
|
2529
2529
|
*****************************************/
|
|
2530
2530
|
`;
|
|
2531
2531
|
var DEFAULT_ENVIRONMENT = "production";
|
|
2532
|
+
var DEFAULT_TARGET = "esnext";
|
|
2532
2533
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
2533
2534
|
|
|
2534
2535
|
// ../build-tools/src/plugins/swc.ts
|
|
@@ -2548,7 +2549,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
|
|
|
2548
2549
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
2549
2550
|
var _glob = require('glob');
|
|
2550
2551
|
|
|
2551
|
-
var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot,
|
|
2552
|
+
var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
2552
2553
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
2553
2554
|
pendingAssets.push({
|
|
2554
2555
|
input: projectRoot,
|
|
@@ -2560,7 +2561,7 @@ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, ge
|
|
|
2560
2561
|
glob: "LICENSE",
|
|
2561
2562
|
output: "."
|
|
2562
2563
|
});
|
|
2563
|
-
if (
|
|
2564
|
+
if (generatePackageJson3 === false) {
|
|
2564
2565
|
pendingAssets.push({
|
|
2565
2566
|
input: projectRoot,
|
|
2566
2567
|
glob: "package.json",
|
|
@@ -2766,6 +2767,26 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2766
2767
|
packageJson.repository.directory ??= projectRoot ? projectRoot : joinPaths("packages", projectName);
|
|
2767
2768
|
return packageJson;
|
|
2768
2769
|
};
|
|
2770
|
+
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
2771
|
+
let entry = file.replaceAll("\\", "/");
|
|
2772
|
+
if (sourceRoot) {
|
|
2773
|
+
entry = entry.replace(sourceRoot, "");
|
|
2774
|
+
}
|
|
2775
|
+
return {
|
|
2776
|
+
import: {
|
|
2777
|
+
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
2778
|
+
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
2779
|
+
},
|
|
2780
|
+
require: {
|
|
2781
|
+
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
2782
|
+
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
2783
|
+
},
|
|
2784
|
+
default: {
|
|
2785
|
+
types: `./dist/${entry}.d.${type !== "fixed" ? "ts" : "mts"}`,
|
|
2786
|
+
default: `./dist/${entry}.${type !== "fixed" ? "js" : "mjs"}`
|
|
2787
|
+
}
|
|
2788
|
+
};
|
|
2789
|
+
};
|
|
2769
2790
|
|
|
2770
2791
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
2771
2792
|
|
|
@@ -3193,7 +3214,7 @@ async function esbuildExecutorFn(options, context, config5) {
|
|
|
3193
3214
|
name: context.projectName,
|
|
3194
3215
|
sourceRoot: _optionalChain([context, 'access', _155 => _155.projectsConfigurations, 'access', _156 => _156.projects, 'optionalAccess', _157 => _157[context.projectName], 'optionalAccess', _158 => _158.sourceRoot]),
|
|
3195
3216
|
format: options.format,
|
|
3196
|
-
platform: options.
|
|
3217
|
+
platform: options.platform
|
|
3197
3218
|
});
|
|
3198
3219
|
return {
|
|
3199
3220
|
success: true
|
|
@@ -3358,6 +3379,336 @@ var executor_default7 = withRunExecutor(
|
|
|
3358
3379
|
}
|
|
3359
3380
|
);
|
|
3360
3381
|
|
|
3382
|
+
// ../tsdown/src/build.ts
|
|
3383
|
+
|
|
3384
|
+
|
|
3385
|
+
|
|
3386
|
+
|
|
3387
|
+
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
var _tsdown = require('tsdown');
|
|
3392
|
+
|
|
3393
|
+
// ../tsdown/src/clean.ts
|
|
3394
|
+
|
|
3395
|
+
async function cleanDirectories2(name = "TSDown", directory, config5) {
|
|
3396
|
+
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
// ../tsdown/src/config.ts
|
|
3400
|
+
function getDefaultOptions(config5) {
|
|
3401
|
+
return {
|
|
3402
|
+
entry: ["./src/*.ts"],
|
|
3403
|
+
platform: "node",
|
|
3404
|
+
target: "esnext",
|
|
3405
|
+
mode: "production",
|
|
3406
|
+
dts: true,
|
|
3407
|
+
unused: {
|
|
3408
|
+
level: "error",
|
|
3409
|
+
ignore: ["typescript"]
|
|
3410
|
+
},
|
|
3411
|
+
publint: true,
|
|
3412
|
+
fixedExtension: true,
|
|
3413
|
+
...config5
|
|
3414
|
+
};
|
|
3415
|
+
}
|
|
3416
|
+
function toTSDownFormat(format4) {
|
|
3417
|
+
if (!format4 || Array.isArray(format4) && format4.length === 0) {
|
|
3418
|
+
return ["cjs", "es"];
|
|
3419
|
+
} else if (format4 === "esm") {
|
|
3420
|
+
return "es";
|
|
3421
|
+
} else if (Array.isArray(format4)) {
|
|
3422
|
+
return format4.map((f) => f === "esm" ? "es" : f);
|
|
3423
|
+
}
|
|
3424
|
+
return format4;
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
// ../tsdown/src/build.ts
|
|
3428
|
+
var resolveOptions = async (userOptions) => {
|
|
3429
|
+
const options = getDefaultOptions(userOptions);
|
|
3430
|
+
const workspaceRoot3 = findWorkspaceRoot(options.projectRoot);
|
|
3431
|
+
if (!workspaceRoot3) {
|
|
3432
|
+
throw new Error("Cannot find Nx workspace root");
|
|
3433
|
+
}
|
|
3434
|
+
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
3435
|
+
workspaceRoot: workspaceRoot3
|
|
3436
|
+
});
|
|
3437
|
+
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
3438
|
+
const stopwatch = getStopwatch("Build options resolution");
|
|
3439
|
+
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
3440
|
+
exitOnError: true
|
|
3441
|
+
});
|
|
3442
|
+
const projectJsonPath = joinPaths(
|
|
3443
|
+
workspaceRoot3,
|
|
3444
|
+
options.projectRoot,
|
|
3445
|
+
"project.json"
|
|
3446
|
+
);
|
|
3447
|
+
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
3448
|
+
throw new Error("Cannot find project.json configuration");
|
|
3449
|
+
}
|
|
3450
|
+
const projectJsonFile = await _promises2.default.readFile(projectJsonPath, "utf8");
|
|
3451
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
3452
|
+
const projectName = projectJson.name;
|
|
3453
|
+
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
3454
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _170 => _170.projects, 'optionalAccess', _171 => _171[projectName]])) {
|
|
3455
|
+
throw new Error(
|
|
3456
|
+
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
3457
|
+
);
|
|
3458
|
+
}
|
|
3459
|
+
const packageJsonPath = joinPaths(
|
|
3460
|
+
workspaceRoot3,
|
|
3461
|
+
options.projectRoot,
|
|
3462
|
+
"package.json"
|
|
3463
|
+
);
|
|
3464
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3465
|
+
throw new Error("Cannot find package.json configuration");
|
|
3466
|
+
}
|
|
3467
|
+
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
3468
|
+
const sourceRoot = projectJson.sourceRoot || joinPaths(options.projectRoot, "src");
|
|
3469
|
+
const result = {
|
|
3470
|
+
name: projectName,
|
|
3471
|
+
mode: "production",
|
|
3472
|
+
target: DEFAULT_TARGET,
|
|
3473
|
+
generatePackageJson: true,
|
|
3474
|
+
outDir: joinPaths("dist", options.projectRoot),
|
|
3475
|
+
minify: !debug,
|
|
3476
|
+
plugins: [],
|
|
3477
|
+
assets: [],
|
|
3478
|
+
dts: true,
|
|
3479
|
+
shims: true,
|
|
3480
|
+
silent: !debug,
|
|
3481
|
+
logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
|
|
3482
|
+
sourcemap: debug ? "inline" : false,
|
|
3483
|
+
clean: false,
|
|
3484
|
+
fixedExtension: true,
|
|
3485
|
+
nodeProtocol: true,
|
|
3486
|
+
tsconfig: joinPaths(options.projectRoot, "tsconfig.json"),
|
|
3487
|
+
debug,
|
|
3488
|
+
sourceRoot,
|
|
3489
|
+
cwd: workspaceConfig.workspaceRoot,
|
|
3490
|
+
entry: {
|
|
3491
|
+
["index"]: joinPaths(sourceRoot, "index.ts")
|
|
3492
|
+
},
|
|
3493
|
+
workspace: true,
|
|
3494
|
+
...options,
|
|
3495
|
+
treeshake: options.treeShaking !== false,
|
|
3496
|
+
format: toTSDownFormat(options.format),
|
|
3497
|
+
workspaceConfig,
|
|
3498
|
+
projectName,
|
|
3499
|
+
projectGraph,
|
|
3500
|
+
projectConfigurations
|
|
3501
|
+
};
|
|
3502
|
+
result.env = _defu2.default.call(void 0,
|
|
3503
|
+
options.env,
|
|
3504
|
+
getEnv("tsdown", result)
|
|
3505
|
+
);
|
|
3506
|
+
stopwatch();
|
|
3507
|
+
return result;
|
|
3508
|
+
};
|
|
3509
|
+
async function generatePackageJson2(options) {
|
|
3510
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
3511
|
+
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3512
|
+
const stopwatch = getStopwatch("Write package.json file");
|
|
3513
|
+
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
3514
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
3515
|
+
throw new Error("Cannot find package.json configuration");
|
|
3516
|
+
}
|
|
3517
|
+
const packageJsonFile = await _promises2.default.readFile(
|
|
3518
|
+
joinPaths(
|
|
3519
|
+
options.workspaceConfig.workspaceRoot,
|
|
3520
|
+
options.projectRoot,
|
|
3521
|
+
"package.json"
|
|
3522
|
+
),
|
|
3523
|
+
"utf8"
|
|
3524
|
+
);
|
|
3525
|
+
if (!packageJsonFile) {
|
|
3526
|
+
throw new Error("Cannot find package.json configuration file");
|
|
3527
|
+
}
|
|
3528
|
+
let packageJson = JSON.parse(packageJsonFile);
|
|
3529
|
+
packageJson = await addPackageDependencies(
|
|
3530
|
+
options.workspaceConfig.workspaceRoot,
|
|
3531
|
+
options.projectRoot,
|
|
3532
|
+
options.projectName,
|
|
3533
|
+
packageJson
|
|
3534
|
+
);
|
|
3535
|
+
packageJson = await addWorkspacePackageJsonFields(
|
|
3536
|
+
options.workspaceConfig,
|
|
3537
|
+
options.projectRoot,
|
|
3538
|
+
options.sourceRoot,
|
|
3539
|
+
options.projectName,
|
|
3540
|
+
false,
|
|
3541
|
+
packageJson
|
|
3542
|
+
);
|
|
3543
|
+
packageJson.exports ??= {};
|
|
3544
|
+
packageJson.exports["./package.json"] ??= "./package.json";
|
|
3545
|
+
packageJson.exports["."] ??= addPackageJsonExport(
|
|
3546
|
+
"index",
|
|
3547
|
+
packageJson.type,
|
|
3548
|
+
options.sourceRoot
|
|
3549
|
+
);
|
|
3550
|
+
let entry = [{ in: "./src/index.ts", out: "./src/index.ts" }];
|
|
3551
|
+
if (options.entry) {
|
|
3552
|
+
if (Array.isArray(options.entry)) {
|
|
3553
|
+
entry = options.entry.map(
|
|
3554
|
+
(entryPoint) => typeof entryPoint === "string" ? { in: entryPoint, out: entryPoint } : entryPoint
|
|
3555
|
+
);
|
|
3556
|
+
}
|
|
3557
|
+
for (const entryPoint of entry) {
|
|
3558
|
+
const split = entryPoint.out.split(".");
|
|
3559
|
+
split.pop();
|
|
3560
|
+
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
3561
|
+
packageJson.exports[`./${entry2}`] ??= addPackageJsonExport(
|
|
3562
|
+
entry2,
|
|
3563
|
+
options.fixedExtension ? "fixed" : packageJson.type,
|
|
3564
|
+
options.sourceRoot
|
|
3565
|
+
);
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
packageJson.main = !options.fixedExtension && packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
3569
|
+
packageJson.module = !options.fixedExtension && packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
|
|
3570
|
+
packageJson.types = `./dist/index.d.${!options.fixedExtension ? "ts" : "mts"}`;
|
|
3571
|
+
packageJson.exports = Object.keys(packageJson.exports).reduce(
|
|
3572
|
+
(ret, key) => {
|
|
3573
|
+
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
3574
|
+
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
3575
|
+
}
|
|
3576
|
+
return ret;
|
|
3577
|
+
},
|
|
3578
|
+
packageJson.exports
|
|
3579
|
+
);
|
|
3580
|
+
await _devkit.writeJsonFile.call(void 0, joinPaths(options.outDir, "package.json"), packageJson);
|
|
3581
|
+
stopwatch();
|
|
3582
|
+
}
|
|
3583
|
+
return options;
|
|
3584
|
+
}
|
|
3585
|
+
async function executeTSDown(options) {
|
|
3586
|
+
writeDebug(` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
3587
|
+
const stopwatch = getStopwatch(`${options.name} build`);
|
|
3588
|
+
await _tsdown.build.call(void 0, {
|
|
3589
|
+
...options,
|
|
3590
|
+
entry: options.entry,
|
|
3591
|
+
config: false
|
|
3592
|
+
});
|
|
3593
|
+
stopwatch();
|
|
3594
|
+
return options;
|
|
3595
|
+
}
|
|
3596
|
+
async function copyBuildAssets2(options) {
|
|
3597
|
+
writeDebug(
|
|
3598
|
+
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
3599
|
+
options.workspaceConfig
|
|
3600
|
+
);
|
|
3601
|
+
const stopwatch = getStopwatch(`${options.name} asset copy`);
|
|
3602
|
+
await copyAssets(
|
|
3603
|
+
options.workspaceConfig,
|
|
3604
|
+
_nullishCoalesce(options.assets, () => ( [])),
|
|
3605
|
+
options.outDir,
|
|
3606
|
+
options.projectRoot,
|
|
3607
|
+
options.sourceRoot,
|
|
3608
|
+
true,
|
|
3609
|
+
false
|
|
3610
|
+
);
|
|
3611
|
+
stopwatch();
|
|
3612
|
+
return options;
|
|
3613
|
+
}
|
|
3614
|
+
async function reportResults2(options) {
|
|
3615
|
+
writeSuccess(
|
|
3616
|
+
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
3617
|
+
options.workspaceConfig
|
|
3618
|
+
);
|
|
3619
|
+
}
|
|
3620
|
+
async function cleanOutputPath2(options) {
|
|
3621
|
+
if (options.clean !== false && options.workspaceConfig) {
|
|
3622
|
+
writeDebug(
|
|
3623
|
+
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
3624
|
+
options.workspaceConfig
|
|
3625
|
+
);
|
|
3626
|
+
const stopwatch = getStopwatch(`${options.name} output clean`);
|
|
3627
|
+
await cleanDirectories2(
|
|
3628
|
+
options.name,
|
|
3629
|
+
options.outDir,
|
|
3630
|
+
options.workspaceConfig
|
|
3631
|
+
);
|
|
3632
|
+
stopwatch();
|
|
3633
|
+
}
|
|
3634
|
+
return options;
|
|
3635
|
+
}
|
|
3636
|
+
async function build2(options) {
|
|
3637
|
+
writeDebug(` \u26A1 Executing Storm TSDown pipeline`);
|
|
3638
|
+
const stopwatch = getStopwatch("TSDown pipeline");
|
|
3639
|
+
try {
|
|
3640
|
+
const opts = Array.isArray(options) ? options : [options];
|
|
3641
|
+
if (opts.length === 0) {
|
|
3642
|
+
throw new Error("No build options were provided");
|
|
3643
|
+
}
|
|
3644
|
+
const resolved = await Promise.all(
|
|
3645
|
+
opts.map(async (opt) => await resolveOptions(opt))
|
|
3646
|
+
);
|
|
3647
|
+
if (resolved.length > 0) {
|
|
3648
|
+
await cleanOutputPath2(resolved[0]);
|
|
3649
|
+
await generatePackageJson2(resolved[0]);
|
|
3650
|
+
await Promise.all(
|
|
3651
|
+
resolved.map(async (opt) => {
|
|
3652
|
+
await executeTSDown(opt);
|
|
3653
|
+
await copyBuildAssets2(opt);
|
|
3654
|
+
await reportResults2(opt);
|
|
3655
|
+
})
|
|
3656
|
+
);
|
|
3657
|
+
} else {
|
|
3658
|
+
writeWarning(
|
|
3659
|
+
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
3660
|
+
);
|
|
3661
|
+
}
|
|
3662
|
+
writeSuccess(" \u{1F3C1} TSDown pipeline build completed successfully");
|
|
3663
|
+
} catch (error) {
|
|
3664
|
+
writeFatal(
|
|
3665
|
+
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
3666
|
+
);
|
|
3667
|
+
throw error;
|
|
3668
|
+
} finally {
|
|
3669
|
+
stopwatch();
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
3674
|
+
async function tsdownExecutorFn(options, context, config5) {
|
|
3675
|
+
writeInfo("\u{1F4E6} Running Storm TSDown executor on the workspace", config5);
|
|
3676
|
+
if (!_optionalChain([context, 'access', _172 => _172.projectsConfigurations, 'optionalAccess', _173 => _173.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _174 => _174.projectsConfigurations, 'access', _175 => _175.projects, 'access', _176 => _176[context.projectName], 'optionalAccess', _177 => _177.root])) {
|
|
3677
|
+
throw new Error(
|
|
3678
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3679
|
+
);
|
|
3680
|
+
}
|
|
3681
|
+
await build2({
|
|
3682
|
+
...options,
|
|
3683
|
+
projectRoot: (
|
|
3684
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3685
|
+
_optionalChain([context, 'access', _178 => _178.projectsConfigurations, 'access', _179 => _179.projects, 'optionalAccess', _180 => _180[context.projectName], 'access', _181 => _181.root])
|
|
3686
|
+
),
|
|
3687
|
+
name: context.projectName,
|
|
3688
|
+
sourceRoot: _optionalChain([context, 'access', _182 => _182.projectsConfigurations, 'access', _183 => _183.projects, 'optionalAccess', _184 => _184[context.projectName], 'optionalAccess', _185 => _185.sourceRoot]),
|
|
3689
|
+
format: options.format,
|
|
3690
|
+
platform: options.platform
|
|
3691
|
+
});
|
|
3692
|
+
return {
|
|
3693
|
+
success: true
|
|
3694
|
+
};
|
|
3695
|
+
}
|
|
3696
|
+
var executor_default8 = withRunExecutor(
|
|
3697
|
+
"Storm TSDown build",
|
|
3698
|
+
tsdownExecutorFn,
|
|
3699
|
+
{
|
|
3700
|
+
skipReadingConfig: false,
|
|
3701
|
+
hooks: {
|
|
3702
|
+
applyDefaultOptions: async (options) => {
|
|
3703
|
+
options.entry ??= ["src/index.ts"];
|
|
3704
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
3705
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
3706
|
+
return options;
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
);
|
|
3711
|
+
|
|
3361
3712
|
// ../workspace-tools/src/executors/typia/executor.ts
|
|
3362
3713
|
var _fsextra = require('fs-extra');
|
|
3363
3714
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
@@ -3380,7 +3731,7 @@ async function typiaExecutorFn(options, _, config5) {
|
|
|
3380
3731
|
success: true
|
|
3381
3732
|
};
|
|
3382
3733
|
}
|
|
3383
|
-
var
|
|
3734
|
+
var executor_default9 = withRunExecutor(
|
|
3384
3735
|
"Typia runtime validation generator",
|
|
3385
3736
|
typiaExecutorFn,
|
|
3386
3737
|
{
|
|
@@ -3402,7 +3753,7 @@ var executor_default8 = withRunExecutor(
|
|
|
3402
3753
|
var _jiti = require('jiti');
|
|
3403
3754
|
async function unbuildExecutorFn(options, context, config5) {
|
|
3404
3755
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config5);
|
|
3405
|
-
if (!_optionalChain([context, 'access',
|
|
3756
|
+
if (!_optionalChain([context, 'access', _186 => _186.projectsConfigurations, 'optionalAccess', _187 => _187.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
3406
3757
|
throw new Error(
|
|
3407
3758
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
3408
3759
|
);
|
|
@@ -3469,7 +3820,7 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
3469
3820
|
success: true
|
|
3470
3821
|
};
|
|
3471
3822
|
}
|
|
3472
|
-
var
|
|
3823
|
+
var executor_default10 = withRunExecutor(
|
|
3473
3824
|
"TypeScript Unbuild build",
|
|
3474
3825
|
unbuildExecutorFn,
|
|
3475
3826
|
{
|
|
@@ -3601,15 +3952,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
3601
3952
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3602
3953
|
let repository = {
|
|
3603
3954
|
type: "github",
|
|
3604
|
-
url: _optionalChain([config5, 'optionalAccess',
|
|
3955
|
+
url: _optionalChain([config5, 'optionalAccess', _188 => _188.repository]) || `https://github.com/${(typeof _optionalChain([config5, 'optionalAccess', _189 => _189.organization]) === "string" ? _optionalChain([config5, 'optionalAccess', _190 => _190.organization]) : _optionalChain([config5, 'optionalAccess', _191 => _191.organization, 'optionalAccess', _192 => _192.name])) || "storm-software"}/${_optionalChain([config5, 'optionalAccess', _193 => _193.namespace]) || _optionalChain([config5, 'optionalAccess', _194 => _194.name]) || "repository"}.git`
|
|
3605
3956
|
};
|
|
3606
3957
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3607
3958
|
if (tree.exists("package.json")) {
|
|
3608
3959
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3609
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3960
|
+
if (_optionalChain([packageJson, 'optionalAccess', _195 => _195.repository])) {
|
|
3610
3961
|
repository = packageJson.repository;
|
|
3611
3962
|
}
|
|
3612
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3963
|
+
if (_optionalChain([packageJson, 'optionalAccess', _196 => _196.description])) {
|
|
3613
3964
|
description = packageJson.description;
|
|
3614
3965
|
}
|
|
3615
3966
|
}
|
|
@@ -3664,9 +4015,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
3664
4015
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3665
4016
|
...json,
|
|
3666
4017
|
pnpm: {
|
|
3667
|
-
..._optionalChain([json, 'optionalAccess',
|
|
4018
|
+
..._optionalChain([json, 'optionalAccess', _197 => _197.pnpm]),
|
|
3668
4019
|
overrides: {
|
|
3669
|
-
..._optionalChain([json, 'optionalAccess',
|
|
4020
|
+
..._optionalChain([json, 'optionalAccess', _198 => _198.pnpm, 'optionalAccess', _199 => _199.overrides]),
|
|
3670
4021
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3671
4022
|
}
|
|
3672
4023
|
}
|
|
@@ -3684,10 +4035,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
3684
4035
|
]);
|
|
3685
4036
|
if (tree.exists("package.json")) {
|
|
3686
4037
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3687
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4038
|
+
if (_optionalChain([packageJson, 'optionalAccess', _200 => _200.repository])) {
|
|
3688
4039
|
repository = packageJson.repository;
|
|
3689
4040
|
}
|
|
3690
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
4041
|
+
if (_optionalChain([packageJson, 'optionalAccess', _201 => _201.description])) {
|
|
3691
4042
|
description = packageJson.description;
|
|
3692
4043
|
}
|
|
3693
4044
|
}
|
|
@@ -3724,22 +4075,22 @@ function getOutputPath(options) {
|
|
|
3724
4075
|
function createProjectTsConfigJson(tree, options) {
|
|
3725
4076
|
const tsconfig = {
|
|
3726
4077
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3727
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4078
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _202 => _202.tsconfigOptions]), () => ( {})),
|
|
3728
4079
|
compilerOptions: {
|
|
3729
4080
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3730
4081
|
outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3731
4082
|
noEmit: true,
|
|
3732
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4083
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _203 => _203.tsconfigOptions, 'optionalAccess', _204 => _204.compilerOptions]), () => ( {}))
|
|
3733
4084
|
},
|
|
3734
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4085
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _205 => _205.tsconfigOptions, 'optionalAccess', _206 => _206.files]), () => ( []))],
|
|
3735
4086
|
include: [
|
|
3736
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4087
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _207 => _207.tsconfigOptions, 'optionalAccess', _208 => _208.include]), () => ( [])),
|
|
3737
4088
|
"src/**/*.ts",
|
|
3738
4089
|
"src/**/*.js",
|
|
3739
4090
|
"bin/**/*"
|
|
3740
4091
|
],
|
|
3741
4092
|
exclude: [
|
|
3742
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4093
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _209 => _209.tsconfigOptions, 'optionalAccess', _210 => _210.exclude]), () => ( [])),
|
|
3743
4094
|
"jest.config.ts",
|
|
3744
4095
|
"src/**/*.spec.ts",
|
|
3745
4096
|
"src/**/*.test.ts"
|
|
@@ -3749,8 +4100,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3749
4100
|
}
|
|
3750
4101
|
async function normalizeOptions(tree, options, config5) {
|
|
3751
4102
|
let importPath = options.importPath;
|
|
3752
|
-
if (!importPath && _optionalChain([config5, 'optionalAccess',
|
|
3753
|
-
importPath = `@${_optionalChain([config5, 'optionalAccess',
|
|
4103
|
+
if (!importPath && _optionalChain([config5, 'optionalAccess', _211 => _211.namespace])) {
|
|
4104
|
+
importPath = `@${_optionalChain([config5, 'optionalAccess', _212 => _212.namespace])}/${options.name}`;
|
|
3754
4105
|
}
|
|
3755
4106
|
if (options.publishable) {
|
|
3756
4107
|
if (!importPath) {
|
|
@@ -3915,7 +4266,7 @@ async function configSchemaGeneratorFn(tree, options, config5) {
|
|
|
3915
4266
|
);
|
|
3916
4267
|
}
|
|
3917
4268
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3918
|
-
_nullishCoalesce(_optionalChain([config5, 'optionalAccess',
|
|
4269
|
+
_nullishCoalesce(_optionalChain([config5, 'optionalAccess', _213 => _213.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3919
4270
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
3920
4271
|
);
|
|
3921
4272
|
writeTrace(
|
|
@@ -4462,8 +4813,8 @@ var CHANGELOG_COMMIT_TYPES_OBJECT = Object.freeze(
|
|
|
4462
4813
|
ret[key] = {
|
|
4463
4814
|
...commitType.changelog,
|
|
4464
4815
|
type: key,
|
|
4465
|
-
section: _optionalChain([commitType, 'access',
|
|
4466
|
-
hidden: _optionalChain([commitType, 'access',
|
|
4816
|
+
section: _optionalChain([commitType, 'access', _214 => _214.changelog, 'optionalAccess', _215 => _215.title]) || commitType.title,
|
|
4817
|
+
hidden: _optionalChain([commitType, 'access', _216 => _216.changelog, 'optionalAccess', _217 => _217.hidden])
|
|
4467
4818
|
};
|
|
4468
4819
|
return ret;
|
|
4469
4820
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYGHWQ6M7js = require('./chunk-YGHWQ6M7.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/refresh/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkYGHWQ6M7js.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 _chunkYGHWQ6M7js = require('./chunk-YGHWQ6M7.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/config/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkYGHWQ6M7js.withPulumiExecutor.call(void 0, "config", (options) => [
|
|
7
7
|
options.action,
|
|
8
8
|
options.showSecrets && `--show-secrets`,
|
|
9
9
|
options.secret && `--secret`,
|
|
@@ -5,7 +5,7 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6IFSXBEGjs = require('./chunk-6IFSXBEG.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 = _chunk6IFSXBEGjs.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 = _chunk6IFSXBEGjs.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
|
+
_chunk6IFSXBEGjs.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
|
+
_chunk6IFSXBEGjs.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"),
|