@storm-software/pulumi-tools 0.22.282 → 0.22.287
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 +60 -0
- package/README.md +1 -1
- package/dist/{chunk-KJEHUSYV.js → chunk-266ZUIDD.js} +2 -2
- package/dist/{chunk-DHJTU33T.mjs → chunk-4RR3IGJL.mjs} +1 -1
- package/dist/{chunk-WVWG25KV.mjs → chunk-5MGFDHSO.mjs} +187 -145
- package/dist/{chunk-2TKHNHOK.mjs → chunk-6OT6FGPR.mjs} +1 -1
- package/dist/{chunk-3A3IYIUY.mjs → chunk-7ED7F5OJ.mjs} +1 -1
- package/dist/{chunk-H3G442G2.mjs → chunk-A7LBK7UJ.mjs} +1 -1
- package/dist/{chunk-LXRYS5E4.js → chunk-CD4SSXWO.js} +2 -2
- package/dist/{chunk-ZKAKJWHF.mjs → chunk-E2O32U3R.mjs} +1 -1
- package/dist/{chunk-6Q6WYEPB.js → chunk-H4NQXVJS.js} +167 -125
- package/dist/{chunk-PO3YAQB2.js → chunk-IKR5ZAJD.js} +2 -2
- package/dist/{chunk-XE6CJF6B.mjs → chunk-IZSMRQ4H.mjs} +1 -1
- package/dist/{chunk-JMKDXVTL.js → chunk-OULBDO6M.js} +5 -5
- package/dist/{chunk-S5HDERBM.js → chunk-RCSLM2JT.js} +2 -2
- package/dist/{chunk-6NAVJZYD.js → chunk-TCSW2RZG.js} +2 -2
- package/dist/{chunk-ET5QBGVL.mjs → chunk-W4473RCG.mjs} +1 -1
- package/dist/{chunk-FBFBLJXY.js → chunk-XVL67FUS.js} +3 -3
- package/dist/{chunk-FSGVXBGR.mjs → chunk-ZVAWMWYX.mjs} +1 -1
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/providers.mjs +1 -1
- package/dist/src/executors/config/executor.js +4 -4
- package/dist/src/executors/config/executor.mjs +4 -4
- package/dist/src/executors/import/executor.js +4 -4
- package/dist/src/executors/import/executor.mjs +4 -4
- package/dist/src/executors/preview/executor.js +4 -4
- package/dist/src/executors/preview/executor.mjs +4 -4
- package/dist/src/executors/refresh/executor.js +4 -4
- package/dist/src/executors/refresh/executor.mjs +4 -4
- package/dist/src/executors/up/executor.js +4 -4
- package/dist/src/executors/up/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/src/lib/aws/index.mjs +1 -1
- package/dist/src/lib/aws/providers.mjs +1 -1
- package/dist/tsup.config.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__dirname
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4RR3IGJL.mjs";
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/run.ts
|
|
6
6
|
import { exec, execSync } from "node:child_process";
|
|
@@ -2878,36 +2878,11 @@ var executor_default7 = withRunExecutor(
|
|
|
2878
2878
|
}
|
|
2879
2879
|
);
|
|
2880
2880
|
|
|
2881
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
2882
|
-
import { exec as exec3 } from "node:child_process";
|
|
2883
|
-
import { valid } from "semver";
|
|
2884
|
-
import stripAnsi from "strip-ansi";
|
|
2885
|
-
|
|
2886
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
2887
|
-
import { exec as exec2 } from "node:child_process";
|
|
2888
|
-
|
|
2889
|
-
// ../pnpm-tools/src/helpers/catalog.ts
|
|
2890
|
-
import { coerce, gt, valid as valid2 } from "semver";
|
|
2891
|
-
|
|
2892
|
-
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
2893
|
-
import { existsSync as existsSync4 } from "node:fs";
|
|
2894
|
-
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
2895
|
-
import { parse, stringify } from "yaml";
|
|
2896
|
-
|
|
2897
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
2898
|
-
import {
|
|
2899
|
-
createProjectGraphAsync,
|
|
2900
|
-
readCachedProjectGraph
|
|
2901
|
-
} from "@nx/devkit";
|
|
2902
|
-
import { existsSync as existsSync5 } from "node:fs";
|
|
2903
|
-
import { readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
|
|
2904
|
-
import { format } from "prettier";
|
|
2905
|
-
|
|
2906
2881
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2907
2882
|
import { createJiti as createJiti4 } from "jiti";
|
|
2908
2883
|
import { execSync as execSync4 } from "node:child_process";
|
|
2909
|
-
import { readFile as
|
|
2910
|
-
import { format as
|
|
2884
|
+
import { readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
|
|
2885
|
+
import { format as format2 } from "prettier";
|
|
2911
2886
|
|
|
2912
2887
|
// ../workspace-tools/src/utils/github.ts
|
|
2913
2888
|
import { createJiti as createJiti3 } from "jiti";
|
|
@@ -2918,10 +2893,10 @@ import {
|
|
|
2918
2893
|
readJsonFile
|
|
2919
2894
|
} from "@nx/devkit";
|
|
2920
2895
|
import { execFileSync } from "child_process";
|
|
2921
|
-
import { existsSync as
|
|
2922
|
-
import { readFile as
|
|
2896
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
2897
|
+
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
2923
2898
|
import { dirname, resolve as resolve2 } from "path";
|
|
2924
|
-
import { format
|
|
2899
|
+
import { format } from "prettier";
|
|
2925
2900
|
|
|
2926
2901
|
// ../package-constants/src/tags.ts
|
|
2927
2902
|
var ProjectTagConstants = {
|
|
@@ -2998,6 +2973,12 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
2998
2973
|
}
|
|
2999
2974
|
};
|
|
3000
2975
|
|
|
2976
|
+
// ../workspace-tools/src/utils/package-manager.ts
|
|
2977
|
+
import {
|
|
2978
|
+
detectPackageManager,
|
|
2979
|
+
getPackageManagerCommand
|
|
2980
|
+
} from "@nx/devkit";
|
|
2981
|
+
|
|
3001
2982
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
3002
2983
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
3003
2984
|
|
|
@@ -3044,7 +3025,7 @@ var executor_default8 = withRunExecutor(
|
|
|
3044
3025
|
|
|
3045
3026
|
// ../tsdown/src/build.ts
|
|
3046
3027
|
import {
|
|
3047
|
-
createProjectGraphAsync as
|
|
3028
|
+
createProjectGraphAsync as createProjectGraphAsync2,
|
|
3048
3029
|
readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2,
|
|
3049
3030
|
writeJsonFile
|
|
3050
3031
|
} from "@nx/devkit";
|
|
@@ -3070,7 +3051,7 @@ import { relative as relative3 } from "path";
|
|
|
3070
3051
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
3071
3052
|
import { CopyAssetsHandler } from "@nx/js/internal";
|
|
3072
3053
|
import { glob } from "glob";
|
|
3073
|
-
import { readFile as
|
|
3054
|
+
import { readFile as readFile4, writeFile as writeFile3 } from "node:fs/promises";
|
|
3074
3055
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
3075
3056
|
const pendingAssets = Array.from(assets ?? []);
|
|
3076
3057
|
pendingAssets.push({
|
|
@@ -3126,11 +3107,11 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
3126
3107
|
]);
|
|
3127
3108
|
await Promise.allSettled(
|
|
3128
3109
|
files.map(
|
|
3129
|
-
async (file) =>
|
|
3110
|
+
async (file) => writeFile3(
|
|
3130
3111
|
file,
|
|
3131
3112
|
`${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
3132
3113
|
|
|
3133
|
-
${await
|
|
3114
|
+
${await readFile4(file, "utf8")}
|
|
3134
3115
|
|
|
3135
3116
|
${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`
|
|
3136
3117
|
)
|
|
@@ -3142,20 +3123,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
3142
3123
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
3143
3124
|
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
3144
3125
|
import { Glob } from "glob";
|
|
3145
|
-
import { existsSync as
|
|
3146
|
-
import { readFile as
|
|
3126
|
+
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
3127
|
+
import { readFile as readFile5 } from "node:fs/promises";
|
|
3147
3128
|
import {
|
|
3148
|
-
createProjectGraphAsync
|
|
3149
|
-
readCachedProjectGraph
|
|
3129
|
+
createProjectGraphAsync,
|
|
3130
|
+
readCachedProjectGraph,
|
|
3150
3131
|
readProjectsConfigurationFromProjectGraph
|
|
3151
3132
|
} from "nx/src/project-graph/project-graph";
|
|
3152
3133
|
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
3153
3134
|
let projectGraph;
|
|
3154
3135
|
try {
|
|
3155
|
-
projectGraph =
|
|
3136
|
+
projectGraph = readCachedProjectGraph();
|
|
3156
3137
|
} catch {
|
|
3157
|
-
await
|
|
3158
|
-
projectGraph =
|
|
3138
|
+
await createProjectGraphAsync();
|
|
3139
|
+
projectGraph = readCachedProjectGraph();
|
|
3159
3140
|
}
|
|
3160
3141
|
if (!projectGraph) {
|
|
3161
3142
|
throw new Error(
|
|
@@ -3182,8 +3163,8 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3182
3163
|
projectNode.data.root,
|
|
3183
3164
|
"package.json"
|
|
3184
3165
|
);
|
|
3185
|
-
if (
|
|
3186
|
-
const projectPackageJsonContent = await
|
|
3166
|
+
if (existsSync5(projectPackageJsonPath)) {
|
|
3167
|
+
const projectPackageJsonContent = await readFile5(
|
|
3187
3168
|
projectPackageJsonPath,
|
|
3188
3169
|
"utf8"
|
|
3189
3170
|
);
|
|
@@ -3198,7 +3179,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3198
3179
|
writeTrace(
|
|
3199
3180
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
3200
3181
|
);
|
|
3201
|
-
const projectJsonFile = await
|
|
3182
|
+
const projectJsonFile = await readFile5(
|
|
3202
3183
|
joinPaths(projectRoot, "project.json"),
|
|
3203
3184
|
"utf8"
|
|
3204
3185
|
);
|
|
@@ -3217,7 +3198,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3217
3198
|
projectConfigurations.projects[dep].root,
|
|
3218
3199
|
"package.json"
|
|
3219
3200
|
);
|
|
3220
|
-
if (
|
|
3201
|
+
if (existsSync5(depPackageJsonPath)) {
|
|
3221
3202
|
const depPackageJsonContent = readFileSync3(
|
|
3222
3203
|
depPackageJsonPath,
|
|
3223
3204
|
"utf8"
|
|
@@ -3249,7 +3230,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
3249
3230
|
};
|
|
3250
3231
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
3251
3232
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
3252
|
-
const workspacePackageJsonContent = await
|
|
3233
|
+
const workspacePackageJsonContent = await readFile5(
|
|
3253
3234
|
joinPaths(workspaceRoot2, "package.json"),
|
|
3254
3235
|
"utf8"
|
|
3255
3236
|
);
|
|
@@ -3328,8 +3309,8 @@ var getEnv = (builder, options) => {
|
|
|
3328
3309
|
};
|
|
3329
3310
|
|
|
3330
3311
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
3331
|
-
import { existsSync as
|
|
3332
|
-
import { readFile as
|
|
3312
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
3313
|
+
import { readFile as readFile6 } from "node:fs/promises";
|
|
3333
3314
|
|
|
3334
3315
|
// ../build-tools/src/utilities/task-graph.ts
|
|
3335
3316
|
import {
|
|
@@ -3339,7 +3320,7 @@ import {
|
|
|
3339
3320
|
|
|
3340
3321
|
// ../tsdown/src/build.ts
|
|
3341
3322
|
import defu4 from "defu";
|
|
3342
|
-
import { existsSync as
|
|
3323
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
3343
3324
|
import hf from "node:fs/promises";
|
|
3344
3325
|
import { build as tsdown } from "tsdown";
|
|
3345
3326
|
|
|
@@ -3366,15 +3347,15 @@ function getDefaultOptions(config) {
|
|
|
3366
3347
|
...config
|
|
3367
3348
|
};
|
|
3368
3349
|
}
|
|
3369
|
-
function toTSDownFormat(
|
|
3370
|
-
if (!
|
|
3350
|
+
function toTSDownFormat(format3) {
|
|
3351
|
+
if (!format3 || Array.isArray(format3) && format3.length === 0) {
|
|
3371
3352
|
return ["cjs", "es"];
|
|
3372
|
-
} else if (
|
|
3353
|
+
} else if (format3 === "esm") {
|
|
3373
3354
|
return "es";
|
|
3374
|
-
} else if (Array.isArray(
|
|
3375
|
-
return
|
|
3355
|
+
} else if (Array.isArray(format3)) {
|
|
3356
|
+
return format3.map((f) => f === "esm" ? "es" : f);
|
|
3376
3357
|
}
|
|
3377
|
-
return
|
|
3358
|
+
return format3;
|
|
3378
3359
|
}
|
|
3379
3360
|
|
|
3380
3361
|
// ../tsdown/src/build.ts
|
|
@@ -3389,7 +3370,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3389
3370
|
});
|
|
3390
3371
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
3391
3372
|
const stopwatch = getStopwatch("Build options resolution");
|
|
3392
|
-
const projectGraph = await
|
|
3373
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
3393
3374
|
exitOnError: true
|
|
3394
3375
|
});
|
|
3395
3376
|
const projectJsonPath = joinPaths(
|
|
@@ -3397,7 +3378,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3397
3378
|
options.projectRoot,
|
|
3398
3379
|
"project.json"
|
|
3399
3380
|
);
|
|
3400
|
-
if (!
|
|
3381
|
+
if (!existsSync7(projectJsonPath)) {
|
|
3401
3382
|
throw new Error("Cannot find project.json configuration");
|
|
3402
3383
|
}
|
|
3403
3384
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
@@ -3414,7 +3395,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
3414
3395
|
options.projectRoot,
|
|
3415
3396
|
"package.json"
|
|
3416
3397
|
);
|
|
3417
|
-
if (!
|
|
3398
|
+
if (!existsSync7(packageJsonPath)) {
|
|
3418
3399
|
throw new Error("Cannot find package.json configuration");
|
|
3419
3400
|
}
|
|
3420
3401
|
const debug = options.debug ?? (options.mode || workspaceConfig.mode) === "development";
|
|
@@ -3459,11 +3440,11 @@ var resolveOptions = async (userOptions) => {
|
|
|
3459
3440
|
return result;
|
|
3460
3441
|
};
|
|
3461
3442
|
async function generatePackageJson(options) {
|
|
3462
|
-
if (options.generatePackageJson !== false &&
|
|
3443
|
+
if (options.generatePackageJson !== false && existsSync7(joinPaths(options.projectRoot, "package.json"))) {
|
|
3463
3444
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
3464
3445
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3465
3446
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
3466
|
-
if (!
|
|
3447
|
+
if (!existsSync7(packageJsonPath)) {
|
|
3467
3448
|
throw new Error("Cannot find package.json configuration");
|
|
3468
3449
|
}
|
|
3469
3450
|
const packageJsonFile = await hf.readFile(
|
|
@@ -3822,7 +3803,16 @@ import {
|
|
|
3822
3803
|
var typesNodeVersion = "20.9.0";
|
|
3823
3804
|
var nxVersion = "^18.0.4";
|
|
3824
3805
|
var nodeVersion = "20.11.0";
|
|
3825
|
-
var pnpmVersion = "
|
|
3806
|
+
var pnpmVersion = "10.3.0";
|
|
3807
|
+
var npmVersion = "10.9.0";
|
|
3808
|
+
var yarnVersion = "4.6.0";
|
|
3809
|
+
var bunVersion = "1.2.0";
|
|
3810
|
+
var packageManagerVersions = {
|
|
3811
|
+
npm: npmVersion,
|
|
3812
|
+
yarn: yarnVersion,
|
|
3813
|
+
pnpm: pnpmVersion,
|
|
3814
|
+
bun: bunVersion
|
|
3815
|
+
};
|
|
3826
3816
|
|
|
3827
3817
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3828
3818
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
@@ -3953,16 +3943,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3953
3943
|
});
|
|
3954
3944
|
}
|
|
3955
3945
|
if (tree.exists("package.json") && normalized.importPath) {
|
|
3956
|
-
updateJson(tree, "package.json", (json) =>
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3946
|
+
updateJson(tree, "package.json", (json) => {
|
|
3947
|
+
if (config?.packageManager === "yarn") {
|
|
3948
|
+
return {
|
|
3949
|
+
...json,
|
|
3950
|
+
resolutions: {
|
|
3951
|
+
...json?.resolutions,
|
|
3952
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
3953
|
+
}
|
|
3954
|
+
};
|
|
3955
|
+
}
|
|
3956
|
+
if (config?.packageManager === "npm") {
|
|
3957
|
+
return {
|
|
3958
|
+
...json,
|
|
3959
|
+
overrides: {
|
|
3960
|
+
...json?.overrides,
|
|
3961
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
3962
|
+
}
|
|
3963
|
+
};
|
|
3964
|
+
}
|
|
3965
|
+
if (config?.packageManager === "bun") {
|
|
3966
|
+
return {
|
|
3967
|
+
...json,
|
|
3968
|
+
overrides: {
|
|
3969
|
+
...json?.overrides,
|
|
3970
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
3971
|
+
}
|
|
3972
|
+
};
|
|
3964
3973
|
}
|
|
3965
|
-
|
|
3974
|
+
return {
|
|
3975
|
+
...json,
|
|
3976
|
+
pnpm: {
|
|
3977
|
+
...json?.pnpm,
|
|
3978
|
+
overrides: {
|
|
3979
|
+
...json?.pnpm?.overrides,
|
|
3980
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
};
|
|
3984
|
+
});
|
|
3966
3985
|
}
|
|
3967
3986
|
addTsConfigPath(tree, normalized.importPath, [
|
|
3968
3987
|
joinPaths(
|
|
@@ -4363,12 +4382,57 @@ import {
|
|
|
4363
4382
|
addProjectConfiguration as addProjectConfiguration2,
|
|
4364
4383
|
formatFiles as formatFiles7,
|
|
4365
4384
|
generateFiles as generateFiles4,
|
|
4385
|
+
getPackageManagerCommand as getPackageManagerCommand2,
|
|
4366
4386
|
joinPathFragments as joinPathFragments5,
|
|
4367
4387
|
updateJson as updateJson2
|
|
4368
4388
|
} from "@nx/devkit";
|
|
4369
4389
|
import * as path2 from "node:path";
|
|
4390
|
+
|
|
4391
|
+
// ../workspace-tools/src/utils/lock-file.ts
|
|
4392
|
+
import {
|
|
4393
|
+
output,
|
|
4394
|
+
readJsonFile as readJsonFile2,
|
|
4395
|
+
workspaceRoot
|
|
4396
|
+
} from "@nx/devkit";
|
|
4397
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
4398
|
+
import { join as join3 } from "node:path";
|
|
4399
|
+
import {
|
|
4400
|
+
getNpmLockfileDependencies,
|
|
4401
|
+
getNpmLockfileNodes
|
|
4402
|
+
} from "nx/src/plugins/js/lock-file/npm-parser";
|
|
4403
|
+
import {
|
|
4404
|
+
getPnpmLockfileDependencies,
|
|
4405
|
+
getPnpmLockfileNodes
|
|
4406
|
+
} from "nx/src/plugins/js/lock-file/pnpm-parser";
|
|
4407
|
+
import {
|
|
4408
|
+
getYarnLockfileDependencies,
|
|
4409
|
+
getYarnLockfileNodes
|
|
4410
|
+
} from "nx/src/plugins/js/lock-file/yarn-parser";
|
|
4411
|
+
var YARN_LOCK_FILE = "yarn.lock";
|
|
4412
|
+
var NPM_LOCK_FILE = "package-lock.json";
|
|
4413
|
+
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
4414
|
+
var BUN_LOCK_FILE = "bun.lock";
|
|
4415
|
+
var YARN_LOCK_PATH = join3(workspaceRoot, YARN_LOCK_FILE);
|
|
4416
|
+
var NPM_LOCK_PATH = join3(workspaceRoot, NPM_LOCK_FILE);
|
|
4417
|
+
var PNPM_LOCK_PATH = join3(workspaceRoot, PNPM_LOCK_FILE);
|
|
4418
|
+
var BUN_LOCK_PATH = join3(workspaceRoot, BUN_LOCK_FILE);
|
|
4419
|
+
var LOCK_FILE_BY_PACKAGE_MANAGER = {
|
|
4420
|
+
npm: "package-lock.json",
|
|
4421
|
+
yarn: "yarn.lock",
|
|
4422
|
+
pnpm: "pnpm-lock.yaml",
|
|
4423
|
+
bun: "bun.lock"
|
|
4424
|
+
};
|
|
4425
|
+
function getLockFileName(packageManager) {
|
|
4426
|
+
return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
|
|
4427
|
+
}
|
|
4428
|
+
|
|
4429
|
+
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4370
4430
|
async function presetGeneratorFn(tree, options) {
|
|
4371
4431
|
const projectRoot = ".";
|
|
4432
|
+
const packageManager = options.packageManager ?? "pnpm";
|
|
4433
|
+
const packageManagerVersion = packageManagerVersions[packageManager];
|
|
4434
|
+
const pmc = getPackageManagerCommand2(packageManager);
|
|
4435
|
+
const lockFileName = getLockFileName(packageManager);
|
|
4372
4436
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
4373
4437
|
options.namespace ??= options.organization;
|
|
4374
4438
|
addProjectConfiguration2(tree, `@${options.namespace}/${options.name}`, {
|
|
@@ -4436,11 +4500,6 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4436
4500
|
type: "github",
|
|
4437
4501
|
url: `${options.repositoryUrl}.git`
|
|
4438
4502
|
};
|
|
4439
|
-
json.packageManager ??= "pnpm@10.3.0";
|
|
4440
|
-
json.engines ??= {
|
|
4441
|
-
node: ">=20.11.0",
|
|
4442
|
-
pnpm: ">=10.3.0"
|
|
4443
|
-
};
|
|
4444
4503
|
json.prettier = "@storm-software/prettier/config.json";
|
|
4445
4504
|
json.nx ??= {
|
|
4446
4505
|
includedScripts: [
|
|
@@ -4457,14 +4516,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4457
4516
|
"release"
|
|
4458
4517
|
]
|
|
4459
4518
|
};
|
|
4460
|
-
json.scripts.adr = "
|
|
4461
|
-
json.scripts["adr-preview"] = "
|
|
4462
|
-
json.scripts.prepare =
|
|
4463
|
-
json.scripts.preinstall =
|
|
4464
|
-
json.scripts["install-csb"] = "corepack enable &&
|
|
4519
|
+
json.scripts.adr = pmc.run("log4brains", "adr new");
|
|
4520
|
+
json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
|
|
4521
|
+
json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
|
|
4522
|
+
json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
|
|
4523
|
+
json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
|
|
4465
4524
|
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
4466
|
-
json.scripts.nuke =
|
|
4467
|
-
json.scripts.prebuild =
|
|
4525
|
+
json.scripts.nuke = `nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && ${packageManager} clean && rimraf ${lockFileName} && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules`;
|
|
4526
|
+
json.scripts.prebuild = `${packageManager} clean`;
|
|
4468
4527
|
json.scripts.build = "nx affected -t build --parallel=5";
|
|
4469
4528
|
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
4470
4529
|
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
@@ -4479,45 +4538,53 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4479
4538
|
}
|
|
4480
4539
|
json.scripts.nx = "nx";
|
|
4481
4540
|
json.scripts.graph = "nx graph";
|
|
4482
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
4483
4541
|
if (options.includeApps) {
|
|
4484
4542
|
json.scripts.start = "nx serve";
|
|
4485
|
-
json.scripts.storybook = "
|
|
4543
|
+
json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
|
|
4486
4544
|
}
|
|
4487
4545
|
json.scripts.help = "nx help";
|
|
4488
4546
|
json.scripts["dep-graph"] = "nx dep-graph";
|
|
4489
4547
|
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
4490
4548
|
json.scripts.e2e = "nx e2e";
|
|
4491
4549
|
if (options.includeApps) {
|
|
4492
|
-
json.scripts.test =
|
|
4493
|
-
json.scripts["test-storybook"] =
|
|
4550
|
+
json.scripts.test = `nx test && ${packageManager} test-storybook`;
|
|
4551
|
+
json.scripts["test-storybook"] = `${packageManager} test-storybook`;
|
|
4494
4552
|
} else {
|
|
4495
4553
|
json.scripts.test = "nx test";
|
|
4496
4554
|
}
|
|
4497
|
-
json.scripts.
|
|
4498
|
-
json.scripts
|
|
4499
|
-
|
|
4500
|
-
|
|
4555
|
+
json.scripts.commit = pmc.run("storm-git", "commit");
|
|
4556
|
+
json.scripts["api-extractor"] = pmc.run(
|
|
4557
|
+
"storm-docs",
|
|
4558
|
+
'api-extractor --outputPath="docs/api-reference" --clean'
|
|
4559
|
+
);
|
|
4560
|
+
json.scripts.release = pmc.run("storm-git", "release");
|
|
4501
4561
|
json.scripts.format = "nx format:write";
|
|
4502
|
-
json.scripts["format-sherif"] =
|
|
4503
|
-
json.scripts["format-toml"] =
|
|
4504
|
-
json.scripts["format-readme"] =
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
json.scripts["
|
|
4509
|
-
json.scripts
|
|
4510
|
-
json.
|
|
4562
|
+
json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
|
|
4563
|
+
json.scripts["format-toml"] = `${pmc.exec} taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"`;
|
|
4564
|
+
json.scripts["format-readme"] = pmc.run(
|
|
4565
|
+
"storm-git",
|
|
4566
|
+
'readme --templates="tools/readme-templates"'
|
|
4567
|
+
);
|
|
4568
|
+
json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
|
|
4569
|
+
json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
|
|
4570
|
+
json.scripts["lint-knip"] = `${pmc.exec} knip`;
|
|
4571
|
+
json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
|
|
4572
|
+
json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
|
|
4573
|
+
json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
|
|
4511
4574
|
json.engines = {
|
|
4512
4575
|
node: `>=${nodeVersion}`,
|
|
4513
|
-
|
|
4576
|
+
[packageManager]: `>=${packageManagerVersion}`
|
|
4514
4577
|
};
|
|
4515
4578
|
return json;
|
|
4516
4579
|
});
|
|
4517
4580
|
generateFiles4(tree, path2.join(__dirname, "files"), projectRoot, {
|
|
4518
4581
|
...options,
|
|
4582
|
+
packageManager,
|
|
4583
|
+
packageManagerVersion,
|
|
4519
4584
|
pnpmVersion,
|
|
4520
|
-
nodeVersion
|
|
4585
|
+
nodeVersion,
|
|
4586
|
+
lockFileName,
|
|
4587
|
+
exec: pmc.exec
|
|
4521
4588
|
});
|
|
4522
4589
|
await formatFiles7(tree);
|
|
4523
4590
|
let dependencies = {
|
|
@@ -4976,33 +5043,6 @@ import { names as names5 } from "@nx/devkit";
|
|
|
4976
5043
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4977
5044
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
4978
5045
|
|
|
4979
|
-
// ../workspace-tools/src/utils/lock-file.ts
|
|
4980
|
-
import {
|
|
4981
|
-
output,
|
|
4982
|
-
readJsonFile as readJsonFile2,
|
|
4983
|
-
workspaceRoot
|
|
4984
|
-
} from "@nx/devkit";
|
|
4985
|
-
import { existsSync as existsSync10 } from "node:fs";
|
|
4986
|
-
import { join as join4 } from "node:path";
|
|
4987
|
-
import {
|
|
4988
|
-
getNpmLockfileDependencies,
|
|
4989
|
-
getNpmLockfileNodes
|
|
4990
|
-
} from "nx/src/plugins/js/lock-file/npm-parser";
|
|
4991
|
-
import {
|
|
4992
|
-
getPnpmLockfileDependencies,
|
|
4993
|
-
getPnpmLockfileNodes
|
|
4994
|
-
} from "nx/src/plugins/js/lock-file/pnpm-parser";
|
|
4995
|
-
import {
|
|
4996
|
-
getYarnLockfileDependencies,
|
|
4997
|
-
getYarnLockfileNodes
|
|
4998
|
-
} from "nx/src/plugins/js/lock-file/yarn-parser";
|
|
4999
|
-
var YARN_LOCK_FILE = "yarn.lock";
|
|
5000
|
-
var NPM_LOCK_FILE = "package-lock.json";
|
|
5001
|
-
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
5002
|
-
var YARN_LOCK_PATH = join4(workspaceRoot, YARN_LOCK_FILE);
|
|
5003
|
-
var NPM_LOCK_PATH = join4(workspaceRoot, NPM_LOCK_FILE);
|
|
5004
|
-
var PNPM_LOCK_PATH = join4(workspaceRoot, PNPM_LOCK_FILE);
|
|
5005
|
-
|
|
5006
5046
|
// ../workspace-tools/config/recommended.json
|
|
5007
5047
|
var recommended_default = {
|
|
5008
5048
|
$schema: "https://cdn.jsdelivr.net/npm/nx/schemas/nx-schema.json",
|
|
@@ -5011,15 +5051,12 @@ var recommended_default = {
|
|
|
5011
5051
|
allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
5012
5052
|
default: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
5013
5053
|
sharedGlobals: [
|
|
5014
|
-
"{workspaceRoot}/.github/workflows/*.yml",
|
|
5015
|
-
"{workspaceRoot}/assets/**/*",
|
|
5016
5054
|
"{workspaceRoot}/tsconfig.json",
|
|
5017
|
-
"{workspaceRoot}/tsconfig
|
|
5055
|
+
"{workspaceRoot}/tsconfig.*.json",
|
|
5018
5056
|
"{workspaceRoot}/.npm@(rc|ignore)",
|
|
5019
5057
|
"{workspaceRoot}/package.json",
|
|
5020
5058
|
"{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
|
|
5021
|
-
"{workspaceRoot}/bun.
|
|
5022
|
-
"{workspaceRoot}/LICENSE",
|
|
5059
|
+
"{workspaceRoot}/bun.lock{,b}",
|
|
5023
5060
|
"{workspaceRoot}/.git@(attributes|ignore)",
|
|
5024
5061
|
"{workspaceRoot}/{nx.json,.nxignore}",
|
|
5025
5062
|
"{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
|
|
@@ -5027,7 +5064,6 @@ var recommended_default = {
|
|
|
5027
5064
|
"{workspaceRoot}/storm-workspace.config.[jt]s",
|
|
5028
5065
|
"{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
|
|
5029
5066
|
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
5030
|
-
"{workspaceRoot}/{flake,shell,devShell}.nix",
|
|
5031
5067
|
"{workspaceRoot}/.envrc",
|
|
5032
5068
|
"{workspaceRoot}/.env{,.local,.*}"
|
|
5033
5069
|
],
|
|
@@ -5134,14 +5170,12 @@ var recommended_default = {
|
|
|
5134
5170
|
"{workspaceRoot}/Cargo.lock",
|
|
5135
5171
|
"{workspaceRoot}/.cargo/config.toml",
|
|
5136
5172
|
"{workspaceRoot}/rust-toolchain",
|
|
5137
|
-
"{workspaceRoot}/rustfmt.toml",
|
|
5138
|
-
"{workspaceRoot}/deny.toml",
|
|
5139
5173
|
"{projectRoot}/Cargo.toml",
|
|
5140
5174
|
"{projectRoot}/.cargo/config.toml",
|
|
5141
5175
|
{
|
|
5142
5176
|
runtime: "node -p '`${process.platform}_${process.arch}`'"
|
|
5143
5177
|
},
|
|
5144
|
-
"{projectRoot}/
|
|
5178
|
+
"{projectRoot}/project.json",
|
|
5145
5179
|
"{projectRoot}/.env{,.local}",
|
|
5146
5180
|
"{projectRoot}/**/*.rs",
|
|
5147
5181
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
@@ -5160,14 +5194,22 @@ var recommended_default = {
|
|
|
5160
5194
|
"{projectRoot}/package.json",
|
|
5161
5195
|
"{projectRoot}/tsconfig.json",
|
|
5162
5196
|
"{projectRoot}/tsconfig.*.json",
|
|
5163
|
-
"{projectRoot}/
|
|
5197
|
+
"{projectRoot}/project.json",
|
|
5164
5198
|
"{projectRoot}/.env{,.*}",
|
|
5165
|
-
"{projectRoot}/docs/**/*",
|
|
5166
|
-
"{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
5199
|
+
"!{projectRoot}/docs/**/*",
|
|
5200
|
+
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
5167
5201
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
5168
5202
|
"{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
|
|
5169
5203
|
"{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
|
|
5170
5204
|
"{projectRoot}/{bin,tools,helpers,scripts}/**/*"
|
|
5205
|
+
],
|
|
5206
|
+
ci: [
|
|
5207
|
+
"sharedGlobals",
|
|
5208
|
+
"{workspaceRoot}/.github/workflows/*.yml",
|
|
5209
|
+
"{workspaceRoot}/assets/**/*",
|
|
5210
|
+
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
5211
|
+
"{workspaceRoot}/.devenv{,.flake.nix}",
|
|
5212
|
+
"{workspaceRoot}/.direnv"
|
|
5171
5213
|
]
|
|
5172
5214
|
},
|
|
5173
5215
|
targetDefaults: {
|
|
@@ -5178,8 +5220,8 @@ var recommended_default = {
|
|
|
5178
5220
|
executor: "nx:run-commands",
|
|
5179
5221
|
options: {
|
|
5180
5222
|
commands: [
|
|
5181
|
-
"
|
|
5182
|
-
"
|
|
5223
|
+
"rimraf --glob {projectRoot}/dist",
|
|
5224
|
+
"rimraf dist/{projectRoot}"
|
|
5183
5225
|
]
|
|
5184
5226
|
}
|
|
5185
5227
|
},
|
|
@@ -5199,7 +5241,7 @@ var recommended_default = {
|
|
|
5199
5241
|
version: {
|
|
5200
5242
|
currentVersionResolver: "git-tag",
|
|
5201
5243
|
specifierSource: "conventional-commits",
|
|
5202
|
-
groupPreVersionCommand: "
|
|
5244
|
+
groupPreVersionCommand: "build",
|
|
5203
5245
|
manifestRootsToUpdate: [
|
|
5204
5246
|
"{projectRoot}",
|
|
5205
5247
|
{
|
|
@@ -5252,7 +5294,7 @@ import {
|
|
|
5252
5294
|
readJsonFile as readJsonFile3
|
|
5253
5295
|
} from "@nx/devkit";
|
|
5254
5296
|
import defu6 from "defu";
|
|
5255
|
-
import { existsSync as
|
|
5297
|
+
import { existsSync as existsSync9 } from "node:fs";
|
|
5256
5298
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
5257
5299
|
|
|
5258
5300
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXVL67FUSjs = require('./chunk-XVL67FUS.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/refresh/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkXVL67FUSjs.withPulumiExecutor.call(void 0, "refresh", (options) => [
|
|
7
7
|
"--suppress-progress",
|
|
8
8
|
options.stack && `--stack=${options.stack}`,
|
|
9
9
|
options.skipPreview && "--skip-preview",
|