@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-KJEHUSYV.js → chunk-266ZUIDD.js} +2 -2
  4. package/dist/{chunk-DHJTU33T.mjs → chunk-4RR3IGJL.mjs} +1 -1
  5. package/dist/{chunk-WVWG25KV.mjs → chunk-5MGFDHSO.mjs} +187 -145
  6. package/dist/{chunk-2TKHNHOK.mjs → chunk-6OT6FGPR.mjs} +1 -1
  7. package/dist/{chunk-3A3IYIUY.mjs → chunk-7ED7F5OJ.mjs} +1 -1
  8. package/dist/{chunk-H3G442G2.mjs → chunk-A7LBK7UJ.mjs} +1 -1
  9. package/dist/{chunk-LXRYS5E4.js → chunk-CD4SSXWO.js} +2 -2
  10. package/dist/{chunk-ZKAKJWHF.mjs → chunk-E2O32U3R.mjs} +1 -1
  11. package/dist/{chunk-6Q6WYEPB.js → chunk-H4NQXVJS.js} +167 -125
  12. package/dist/{chunk-PO3YAQB2.js → chunk-IKR5ZAJD.js} +2 -2
  13. package/dist/{chunk-XE6CJF6B.mjs → chunk-IZSMRQ4H.mjs} +1 -1
  14. package/dist/{chunk-JMKDXVTL.js → chunk-OULBDO6M.js} +5 -5
  15. package/dist/{chunk-S5HDERBM.js → chunk-RCSLM2JT.js} +2 -2
  16. package/dist/{chunk-6NAVJZYD.js → chunk-TCSW2RZG.js} +2 -2
  17. package/dist/{chunk-ET5QBGVL.mjs → chunk-W4473RCG.mjs} +1 -1
  18. package/dist/{chunk-FBFBLJXY.js → chunk-XVL67FUS.js} +3 -3
  19. package/dist/{chunk-FSGVXBGR.mjs → chunk-ZVAWMWYX.mjs} +1 -1
  20. package/dist/executors.js +7 -7
  21. package/dist/executors.mjs +8 -8
  22. package/dist/generators.js +3 -3
  23. package/dist/generators.mjs +3 -3
  24. package/dist/index.js +9 -9
  25. package/dist/index.mjs +9 -9
  26. package/dist/src/base/base-executor.js +3 -3
  27. package/dist/src/base/base-executor.mjs +3 -3
  28. package/dist/src/base/index.js +3 -3
  29. package/dist/src/base/index.mjs +3 -3
  30. package/dist/src/base/providers.mjs +1 -1
  31. package/dist/src/executors/config/executor.js +4 -4
  32. package/dist/src/executors/config/executor.mjs +4 -4
  33. package/dist/src/executors/import/executor.js +4 -4
  34. package/dist/src/executors/import/executor.mjs +4 -4
  35. package/dist/src/executors/preview/executor.js +4 -4
  36. package/dist/src/executors/preview/executor.mjs +4 -4
  37. package/dist/src/executors/refresh/executor.js +4 -4
  38. package/dist/src/executors/refresh/executor.mjs +4 -4
  39. package/dist/src/executors/up/executor.js +4 -4
  40. package/dist/src/executors/up/executor.mjs +4 -4
  41. package/dist/src/generators/init/generator.js +3 -3
  42. package/dist/src/generators/init/generator.mjs +3 -3
  43. package/dist/src/lib/aws/index.mjs +1 -1
  44. package/dist/src/lib/aws/providers.mjs +1 -1
  45. package/dist/tsup.config.mjs +1 -1
  46. package/package.json +6 -6
@@ -2874,36 +2874,11 @@ var executor_default7 = withRunExecutor(
2874
2874
  }
2875
2875
  );
2876
2876
 
2877
- // ../npm-tools/src/helpers/get-version.ts
2878
-
2879
- var _semver = require('semver');
2880
- var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
2881
-
2882
- // ../npm-tools/src/helpers/get-registry.ts
2883
-
2884
-
2885
- // ../pnpm-tools/src/helpers/catalog.ts
2886
-
2887
-
2888
- // ../pnpm-tools/src/helpers/pnpm-workspace.ts
2889
-
2890
-
2891
- var _yaml = require('yaml');
2892
-
2893
- // ../pnpm-tools/src/helpers/replace-deps-aliases.ts
2894
-
2895
-
2896
-
2897
-
2898
-
2899
-
2900
- var _prettier = require('prettier');
2901
-
2902
2877
  // ../workspace-tools/src/executors/npm-publish/executor.ts
2903
2878
 
2904
2879
 
2905
2880
 
2906
-
2881
+ var _prettier = require('prettier');
2907
2882
 
2908
2883
  // ../workspace-tools/src/utils/github.ts
2909
2884
 
@@ -2994,6 +2969,12 @@ var addProjectTag = (project, variant, value, options = {
2994
2969
  }
2995
2970
  };
2996
2971
 
2972
+ // ../workspace-tools/src/utils/package-manager.ts
2973
+
2974
+
2975
+
2976
+
2977
+
2997
2978
  // ../workspace-tools/src/executors/npm-publish/executor.ts
2998
2979
  var LARGE_BUFFER3 = 1024 * 1e6;
2999
2980
 
@@ -3362,15 +3343,15 @@ function getDefaultOptions(config) {
3362
3343
  ...config
3363
3344
  };
3364
3345
  }
3365
- function toTSDownFormat(format4) {
3366
- if (!format4 || Array.isArray(format4) && format4.length === 0) {
3346
+ function toTSDownFormat(format3) {
3347
+ if (!format3 || Array.isArray(format3) && format3.length === 0) {
3367
3348
  return ["cjs", "es"];
3368
- } else if (format4 === "esm") {
3349
+ } else if (format3 === "esm") {
3369
3350
  return "es";
3370
- } else if (Array.isArray(format4)) {
3371
- return format4.map((f) => f === "esm" ? "es" : f);
3351
+ } else if (Array.isArray(format3)) {
3352
+ return format3.map((f) => f === "esm" ? "es" : f);
3372
3353
  }
3373
- return format4;
3354
+ return format3;
3374
3355
  }
3375
3356
 
3376
3357
  // ../tsdown/src/build.ts
@@ -3818,7 +3799,16 @@ var _js = require('@nx/js');
3818
3799
  var typesNodeVersion = "20.9.0";
3819
3800
  var nxVersion = "^18.0.4";
3820
3801
  var nodeVersion = "20.11.0";
3821
- var pnpmVersion = "8.10.2";
3802
+ var pnpmVersion = "10.3.0";
3803
+ var npmVersion = "10.9.0";
3804
+ var yarnVersion = "4.6.0";
3805
+ var bunVersion = "1.2.0";
3806
+ var packageManagerVersions = {
3807
+ npm: npmVersion,
3808
+ yarn: yarnVersion,
3809
+ pnpm: pnpmVersion,
3810
+ bun: bunVersion
3811
+ };
3822
3812
 
3823
3813
  // ../workspace-tools/src/base/typescript-library-generator.ts
3824
3814
  async function typeScriptLibraryGeneratorFn(tree, options, config) {
@@ -3949,16 +3939,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3949
3939
  });
3950
3940
  }
3951
3941
  if (tree.exists("package.json") && normalized.importPath) {
3952
- _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
3953
- ...json,
3954
- pnpm: {
3955
- ..._optionalChain([json, 'optionalAccess', _214 => _214.pnpm]),
3956
- overrides: {
3957
- ..._optionalChain([json, 'optionalAccess', _215 => _215.pnpm, 'optionalAccess', _216 => _216.overrides]),
3958
- [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3959
- }
3942
+ _devkit.updateJson.call(void 0, tree, "package.json", (json) => {
3943
+ if (_optionalChain([config, 'optionalAccess', _214 => _214.packageManager]) === "yarn") {
3944
+ return {
3945
+ ...json,
3946
+ resolutions: {
3947
+ ..._optionalChain([json, 'optionalAccess', _215 => _215.resolutions]),
3948
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3949
+ }
3950
+ };
3951
+ }
3952
+ if (_optionalChain([config, 'optionalAccess', _216 => _216.packageManager]) === "npm") {
3953
+ return {
3954
+ ...json,
3955
+ overrides: {
3956
+ ..._optionalChain([json, 'optionalAccess', _217 => _217.overrides]),
3957
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3958
+ }
3959
+ };
3960
+ }
3961
+ if (_optionalChain([config, 'optionalAccess', _218 => _218.packageManager]) === "bun") {
3962
+ return {
3963
+ ...json,
3964
+ overrides: {
3965
+ ..._optionalChain([json, 'optionalAccess', _219 => _219.overrides]),
3966
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3967
+ }
3968
+ };
3960
3969
  }
3961
- }));
3970
+ return {
3971
+ ...json,
3972
+ pnpm: {
3973
+ ..._optionalChain([json, 'optionalAccess', _220 => _220.pnpm]),
3974
+ overrides: {
3975
+ ..._optionalChain([json, 'optionalAccess', _221 => _221.pnpm, 'optionalAccess', _222 => _222.overrides]),
3976
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3977
+ }
3978
+ }
3979
+ };
3980
+ });
3962
3981
  }
3963
3982
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
3964
3983
  joinPaths(
@@ -3972,10 +3991,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3972
3991
  ]);
3973
3992
  if (tree.exists("package.json")) {
3974
3993
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3975
- if (_optionalChain([packageJson, 'optionalAccess', _217 => _217.repository])) {
3994
+ if (_optionalChain([packageJson, 'optionalAccess', _223 => _223.repository])) {
3976
3995
  repository = packageJson.repository;
3977
3996
  }
3978
- if (_optionalChain([packageJson, 'optionalAccess', _218 => _218.description])) {
3997
+ if (_optionalChain([packageJson, 'optionalAccess', _224 => _224.description])) {
3979
3998
  description = packageJson.description;
3980
3999
  }
3981
4000
  }
@@ -4012,22 +4031,22 @@ function getOutputPath(options) {
4012
4031
  function createProjectTsConfigJson(tree, options) {
4013
4032
  const tsconfig = {
4014
4033
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
4015
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _219 => _219.tsconfigOptions]), () => ( {})),
4034
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _225 => _225.tsconfigOptions]), () => ( {})),
4016
4035
  compilerOptions: {
4017
4036
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
4018
4037
  outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
4019
4038
  noEmit: true,
4020
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _220 => _220.tsconfigOptions, 'optionalAccess', _221 => _221.compilerOptions]), () => ( {}))
4039
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _226 => _226.tsconfigOptions, 'optionalAccess', _227 => _227.compilerOptions]), () => ( {}))
4021
4040
  },
4022
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _222 => _222.tsconfigOptions, 'optionalAccess', _223 => _223.files]), () => ( []))],
4041
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _228 => _228.tsconfigOptions, 'optionalAccess', _229 => _229.files]), () => ( []))],
4023
4042
  include: [
4024
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _224 => _224.tsconfigOptions, 'optionalAccess', _225 => _225.include]), () => ( [])),
4043
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _230 => _230.tsconfigOptions, 'optionalAccess', _231 => _231.include]), () => ( [])),
4025
4044
  "src/**/*.ts",
4026
4045
  "src/**/*.js",
4027
4046
  "bin/**/*"
4028
4047
  ],
4029
4048
  exclude: [
4030
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _226 => _226.tsconfigOptions, 'optionalAccess', _227 => _227.exclude]), () => ( [])),
4049
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _232 => _232.tsconfigOptions, 'optionalAccess', _233 => _233.exclude]), () => ( [])),
4031
4050
  "jest.config.ts",
4032
4051
  "src/**/*.spec.ts",
4033
4052
  "src/**/*.test.ts"
@@ -4037,8 +4056,8 @@ function createProjectTsConfigJson(tree, options) {
4037
4056
  }
4038
4057
  async function normalizeOptions(tree, options, config) {
4039
4058
  let importPath = options.importPath;
4040
- if (!importPath && _optionalChain([config, 'optionalAccess', _228 => _228.namespace])) {
4041
- importPath = `@${_optionalChain([config, 'optionalAccess', _229 => _229.namespace])}/${options.name}`;
4059
+ if (!importPath && _optionalChain([config, 'optionalAccess', _234 => _234.namespace])) {
4060
+ importPath = `@${_optionalChain([config, 'optionalAccess', _235 => _235.namespace])}/${options.name}`;
4042
4061
  }
4043
4062
  if (options.publishable) {
4044
4063
  if (!importPath) {
@@ -4203,7 +4222,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
4203
4222
  );
4204
4223
  }
4205
4224
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
4206
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _230 => _230.workspaceRoot]), () => ( findWorkspaceRoot())),
4225
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _236 => _236.workspaceRoot]), () => ( findWorkspaceRoot())),
4207
4226
  options.outputFile.startsWith("./") ? "" : "./"
4208
4227
  );
4209
4228
  writeTrace(
@@ -4363,8 +4382,53 @@ var generator_default4 = withRunGenerator(
4363
4382
 
4364
4383
 
4365
4384
 
4385
+
4386
+
4387
+ // ../workspace-tools/src/utils/lock-file.ts
4388
+
4389
+
4390
+
4391
+
4392
+
4393
+
4394
+
4395
+
4396
+
4397
+
4398
+ var _npmparser = require('nx/src/plugins/js/lock-file/npm-parser');
4399
+
4400
+
4401
+
4402
+ var _pnpmparser = require('nx/src/plugins/js/lock-file/pnpm-parser');
4403
+
4404
+
4405
+
4406
+ var _yarnparser = require('nx/src/plugins/js/lock-file/yarn-parser');
4407
+ var YARN_LOCK_FILE = "yarn.lock";
4408
+ var NPM_LOCK_FILE = "package-lock.json";
4409
+ var PNPM_LOCK_FILE = "pnpm-lock.yaml";
4410
+ var BUN_LOCK_FILE = "bun.lock";
4411
+ var YARN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, YARN_LOCK_FILE);
4412
+ var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE);
4413
+ var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
4414
+ var BUN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, BUN_LOCK_FILE);
4415
+ var LOCK_FILE_BY_PACKAGE_MANAGER = {
4416
+ npm: "package-lock.json",
4417
+ yarn: "yarn.lock",
4418
+ pnpm: "pnpm-lock.yaml",
4419
+ bun: "bun.lock"
4420
+ };
4421
+ function getLockFileName(packageManager) {
4422
+ return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
4423
+ }
4424
+
4425
+ // ../workspace-tools/src/generators/preset/generator.ts
4366
4426
  async function presetGeneratorFn(tree, options) {
4367
4427
  const projectRoot = ".";
4428
+ const packageManager = _nullishCoalesce(options.packageManager, () => ( "pnpm"));
4429
+ const packageManagerVersion = packageManagerVersions[packageManager];
4430
+ const pmc = _devkit.getPackageManagerCommand.call(void 0, packageManager);
4431
+ const lockFileName = getLockFileName(packageManager);
4368
4432
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
4369
4433
  options.namespace ??= options.organization;
4370
4434
  _devkit.addProjectConfiguration.call(void 0, tree, `@${options.namespace}/${options.name}`, {
@@ -4432,11 +4496,6 @@ async function presetGeneratorFn(tree, options) {
4432
4496
  type: "github",
4433
4497
  url: `${options.repositoryUrl}.git`
4434
4498
  };
4435
- json.packageManager ??= "pnpm@10.3.0";
4436
- json.engines ??= {
4437
- node: ">=20.11.0",
4438
- pnpm: ">=10.3.0"
4439
- };
4440
4499
  json.prettier = "@storm-software/prettier/config.json";
4441
4500
  json.nx ??= {
4442
4501
  includedScripts: [
@@ -4453,14 +4512,14 @@ async function presetGeneratorFn(tree, options) {
4453
4512
  "release"
4454
4513
  ]
4455
4514
  };
4456
- json.scripts.adr = "pnpm log4brains adr new";
4457
- json.scripts["adr-preview"] = "pnpm log4brains preview";
4458
- json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
4459
- json.scripts.preinstall = "npx -y only-allow pnpm";
4460
- json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
4515
+ json.scripts.adr = pmc.run("log4brains", "adr new");
4516
+ json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
4517
+ json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
4518
+ json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
4519
+ json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
4461
4520
  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";
4462
- json.scripts.nuke = "nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && pnpm clean && rimraf pnpm-lock.yaml && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules";
4463
- json.scripts.prebuild = "pnpm clean";
4521
+ 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`;
4522
+ json.scripts.prebuild = `${packageManager} clean`;
4464
4523
  json.scripts.build = "nx affected -t build --parallel=5";
4465
4524
  json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
4466
4525
  json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
@@ -4475,45 +4534,53 @@ async function presetGeneratorFn(tree, options) {
4475
4534
  }
4476
4535
  json.scripts.nx = "nx";
4477
4536
  json.scripts.graph = "nx graph";
4478
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
4479
4537
  if (options.includeApps) {
4480
4538
  json.scripts.start = "nx serve";
4481
- json.scripts.storybook = "pnpm storybook dev -p 6006";
4539
+ json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
4482
4540
  }
4483
4541
  json.scripts.help = "nx help";
4484
4542
  json.scripts["dep-graph"] = "nx dep-graph";
4485
4543
  json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
4486
4544
  json.scripts.e2e = "nx e2e";
4487
4545
  if (options.includeApps) {
4488
- json.scripts.test = "nx test && pnpm test-storybook";
4489
- json.scripts["test-storybook"] = "pnpm test-storybook";
4546
+ json.scripts.test = `nx test && ${packageManager} test-storybook`;
4547
+ json.scripts["test-storybook"] = `${packageManager} test-storybook`;
4490
4548
  } else {
4491
4549
  json.scripts.test = "nx test";
4492
4550
  }
4493
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
4494
- json.scripts.commit = "pnpm storm-git commit";
4495
- json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
4496
- json.scripts.release = "pnpm storm-git release";
4551
+ json.scripts.commit = pmc.run("storm-git", "commit");
4552
+ json.scripts["api-extractor"] = pmc.run(
4553
+ "storm-docs",
4554
+ 'api-extractor --outputPath="docs/api-reference" --clean'
4555
+ );
4556
+ json.scripts.release = pmc.run("storm-git", "release");
4497
4557
  json.scripts.format = "nx format:write";
4498
- json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
4499
- json.scripts["format-toml"] = 'pnpm exec taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"';
4500
- json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
4501
- json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
4502
- json.scripts.lint = "pnpm storm-lint all --skip-cspell";
4503
- json.scripts["lint-knip"] = "pnpm exec knip";
4504
- json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
4505
- json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
4506
- json.packageManager ??= `pnpm@${pnpmVersion}`;
4558
+ json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
4559
+ 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"`;
4560
+ json.scripts["format-readme"] = pmc.run(
4561
+ "storm-git",
4562
+ 'readme --templates="tools/readme-templates"'
4563
+ );
4564
+ json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
4565
+ json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
4566
+ json.scripts["lint-knip"] = `${pmc.exec} knip`;
4567
+ json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
4568
+ json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
4569
+ json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
4507
4570
  json.engines = {
4508
4571
  node: `>=${nodeVersion}`,
4509
- pnpm: `>=${pnpmVersion}`
4572
+ [packageManager]: `>=${packageManagerVersion}`
4510
4573
  };
4511
4574
  return json;
4512
4575
  });
4513
4576
  _devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
4514
4577
  ...options,
4578
+ packageManager,
4579
+ packageManagerVersion,
4515
4580
  pnpmVersion,
4516
- nodeVersion
4581
+ nodeVersion,
4582
+ lockFileName,
4583
+ exec: pmc.exec
4517
4584
  });
4518
4585
  await _devkit.formatFiles.call(void 0, tree);
4519
4586
  let dependencies = {
@@ -4972,33 +5039,6 @@ var _release = require('nx/release');
4972
5039
  // ../workspace-tools/src/utils/get-project-configurations.ts
4973
5040
  var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
4974
5041
 
4975
- // ../workspace-tools/src/utils/lock-file.ts
4976
-
4977
-
4978
-
4979
-
4980
-
4981
-
4982
-
4983
-
4984
-
4985
-
4986
- var _npmparser = require('nx/src/plugins/js/lock-file/npm-parser');
4987
-
4988
-
4989
-
4990
- var _pnpmparser = require('nx/src/plugins/js/lock-file/pnpm-parser');
4991
-
4992
-
4993
-
4994
- var _yarnparser = require('nx/src/plugins/js/lock-file/yarn-parser');
4995
- var YARN_LOCK_FILE = "yarn.lock";
4996
- var NPM_LOCK_FILE = "package-lock.json";
4997
- var PNPM_LOCK_FILE = "pnpm-lock.yaml";
4998
- var YARN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, YARN_LOCK_FILE);
4999
- var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE);
5000
- var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
5001
-
5002
5042
  // ../workspace-tools/config/recommended.json
5003
5043
  var recommended_default = {
5004
5044
  $schema: "https://cdn.jsdelivr.net/npm/nx/schemas/nx-schema.json",
@@ -5007,15 +5047,12 @@ var recommended_default = {
5007
5047
  allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
5008
5048
  default: ["sharedGlobals", "{projectRoot}/**/*"],
5009
5049
  sharedGlobals: [
5010
- "{workspaceRoot}/.github/workflows/*.yml",
5011
- "{workspaceRoot}/assets/**/*",
5012
5050
  "{workspaceRoot}/tsconfig.json",
5013
- "{workspaceRoot}/tsconfig.base.json",
5051
+ "{workspaceRoot}/tsconfig.*.json",
5014
5052
  "{workspaceRoot}/.npm@(rc|ignore)",
5015
5053
  "{workspaceRoot}/package.json",
5016
5054
  "{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
5017
- "{workspaceRoot}/bun.lockb",
5018
- "{workspaceRoot}/LICENSE",
5055
+ "{workspaceRoot}/bun.lock{,b}",
5019
5056
  "{workspaceRoot}/.git@(attributes|ignore)",
5020
5057
  "{workspaceRoot}/{nx.json,.nxignore}",
5021
5058
  "{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
@@ -5023,7 +5060,6 @@ var recommended_default = {
5023
5060
  "{workspaceRoot}/storm-workspace.config.[jt]s",
5024
5061
  "{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
5025
5062
  "{workspaceRoot}/devenv.@(lock|nix|yaml)",
5026
- "{workspaceRoot}/{flake,shell,devShell}.nix",
5027
5063
  "{workspaceRoot}/.envrc",
5028
5064
  "{workspaceRoot}/.env{,.local,.*}"
5029
5065
  ],
@@ -5130,14 +5166,12 @@ var recommended_default = {
5130
5166
  "{workspaceRoot}/Cargo.lock",
5131
5167
  "{workspaceRoot}/.cargo/config.toml",
5132
5168
  "{workspaceRoot}/rust-toolchain",
5133
- "{workspaceRoot}/rustfmt.toml",
5134
- "{workspaceRoot}/deny.toml",
5135
5169
  "{projectRoot}/Cargo.toml",
5136
5170
  "{projectRoot}/.cargo/config.toml",
5137
5171
  {
5138
5172
  runtime: "node -p '`${process.platform}_${process.arch}`'"
5139
5173
  },
5140
- "{projectRoot}/{project.json,CHANGELOG.md}",
5174
+ "{projectRoot}/project.json",
5141
5175
  "{projectRoot}/.env{,.local}",
5142
5176
  "{projectRoot}/**/*.rs",
5143
5177
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
@@ -5156,14 +5190,22 @@ var recommended_default = {
5156
5190
  "{projectRoot}/package.json",
5157
5191
  "{projectRoot}/tsconfig.json",
5158
5192
  "{projectRoot}/tsconfig.*.json",
5159
- "{projectRoot}/{project.json,README.md,CHANGELOG.md}",
5193
+ "{projectRoot}/project.json",
5160
5194
  "{projectRoot}/.env{,.*}",
5161
- "{projectRoot}/docs/**/*",
5162
- "{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
5195
+ "!{projectRoot}/docs/**/*",
5196
+ "!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
5163
5197
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
5164
5198
  "{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
5165
5199
  "{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
5166
5200
  "{projectRoot}/{bin,tools,helpers,scripts}/**/*"
5201
+ ],
5202
+ ci: [
5203
+ "sharedGlobals",
5204
+ "{workspaceRoot}/.github/workflows/*.yml",
5205
+ "{workspaceRoot}/assets/**/*",
5206
+ "{workspaceRoot}/devenv.@(lock|nix|yaml)",
5207
+ "{workspaceRoot}/.devenv{,.flake.nix}",
5208
+ "{workspaceRoot}/.direnv"
5167
5209
  ]
5168
5210
  },
5169
5211
  targetDefaults: {
@@ -5174,8 +5216,8 @@ var recommended_default = {
5174
5216
  executor: "nx:run-commands",
5175
5217
  options: {
5176
5218
  commands: [
5177
- "pnpm exec rimraf --glob {projectRoot}/dist",
5178
- "pnpm exec rimraf dist/{projectRoot}"
5219
+ "rimraf --glob {projectRoot}/dist",
5220
+ "rimraf dist/{projectRoot}"
5179
5221
  ]
5180
5222
  }
5181
5223
  },
@@ -5195,7 +5237,7 @@ var recommended_default = {
5195
5237
  version: {
5196
5238
  currentVersionResolver: "git-tag",
5197
5239
  specifierSource: "conventional-commits",
5198
- groupPreVersionCommand: "pnpm build",
5240
+ groupPreVersionCommand: "build",
5199
5241
  manifestRootsToUpdate: [
5200
5242
  "{projectRoot}",
5201
5243
  {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFBFBLJXYjs = require('./chunk-FBFBLJXY.js');
3
+ var _chunkXVL67FUSjs = require('./chunk-XVL67FUS.js');
4
4
 
5
5
  // src/executors/import/executor.ts
6
- var executor_default = _chunkFBFBLJXYjs.withPulumiExecutor.call(void 0, "import", (options) => [
6
+ var executor_default = _chunkXVL67FUSjs.withPulumiExecutor.call(void 0, "import", (options) => [
7
7
  options.target,
8
8
  options.name,
9
9
  options.id,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-ZKAKJWHF.mjs";
3
+ } from "./chunk-E2O32U3R.mjs";
4
4
 
5
5
  // src/executors/up/executor.ts
6
6
  var executor_default = withPulumiExecutor("up", (options) => [
@@ -5,7 +5,7 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk6Q6WYEPBjs = require('./chunk-6Q6WYEPB.js');
8
+ var _chunkH4NQXVJSjs = require('./chunk-H4NQXVJS.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 = _chunk6Q6WYEPBjs.initGenerator.call(void 0, tree, options);
21
+ const task = _chunkH4NQXVJSjs.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 = _chunk6Q6WYEPBjs.withRunGenerator.call(void 0,
57
+ var generator_default = _chunkH4NQXVJSjs.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
- _chunk6Q6WYEPBjs.run.call(void 0,
64
+ _chunkH4NQXVJSjs.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
- _chunk6Q6WYEPBjs.run.call(void 0,
88
+ _chunkH4NQXVJSjs.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 _chunkFBFBLJXYjs = require('./chunk-FBFBLJXY.js');
3
+ var _chunkXVL67FUSjs = require('./chunk-XVL67FUS.js');
4
4
 
5
5
  // src/executors/config/executor.ts
6
- var executor_default = _chunkFBFBLJXYjs.withPulumiExecutor.call(void 0, "config", (options) => [
6
+ var executor_default = _chunkXVL67FUSjs.withPulumiExecutor.call(void 0, "config", (options) => [
7
7
  options.action,
8
8
  options.showSecrets && `--show-secrets`,
9
9
  options.secret && `--secret`,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFBFBLJXYjs = require('./chunk-FBFBLJXY.js');
3
+ var _chunkXVL67FUSjs = require('./chunk-XVL67FUS.js');
4
4
 
5
5
  // src/executors/preview/executor.ts
6
- var executor_default = _chunkFBFBLJXYjs.withPulumiExecutor.call(void 0, "preview", (options) => [
6
+ var executor_default = _chunkXVL67FUSjs.withPulumiExecutor.call(void 0, "preview", (options) => [
7
7
  options.stack && `--stack=${options.stack}`,
8
8
  options.expectNoChanges && "--expect-no-changes"
9
9
  ]);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-ZKAKJWHF.mjs";
3
+ } from "./chunk-E2O32U3R.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor("preview", (options) => [
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk6Q6WYEPBjs = require('./chunk-6Q6WYEPB.js');
4
+ var _chunkH4NQXVJSjs = require('./chunk-H4NQXVJS.js');
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  var _path = require('path');
8
8
  var _shelljs = require('shelljs');
9
9
  var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_options, context) => {
10
- return _chunk6Q6WYEPBjs.withRunExecutor.call(void 0,
10
+ return _chunkH4NQXVJSjs.withRunExecutor.call(void 0,
11
11
  `Pulumi \`${command}\` Command Executor`,
12
12
  async (options, context2, config) => {
13
13
  if (!_shelljs.which.call(void 0, "pulumi")) {
@@ -21,7 +21,7 @@ var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_
21
21
  );
22
22
  }
23
23
  const { sourceRoot } = context2.projectsConfigurations.projects[context2.projectName];
24
- _chunk6Q6WYEPBjs.run.call(void 0,
24
+ _chunkH4NQXVJSjs.run.call(void 0,
25
25
  config,
26
26
  ["pulumi", command, ...argsMapper(options)].filter(Boolean).join(" "),
27
27
  _path.join.call(void 0, config.workspaceRoot, options.root || sourceRoot),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-ZKAKJWHF.mjs";
3
+ } from "./chunk-E2O32U3R.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
package/dist/executors.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";require('./chunk-XO62WWX4.js');
2
- require('./chunk-PO3YAQB2.js');
3
- require('./chunk-6NAVJZYD.js');
4
- require('./chunk-LXRYS5E4.js');
5
- require('./chunk-KJEHUSYV.js');
6
- require('./chunk-S5HDERBM.js');
7
- require('./chunk-FBFBLJXY.js');
8
- require('./chunk-6Q6WYEPB.js');
2
+ require('./chunk-IKR5ZAJD.js');
3
+ require('./chunk-TCSW2RZG.js');
4
+ require('./chunk-CD4SSXWO.js');
5
+ require('./chunk-266ZUIDD.js');
6
+ require('./chunk-RCSLM2JT.js');
7
+ require('./chunk-XVL67FUS.js');
8
+ require('./chunk-H4NQXVJS.js');