@storm-software/workspace-tools 1.267.8 → 1.267.9

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 CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  # Changelog for Storm Ops - Workspace Tools
4
4
 
5
+ ## [1.267.9](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.9) (2025-04-29)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **esbuild:** Remove unused modules from package
10
+ ([e3dc467c8](https://github.com/storm-software/storm-ops/commit/e3dc467c8))
11
+
12
+ ### Miscellaneous
13
+
14
+ - **monorepo:** Regenerate README markdown files
15
+ ([c12ea4b7b](https://github.com/storm-software/storm-ops/commit/c12ea4b7b))
16
+
5
17
  ## [1.267.8](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.8) (2025-04-29)
6
18
 
7
19
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.267.7-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.267.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -24,7 +24,8 @@ var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
24
24
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
25
25
 
26
26
  // ../esbuild/src/build.ts
27
- var _devkit = require('@nx/devkit');
27
+ var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
28
+ var _globby = require('globby');
28
29
 
29
30
  // ../build-tools/src/config.ts
30
31
  var DEFAULT_COMPILED_BANNER = `/*****************************************
@@ -46,7 +47,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
46
47
  var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
47
48
 
48
49
  // ../build-tools/src/plugins/type-definitions.ts
49
-
50
+ var _devkit = require('@nx/devkit');
50
51
 
51
52
 
52
53
  // ../build-tools/src/utilities/copy-assets.ts
@@ -245,16 +246,17 @@ var getEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (builder, opti
245
246
  // ../build-tools/src/utilities/task-graph.ts
246
247
  var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
247
248
 
248
- // ../esbuild/src/build.ts
249
- var _chokidar = require('chokidar');
250
- var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
251
- var _estoolkit = require('es-toolkit');
252
- var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
253
- var _globby = require('globby');
254
-
255
-
256
- var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
257
- var _tsup = require('tsup');
249
+ // ../esbuild/src/assets.ts
250
+ async function copyBuildAssets(context) {
251
+ if (_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) === 0) {
252
+ _chunkG4QFSE5Bjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
253
+ const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
254
+ await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
255
+ stopwatch();
256
+ }
257
+ return context;
258
+ }
259
+ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
258
260
 
259
261
  // ../esbuild/src/clean.ts
260
262
 
@@ -266,6 +268,13 @@ async function cleanDirectories(directory) {
266
268
  }
267
269
  _chunk3GQAWCBQjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
268
270
 
271
+ // ../esbuild/src/context.ts
272
+
273
+ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
274
+
275
+
276
+ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
277
+
269
278
  // ../esbuild/src/config.ts
270
279
  var DEFAULT_BUILD_OPTIONS = {
271
280
  assets: [],
@@ -311,97 +320,51 @@ var DEFAULT_BUILD_OPTIONS = {
311
320
  }
312
321
  };
313
322
 
314
- // ../esbuild/src/plugins/deps-check.ts
323
+ // ../esbuild/src/plugins/resolve-paths.ts
315
324
 
316
-
317
- var unusedIgnore = [
318
- // these are our dev dependencies
319
- /@types\/.*?/,
320
- /@typescript-eslint.*?/,
321
- /eslint.*?/,
322
- "esbuild",
323
- "husky",
324
- "is-ci",
325
- "lint-staged",
326
- "prettier",
327
- "typescript",
328
- "ts-node",
329
- "ts-jest",
330
- "@swc/core",
331
- "@swc/jest",
332
- "jest",
333
- // these are missing 3rd party deps
334
- "spdx-exceptions",
335
- "spdx-license-ids",
336
- // type-only, so it is not detected
337
- "ts-toolbelt",
338
- // these are indirectly used by build
339
- "buffer"
340
- ];
341
- var missingIgnore = [
342
- ".prisma",
343
- "@prisma/client",
344
- "ts-toolbelt"
345
- ];
346
- var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
347
- name: "storm:deps-check",
325
+ function resolvePathsConfig(options, cwd) {
326
+ if (_optionalChain([options, 'optionalAccess', _27 => _27.compilerOptions, 'optionalAccess', _28 => _28.paths])) {
327
+ const paths = Object.entries(options.compilerOptions.paths);
328
+ const resolvedPaths = paths.map(([key, paths2]) => {
329
+ return [
330
+ key,
331
+ paths2.map((v) => _path2.default.resolve(cwd, v))
332
+ ];
333
+ });
334
+ return Object.fromEntries(resolvedPaths);
335
+ }
336
+ if (options.extends) {
337
+ const extendsPath = _path2.default.resolve(cwd, options.extends);
338
+ const extendsDir = _path2.default.dirname(extendsPath);
339
+ const extendsConfig = _chunk3GQAWCBQjs.__require.call(void 0, extendsPath);
340
+ return resolvePathsConfig(extendsConfig, extendsDir);
341
+ }
342
+ return [];
343
+ }
344
+ _chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
345
+ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context) => ({
346
+ name: "storm:resolve-paths",
348
347
  setup(build3) {
349
- const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
350
- const pkgContents = _chunk3GQAWCBQjs.__require.call(void 0, pkgJsonPath);
351
- const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
352
- const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
353
- const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
354
- const dependencies = [
355
- ...regDependencies,
356
- ...bundle ? devDependencies : []
357
- ];
358
- const collectedDependencies = /* @__PURE__ */ new Set();
359
- const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
348
+ const parentTsConfig = build3.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
349
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
350
+ const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
360
351
  build3.onResolve({
361
- filter: onlyPackages
352
+ filter: packagesRegex
362
353
  }, (args) => {
363
- if (args.importer.includes(process.cwd())) {
364
- if (args.path[0] === "@") {
365
- const [org, pkg] = args.path.split("/");
366
- collectedDependencies.add(`${org}/${pkg}`);
367
- } else {
368
- const [pkg] = args.path.split("/");
369
- collectedDependencies.add(pkg);
370
- }
354
+ if (_optionalChain([build3, 'access', _29 => _29.initialOptions, 'access', _30 => _30.external, 'optionalAccess', _31 => _31.includes, 'call', _32 => _32(args.path)])) {
355
+ return {
356
+ path: args.path,
357
+ external: true
358
+ };
371
359
  }
372
360
  return {
373
- external: true
361
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
374
362
  };
375
363
  });
376
- build3.onEnd(() => {
377
- const unusedDependencies = [
378
- ...dependencies
379
- ].filter((dep) => {
380
- return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
381
- });
382
- const missingDependencies = [
383
- ...collectedDependencies
384
- ].filter((dep) => {
385
- return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
386
- });
387
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
388
- return !unusedIgnore.some((pattern) => dep.match(pattern));
389
- });
390
- const filteredMissingDeps = missingDependencies.filter((dep) => {
391
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
392
- });
393
- _chunkG4QFSE5Bjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
394
- _chunkG4QFSE5Bjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
395
- if (filteredMissingDeps.length > 0) {
396
- throw new Error(`Missing dependencies detected - please install them:
397
- ${JSON.stringify(filteredMissingDeps)}
398
- `);
399
- }
400
- });
401
364
  }
402
- }), "depsCheckPlugin");
365
+ }), "resolvePathsPlugin");
403
366
 
404
- // ../esbuild/src/build.ts
367
+ // ../esbuild/src/context.ts
405
368
  async function resolveContext(userOptions) {
406
369
  const projectRoot = userOptions.projectRoot;
407
370
  const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
@@ -424,7 +387,7 @@ async function resolveContext(userOptions) {
424
387
  const projectJson = JSON.parse(projectJsonFile);
425
388
  const projectName = projectJson.name || userOptions.name;
426
389
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
427
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _24 => _24.projects, 'optionalAccess', _25 => _25[projectName]])) {
390
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _33 => _33.projects, 'optionalAccess', _34 => _34[projectName]])) {
428
391
  throw new Error("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.");
429
392
  }
430
393
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -455,7 +418,7 @@ async function resolveContext(userOptions) {
455
418
  }
456
419
  };
457
420
  stopwatch();
458
- return {
421
+ const context = {
459
422
  options: resolvedOptions,
460
423
  clean: userOptions.clean !== false,
461
424
  workspaceConfig,
@@ -466,8 +429,18 @@ async function resolveContext(userOptions) {
466
429
  outputPath: resolvedOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
467
430
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
468
431
  };
432
+ context.options.esbuildPlugins = [
433
+ resolvePathsPlugin(context),
434
+ ..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
435
+ ];
436
+ return context;
469
437
  }
470
438
  _chunk3GQAWCBQjs.__name.call(void 0, resolveContext, "resolveContext");
439
+
440
+ // ../esbuild/src/package-json.ts
441
+
442
+
443
+
471
444
  async function generatePackageJson(context) {
472
445
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
473
446
  _chunkG4QFSE5Bjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
@@ -566,6 +539,99 @@ async function generatePackageJson(context) {
566
539
  return context;
567
540
  }
568
541
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
542
+
543
+ // ../esbuild/src/plugins/deps-check.ts
544
+
545
+
546
+ var unusedIgnore = [
547
+ // these are our dev dependencies
548
+ /@types\/.*?/,
549
+ /@typescript-eslint.*?/,
550
+ /eslint.*?/,
551
+ "esbuild",
552
+ "husky",
553
+ "is-ci",
554
+ "lint-staged",
555
+ "prettier",
556
+ "typescript",
557
+ "ts-node",
558
+ "ts-jest",
559
+ "@swc/core",
560
+ "@swc/jest",
561
+ "jest",
562
+ // these are missing 3rd party deps
563
+ "spdx-exceptions",
564
+ "spdx-license-ids",
565
+ // type-only, so it is not detected
566
+ "ts-toolbelt",
567
+ // these are indirectly used by build
568
+ "buffer"
569
+ ];
570
+ var missingIgnore = [
571
+ ".prisma",
572
+ "@prisma/client",
573
+ "ts-toolbelt"
574
+ ];
575
+ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
576
+ name: "storm:deps-check",
577
+ setup(build3) {
578
+ const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
579
+ const pkgContents = _chunk3GQAWCBQjs.__require.call(void 0, pkgJsonPath);
580
+ const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
581
+ const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
582
+ const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
583
+ const dependencies = [
584
+ ...regDependencies,
585
+ ...bundle ? devDependencies : []
586
+ ];
587
+ const collectedDependencies = /* @__PURE__ */ new Set();
588
+ const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
589
+ build3.onResolve({
590
+ filter: onlyPackages
591
+ }, (args) => {
592
+ if (args.importer.includes(process.cwd())) {
593
+ if (args.path[0] === "@") {
594
+ const [org, pkg] = args.path.split("/");
595
+ collectedDependencies.add(`${org}/${pkg}`);
596
+ } else {
597
+ const [pkg] = args.path.split("/");
598
+ collectedDependencies.add(pkg);
599
+ }
600
+ }
601
+ return {
602
+ external: true
603
+ };
604
+ });
605
+ build3.onEnd(() => {
606
+ const unusedDependencies = [
607
+ ...dependencies
608
+ ].filter((dep) => {
609
+ return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
610
+ });
611
+ const missingDependencies = [
612
+ ...collectedDependencies
613
+ ].filter((dep) => {
614
+ return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
615
+ });
616
+ const filteredUnusedDeps = unusedDependencies.filter((dep) => {
617
+ return !unusedIgnore.some((pattern) => dep.match(pattern));
618
+ });
619
+ const filteredMissingDeps = missingDependencies.filter((dep) => {
620
+ return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
621
+ });
622
+ _chunkG4QFSE5Bjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
623
+ _chunkG4QFSE5Bjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
624
+ if (filteredMissingDeps.length > 0) {
625
+ throw new Error(`Missing dependencies detected - please install them:
626
+ ${JSON.stringify(filteredMissingDeps)}
627
+ `);
628
+ }
629
+ });
630
+ }
631
+ }), "depsCheckPlugin");
632
+
633
+ // ../esbuild/src/tsup.ts
634
+ var _tsup = require('tsup');
569
635
  async function executeTsup(context) {
570
636
  _chunkG4QFSE5Bjs.writeDebug.call(void 0, ` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
571
637
  const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, `${context.options.name} build`);
@@ -578,23 +644,15 @@ async function executeTsup(context) {
578
644
  return context;
579
645
  }
580
646
  _chunk3GQAWCBQjs.__name.call(void 0, executeTsup, "executeTsup");
581
- async function copyBuildAssets(context) {
582
- if (_optionalChain([context, 'access', _26 => _26.result, 'optionalAccess', _27 => _27.errors, 'access', _28 => _28.length]) === 0) {
583
- _chunkG4QFSE5Bjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
584
- const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
585
- await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
586
- stopwatch();
587
- }
588
- return context;
589
- }
590
- _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
647
+
648
+ // ../esbuild/src/build.ts
591
649
  async function reportResults(context) {
592
- if (_optionalChain([context, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
650
+ if (_optionalChain([context, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors, 'access', _37 => _37.length]) === 0) {
593
651
  if (context.result.warnings.length > 0) {
594
652
  _chunkG4QFSE5Bjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`, context.workspaceConfig);
595
653
  }
596
654
  _chunkG4QFSE5Bjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context.options.name} build completed successfully`, context.workspaceConfig);
597
- } else if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors]) && _optionalChain([context, 'access', _34 => _34.result, 'optionalAccess', _35 => _35.errors, 'access', _36 => _36.length]) > 0) {
655
+ } else if (_optionalChain([context, 'access', _38 => _38.result, 'optionalAccess', _39 => _39.errors]) && _optionalChain([context, 'access', _40 => _40.result, 'optionalAccess', _41 => _41.errors, 'access', _42 => _42.length]) > 0) {
598
656
  _chunkG4QFSE5Bjs.writeError.call(void 0, ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`, context.workspaceConfig);
599
657
  throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
600
658
  }
@@ -672,14 +730,14 @@ _chunk3GQAWCBQjs.__name.call(void 0, build2, "build");
672
730
  // src/executors/esbuild/executor.ts
673
731
  async function esbuildExecutorFn(options, context, config) {
674
732
  _chunkG4QFSE5Bjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
675
- if (!_optionalChain([context, 'access', _37 => _37.projectsConfigurations, 'optionalAccess', _38 => _38.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _39 => _39.projectsConfigurations, 'access', _40 => _40.projects, 'access', _41 => _41[context.projectName], 'optionalAccess', _42 => _42.root])) {
733
+ if (!_optionalChain([context, 'access', _43 => _43.projectsConfigurations, 'optionalAccess', _44 => _44.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _45 => _45.projectsConfigurations, 'access', _46 => _46.projects, 'access', _47 => _47[context.projectName], 'optionalAccess', _48 => _48.root])) {
676
734
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
677
735
  }
678
736
  await build2({
679
737
  ...options,
680
- projectRoot: _optionalChain([context, 'access', _43 => _43.projectsConfigurations, 'access', _44 => _44.projects, 'optionalAccess', _45 => _45[context.projectName], 'access', _46 => _46.root]),
738
+ projectRoot: _optionalChain([context, 'access', _49 => _49.projectsConfigurations, 'access', _50 => _50.projects, 'optionalAccess', _51 => _51[context.projectName], 'access', _52 => _52.root]),
681
739
  name: context.projectName,
682
- sourceRoot: _optionalChain([context, 'access', _47 => _47.projectsConfigurations, 'access', _48 => _48.projects, 'optionalAccess', _49 => _49[context.projectName], 'optionalAccess', _50 => _50.sourceRoot]),
740
+ sourceRoot: _optionalChain([context, 'access', _53 => _53.projectsConfigurations, 'access', _54 => _54.projects, 'optionalAccess', _55 => _55[context.projectName], 'optionalAccess', _56 => _56.sourceRoot]),
683
741
  format: options.format,
684
742
  platform: options.format
685
743
  });
@@ -24,7 +24,8 @@ import {
24
24
  } from "./chunk-NM2XRTN6.mjs";
25
25
 
26
26
  // ../esbuild/src/build.ts
27
- import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
27
+ import * as esbuild from "esbuild";
28
+ import { globbySync } from "globby";
28
29
 
29
30
  // ../build-tools/src/config.ts
30
31
  var DEFAULT_COMPILED_BANNER = `/*****************************************
@@ -245,16 +246,17 @@ import { readFile as readFile3 } from "node:fs/promises";
245
246
  // ../build-tools/src/utilities/task-graph.ts
246
247
  import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
247
248
 
248
- // ../esbuild/src/build.ts
249
- import { watch as createWatcher } from "chokidar";
250
- import defu from "defu";
251
- import { debounce } from "es-toolkit";
252
- import * as esbuild from "esbuild";
253
- import { globbySync } from "globby";
254
- import { existsSync as existsSync3 } from "node:fs";
255
- import hf from "node:fs/promises";
256
- import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
257
- import { build as tsup } from "tsup";
249
+ // ../esbuild/src/assets.ts
250
+ async function copyBuildAssets(context) {
251
+ if (context.result?.errors.length === 0) {
252
+ writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
253
+ const stopwatch = getStopwatch(`${context.options.name} asset copy`);
254
+ await copyAssets(context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
255
+ stopwatch();
256
+ }
257
+ return context;
258
+ }
259
+ __name(copyBuildAssets, "copyBuildAssets");
258
260
 
259
261
  // ../esbuild/src/clean.ts
260
262
  import { rm } from "node:fs/promises";
@@ -266,6 +268,13 @@ async function cleanDirectories(directory) {
266
268
  }
267
269
  __name(cleanDirectories, "cleanDirectories");
268
270
 
271
+ // ../esbuild/src/context.ts
272
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "@nx/devkit";
273
+ import defu from "defu";
274
+ import { existsSync as existsSync3 } from "node:fs";
275
+ import hf from "node:fs/promises";
276
+ import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
277
+
269
278
  // ../esbuild/src/config.ts
270
279
  var DEFAULT_BUILD_OPTIONS = {
271
280
  assets: [],
@@ -311,97 +320,51 @@ var DEFAULT_BUILD_OPTIONS = {
311
320
  }
312
321
  };
313
322
 
314
- // ../esbuild/src/plugins/deps-check.ts
315
- import { builtinModules as builtinModules2 } from "node:module";
323
+ // ../esbuild/src/plugins/resolve-paths.ts
316
324
  import path2 from "node:path";
317
- var unusedIgnore = [
318
- // these are our dev dependencies
319
- /@types\/.*?/,
320
- /@typescript-eslint.*?/,
321
- /eslint.*?/,
322
- "esbuild",
323
- "husky",
324
- "is-ci",
325
- "lint-staged",
326
- "prettier",
327
- "typescript",
328
- "ts-node",
329
- "ts-jest",
330
- "@swc/core",
331
- "@swc/jest",
332
- "jest",
333
- // these are missing 3rd party deps
334
- "spdx-exceptions",
335
- "spdx-license-ids",
336
- // type-only, so it is not detected
337
- "ts-toolbelt",
338
- // these are indirectly used by build
339
- "buffer"
340
- ];
341
- var missingIgnore = [
342
- ".prisma",
343
- "@prisma/client",
344
- "ts-toolbelt"
345
- ];
346
- var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
347
- name: "storm:deps-check",
325
+ function resolvePathsConfig(options, cwd) {
326
+ if (options?.compilerOptions?.paths) {
327
+ const paths = Object.entries(options.compilerOptions.paths);
328
+ const resolvedPaths = paths.map(([key, paths2]) => {
329
+ return [
330
+ key,
331
+ paths2.map((v) => path2.resolve(cwd, v))
332
+ ];
333
+ });
334
+ return Object.fromEntries(resolvedPaths);
335
+ }
336
+ if (options.extends) {
337
+ const extendsPath = path2.resolve(cwd, options.extends);
338
+ const extendsDir = path2.dirname(extendsPath);
339
+ const extendsConfig = __require(extendsPath);
340
+ return resolvePathsConfig(extendsConfig, extendsDir);
341
+ }
342
+ return [];
343
+ }
344
+ __name(resolvePathsConfig, "resolvePathsConfig");
345
+ var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
346
+ name: "storm:resolve-paths",
348
347
  setup(build3) {
349
- const pkgJsonPath = path2.join(process.cwd(), "package.json");
350
- const pkgContents = __require(pkgJsonPath);
351
- const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
352
- const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
353
- const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
354
- const dependencies = [
355
- ...regDependencies,
356
- ...bundle ? devDependencies : []
357
- ];
358
- const collectedDependencies = /* @__PURE__ */ new Set();
359
- const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
348
+ const parentTsConfig = build3.initialOptions.tsconfig ? __require(joinPaths(context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
349
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
350
+ const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
360
351
  build3.onResolve({
361
- filter: onlyPackages
352
+ filter: packagesRegex
362
353
  }, (args) => {
363
- if (args.importer.includes(process.cwd())) {
364
- if (args.path[0] === "@") {
365
- const [org, pkg] = args.path.split("/");
366
- collectedDependencies.add(`${org}/${pkg}`);
367
- } else {
368
- const [pkg] = args.path.split("/");
369
- collectedDependencies.add(pkg);
370
- }
354
+ if (build3.initialOptions.external?.includes(args.path)) {
355
+ return {
356
+ path: args.path,
357
+ external: true
358
+ };
371
359
  }
372
360
  return {
373
- external: true
361
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
374
362
  };
375
363
  });
376
- build3.onEnd(() => {
377
- const unusedDependencies = [
378
- ...dependencies
379
- ].filter((dep) => {
380
- return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
381
- });
382
- const missingDependencies = [
383
- ...collectedDependencies
384
- ].filter((dep) => {
385
- return !dependencies.includes(dep) && !builtinModules2.includes(dep);
386
- });
387
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
388
- return !unusedIgnore.some((pattern) => dep.match(pattern));
389
- });
390
- const filteredMissingDeps = missingDependencies.filter((dep) => {
391
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
392
- });
393
- writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
394
- writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
395
- if (filteredMissingDeps.length > 0) {
396
- throw new Error(`Missing dependencies detected - please install them:
397
- ${JSON.stringify(filteredMissingDeps)}
398
- `);
399
- }
400
- });
401
364
  }
402
- }), "depsCheckPlugin");
365
+ }), "resolvePathsPlugin");
403
366
 
404
- // ../esbuild/src/build.ts
367
+ // ../esbuild/src/context.ts
405
368
  async function resolveContext(userOptions) {
406
369
  const projectRoot = userOptions.projectRoot;
407
370
  const workspaceRoot = findWorkspaceRoot2(projectRoot);
@@ -455,7 +418,7 @@ async function resolveContext(userOptions) {
455
418
  }
456
419
  };
457
420
  stopwatch();
458
- return {
421
+ const context = {
459
422
  options: resolvedOptions,
460
423
  clean: userOptions.clean !== false,
461
424
  workspaceConfig,
@@ -466,17 +429,27 @@ async function resolveContext(userOptions) {
466
429
  outputPath: resolvedOptions.outputPath || joinPaths(workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
467
430
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
468
431
  };
432
+ context.options.esbuildPlugins = [
433
+ resolvePathsPlugin(context),
434
+ ...context.options.esbuildPlugins ?? []
435
+ ];
436
+ return context;
469
437
  }
470
438
  __name(resolveContext, "resolveContext");
439
+
440
+ // ../esbuild/src/package-json.ts
441
+ import { writeJsonFile } from "@nx/devkit";
442
+ import { existsSync as existsSync4 } from "node:fs";
443
+ import hf2 from "node:fs/promises";
471
444
  async function generatePackageJson(context) {
472
- if (context.options.generatePackageJson !== false && existsSync3(joinPaths(context.options.projectRoot, "package.json"))) {
445
+ if (context.options.generatePackageJson !== false && existsSync4(joinPaths(context.options.projectRoot, "package.json"))) {
473
446
  writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
474
447
  const stopwatch = getStopwatch("Write package.json file");
475
448
  const packageJsonPath = joinPaths(context.options.projectRoot, "project.json");
476
- if (!existsSync3(packageJsonPath)) {
449
+ if (!existsSync4(packageJsonPath)) {
477
450
  throw new Error("Cannot find package.json configuration");
478
451
  }
479
- const packageJsonFile = await hf.readFile(joinPaths(context.workspaceConfig.workspaceRoot, context.options.projectRoot, "package.json"), "utf8");
452
+ const packageJsonFile = await hf2.readFile(joinPaths(context.workspaceConfig.workspaceRoot, context.options.projectRoot, "package.json"), "utf8");
480
453
  let packageJson = JSON.parse(packageJsonFile);
481
454
  if (!packageJson) {
482
455
  throw new Error("Cannot find package.json configuration file");
@@ -566,6 +539,99 @@ async function generatePackageJson(context) {
566
539
  return context;
567
540
  }
568
541
  __name(generatePackageJson, "generatePackageJson");
542
+
543
+ // ../esbuild/src/plugins/deps-check.ts
544
+ import { builtinModules as builtinModules2 } from "node:module";
545
+ import path3 from "node:path";
546
+ var unusedIgnore = [
547
+ // these are our dev dependencies
548
+ /@types\/.*?/,
549
+ /@typescript-eslint.*?/,
550
+ /eslint.*?/,
551
+ "esbuild",
552
+ "husky",
553
+ "is-ci",
554
+ "lint-staged",
555
+ "prettier",
556
+ "typescript",
557
+ "ts-node",
558
+ "ts-jest",
559
+ "@swc/core",
560
+ "@swc/jest",
561
+ "jest",
562
+ // these are missing 3rd party deps
563
+ "spdx-exceptions",
564
+ "spdx-license-ids",
565
+ // type-only, so it is not detected
566
+ "ts-toolbelt",
567
+ // these are indirectly used by build
568
+ "buffer"
569
+ ];
570
+ var missingIgnore = [
571
+ ".prisma",
572
+ "@prisma/client",
573
+ "ts-toolbelt"
574
+ ];
575
+ var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
576
+ name: "storm:deps-check",
577
+ setup(build3) {
578
+ const pkgJsonPath = path3.join(process.cwd(), "package.json");
579
+ const pkgContents = __require(pkgJsonPath);
580
+ const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
581
+ const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
582
+ const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
583
+ const dependencies = [
584
+ ...regDependencies,
585
+ ...bundle ? devDependencies : []
586
+ ];
587
+ const collectedDependencies = /* @__PURE__ */ new Set();
588
+ const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
589
+ build3.onResolve({
590
+ filter: onlyPackages
591
+ }, (args) => {
592
+ if (args.importer.includes(process.cwd())) {
593
+ if (args.path[0] === "@") {
594
+ const [org, pkg] = args.path.split("/");
595
+ collectedDependencies.add(`${org}/${pkg}`);
596
+ } else {
597
+ const [pkg] = args.path.split("/");
598
+ collectedDependencies.add(pkg);
599
+ }
600
+ }
601
+ return {
602
+ external: true
603
+ };
604
+ });
605
+ build3.onEnd(() => {
606
+ const unusedDependencies = [
607
+ ...dependencies
608
+ ].filter((dep) => {
609
+ return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
610
+ });
611
+ const missingDependencies = [
612
+ ...collectedDependencies
613
+ ].filter((dep) => {
614
+ return !dependencies.includes(dep) && !builtinModules2.includes(dep);
615
+ });
616
+ const filteredUnusedDeps = unusedDependencies.filter((dep) => {
617
+ return !unusedIgnore.some((pattern) => dep.match(pattern));
618
+ });
619
+ const filteredMissingDeps = missingDependencies.filter((dep) => {
620
+ return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
621
+ });
622
+ writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
623
+ writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
624
+ if (filteredMissingDeps.length > 0) {
625
+ throw new Error(`Missing dependencies detected - please install them:
626
+ ${JSON.stringify(filteredMissingDeps)}
627
+ `);
628
+ }
629
+ });
630
+ }
631
+ }), "depsCheckPlugin");
632
+
633
+ // ../esbuild/src/tsup.ts
634
+ import { build as tsup } from "tsup";
569
635
  async function executeTsup(context) {
570
636
  writeDebug(` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
571
637
  const stopwatch = getStopwatch(`${context.options.name} build`);
@@ -578,16 +644,8 @@ async function executeTsup(context) {
578
644
  return context;
579
645
  }
580
646
  __name(executeTsup, "executeTsup");
581
- async function copyBuildAssets(context) {
582
- if (context.result?.errors.length === 0) {
583
- writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
584
- const stopwatch = getStopwatch(`${context.options.name} asset copy`);
585
- await copyAssets(context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
586
- stopwatch();
587
- }
588
- return context;
589
- }
590
- __name(copyBuildAssets, "copyBuildAssets");
647
+
648
+ // ../esbuild/src/build.ts
591
649
  async function reportResults(context) {
592
650
  if (context.result?.errors.length === 0) {
593
651
  if (context.result.warnings.length > 0) {
package/dist/executors.js CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-7VDOGZYO.js');
2
2
 
3
3
 
4
+ var _chunkSUQKASD7js = require('./chunk-SUQKASD7.js');
5
+
6
+
4
7
  var _chunkOKW5O5P4js = require('./chunk-OKW5O5P4.js');
5
8
 
6
9
 
@@ -10,13 +13,16 @@ var _chunkICPUM2HSjs = require('./chunk-ICPUM2HS.js');
10
13
  var _chunkYW4UN25Ujs = require('./chunk-YW4UN25U.js');
11
14
 
12
15
 
16
+ var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
17
+
18
+
13
19
  var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
14
20
 
15
21
 
16
- var _chunkSUQKASD7js = require('./chunk-SUQKASD7.js');
22
+ var _chunk3KSB2RUXjs = require('./chunk-3KSB2RUX.js');
17
23
 
18
24
 
19
- var _chunkWFJXCLAOjs = require('./chunk-WFJXCLAO.js');
25
+ var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
20
26
 
21
27
 
22
28
  var _chunkRUKOOSWLjs = require('./chunk-RUKOOSWL.js');
@@ -26,12 +32,6 @@ var _chunkNSCWEC2Sjs = require('./chunk-NSCWEC2S.js');
26
32
 
27
33
 
28
34
  var _chunkTET4GF3Djs = require('./chunk-TET4GF3D.js');
29
-
30
-
31
- var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
32
-
33
-
34
- var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
35
35
  require('./chunk-CUPARBOS.js');
36
36
  require('./chunk-ULBTYC2B.js');
37
37
  require('./chunk-ZMFVKBRM.js');
@@ -53,4 +53,4 @@ require('./chunk-3GQAWCBQ.js');
53
53
 
54
54
 
55
55
 
56
- exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.esbuildExecutorFn = _chunkWFJXCLAOjs.esbuildExecutorFn; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.sizeLimitExecutorFn = _chunkOKW5O5P4js.sizeLimitExecutorFn; exports.typiaExecutorFn = _chunkICPUM2HSjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkYW4UN25Ujs.unbuildExecutorFn;
56
+ exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.esbuildExecutorFn = _chunk3KSB2RUXjs.esbuildExecutorFn; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.sizeLimitExecutorFn = _chunkOKW5O5P4js.sizeLimitExecutorFn; exports.typiaExecutorFn = _chunkICPUM2HSjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkYW4UN25Ujs.unbuildExecutorFn;
@@ -1,4 +1,7 @@
1
1
  import "./chunk-BLX5SLPC.mjs";
2
+ import {
3
+ LARGE_BUFFER
4
+ } from "./chunk-4HDB3WW5.mjs";
2
5
  import {
3
6
  sizeLimitExecutorFn
4
7
  } from "./chunk-S3G464AA.mjs";
@@ -8,15 +11,18 @@ import {
8
11
  import {
9
12
  unbuildExecutorFn
10
13
  } from "./chunk-G6XMOJQG.mjs";
14
+ import {
15
+ cargoFormatExecutor
16
+ } from "./chunk-G2TMNVHB.mjs";
11
17
  import {
12
18
  getRegistryVersion
13
19
  } from "./chunk-RXEFIIKB.mjs";
14
- import {
15
- LARGE_BUFFER
16
- } from "./chunk-4HDB3WW5.mjs";
17
20
  import {
18
21
  esbuildExecutorFn
19
- } from "./chunk-HVXQ3TPV.mjs";
22
+ } from "./chunk-75YODCF7.mjs";
23
+ import {
24
+ cargoBuildExecutor
25
+ } from "./chunk-I6DRAC2X.mjs";
20
26
  import {
21
27
  cargoCheckExecutor
22
28
  } from "./chunk-VZ7BJIVG.mjs";
@@ -26,12 +32,6 @@ import {
26
32
  import {
27
33
  cargoDocExecutor
28
34
  } from "./chunk-7MPHOPRU.mjs";
29
- import {
30
- cargoFormatExecutor
31
- } from "./chunk-G2TMNVHB.mjs";
32
- import {
33
- cargoBuildExecutor
34
- } from "./chunk-I6DRAC2X.mjs";
35
35
  import "./chunk-L2YJA3M7.mjs";
36
36
  import "./chunk-RN622QNW.mjs";
37
37
  import "./chunk-Z3XRWGHF.mjs";
package/dist/index.js CHANGED
@@ -48,6 +48,9 @@ var _chunkGKL4BY2Yjs = require('./chunk-GKL4BY2Y.js');
48
48
  require('./chunk-7VDOGZYO.js');
49
49
 
50
50
 
51
+ var _chunkSUQKASD7js = require('./chunk-SUQKASD7.js');
52
+
53
+
51
54
  var _chunkOKW5O5P4js = require('./chunk-OKW5O5P4.js');
52
55
 
53
56
 
@@ -57,13 +60,16 @@ var _chunkICPUM2HSjs = require('./chunk-ICPUM2HS.js');
57
60
  var _chunkYW4UN25Ujs = require('./chunk-YW4UN25U.js');
58
61
 
59
62
 
63
+ var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
64
+
65
+
60
66
  var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
61
67
 
62
68
 
63
- var _chunkSUQKASD7js = require('./chunk-SUQKASD7.js');
69
+ var _chunk3KSB2RUXjs = require('./chunk-3KSB2RUX.js');
64
70
 
65
71
 
66
- var _chunkWFJXCLAOjs = require('./chunk-WFJXCLAO.js');
72
+ var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
67
73
 
68
74
 
69
75
  var _chunkRUKOOSWLjs = require('./chunk-RUKOOSWL.js');
@@ -75,12 +81,6 @@ var _chunkNSCWEC2Sjs = require('./chunk-NSCWEC2S.js');
75
81
  var _chunkTET4GF3Djs = require('./chunk-TET4GF3D.js');
76
82
 
77
83
 
78
- var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
79
-
80
-
81
- var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
82
-
83
-
84
84
  var _chunkCUPARBOSjs = require('./chunk-CUPARBOS.js');
85
85
 
86
86
 
@@ -282,4 +282,4 @@ require('./chunk-3GQAWCBQ.js');
282
282
 
283
283
 
284
284
 
285
- exports.INVALID_CARGO_ARGS = _chunkULBTYC2Bjs.INVALID_CARGO_ARGS; exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.LOCK_FILES = _chunkPK2SUBWIjs.LOCK_FILES; exports.NPM_LOCK_FILE = _chunkPK2SUBWIjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkPK2SUBWIjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkPK2SUBWIjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkPK2SUBWIjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunk7AXFMX2Tjs.PackageManagerTypes; exports.ProjectTagConstants = _chunk7YRW5HNXjs.ProjectTagConstants; exports.ProjectTagDistStyleValue = _chunk4NOLUAQNjs.ProjectTagDistStyleValue; exports.ProjectTagLanguageValue = _chunk4NOLUAQNjs.ProjectTagLanguageValue; exports.ProjectTagPlatformValue = _chunk4NOLUAQNjs.ProjectTagPlatformValue; exports.ProjectTagRegistryValue = _chunk4NOLUAQNjs.ProjectTagRegistryValue; exports.ProjectTagTypeValue = _chunk4NOLUAQNjs.ProjectTagTypeValue; exports.ProjectTagVariant = _chunk4NOLUAQNjs.ProjectTagVariant; exports.YARN_LOCK_FILE = _chunkPK2SUBWIjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkPK2SUBWIjs.YARN_LOCK_PATH; exports.addPluginProjectTag = _chunk7YRW5HNXjs.addPluginProjectTag; exports.addProjectTag = _chunk7YRW5HNXjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkAC5SI4YZjs.applyWorkspaceExecutorTokens; exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.browserLibraryGeneratorFn = _chunkOQPX75CGjs.browserLibraryGeneratorFn; exports.buildCargoCommand = _chunkULBTYC2Bjs.buildCargoCommand; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoCommand = _chunkULBTYC2Bjs.cargoCommand; exports.cargoCommandSync = _chunkULBTYC2Bjs.cargoCommandSync; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.cargoMetadata = _chunkULBTYC2Bjs.cargoMetadata; exports.cargoRunCommand = _chunkULBTYC2Bjs.cargoRunCommand; exports.childProcess = _chunkULBTYC2Bjs.childProcess; exports.configSchemaGeneratorFn = _chunk6JJB5AYAjs.configSchemaGeneratorFn; exports.createCliOptions = _chunkDHGZTMNDjs.createCliOptions; exports.createProjectTsConfigJson = _chunkRBU35LQWjs.createProjectTsConfigJson; exports.esbuildExecutorFn = _chunkWFJXCLAOjs.esbuildExecutorFn; exports.eslintVersion = _chunkHI4G4OOGjs.eslintVersion; exports.formatProjectTag = _chunk7YRW5HNXjs.formatProjectTag; exports.getLockFileDependencies = _chunkPK2SUBWIjs.getLockFileDependencies; exports.getLockFileName = _chunkPK2SUBWIjs.getLockFileName; exports.getLockFileNodes = _chunkPK2SUBWIjs.getLockFileNodes; exports.getOutputPath = _chunkRBU35LQWjs.getOutputPath; exports.getPackageInfo = _chunk7AXFMX2Tjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkUF6KFXG5js.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkUF6KFXG5js.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunkGKL4BY2Yjs.getProjectConfiguration; exports.getProjectConfigurations = _chunkGKL4BY2Yjs.getProjectConfigurations; exports.getProjectPlatform = _chunkUF6KFXG5js.getProjectPlatform; exports.getProjectRoot = _chunkUF6KFXG5js.getProjectRoot; exports.getProjectTag = _chunk7YRW5HNXjs.getProjectTag; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.getTypiaTransform = _chunkXITP2BX2js.getTypiaTransform; exports.hasProjectTag = _chunk7YRW5HNXjs.hasProjectTag; exports.initGenerator = _chunk3IZ3O4OKjs.initGenerator; exports.isEqualProjectTag = _chunk7YRW5HNXjs.isEqualProjectTag; exports.isExternal = _chunkULBTYC2Bjs.isExternal; exports.lintStagedVersion = _chunkHI4G4OOGjs.lintStagedVersion; exports.lockFileExists = _chunkPK2SUBWIjs.lockFileExists; exports.modifyCargoNestedTable = _chunkZMFVKBRMjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkZMFVKBRMjs.modifyCargoTable; exports.neutralLibraryGeneratorFn = _chunk7PRHEOCTjs.neutralLibraryGeneratorFn; exports.nodeLibraryGeneratorFn = _chunk7NNHBZC5js.nodeLibraryGeneratorFn; exports.nodeVersion = _chunkHI4G4OOGjs.nodeVersion; exports.normalizeOptions = _chunkRBU35LQWjs.normalizeOptions; exports.nxVersion = _chunkHI4G4OOGjs.nxVersion; exports.parseCargoToml = _chunkZMFVKBRMjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkZMFVKBRMjs.parseCargoTomlWithTree; exports.pnpmCatalogUpdate = _chunkCUPARBOSjs.pnpmCatalogUpdate; exports.pnpmVersion = _chunkHI4G4OOGjs.pnpmVersion; exports.presetGeneratorFn = _chunkP4OVFIT6js.presetGeneratorFn; exports.prettierPackageJsonVersion = _chunkHI4G4OOGjs.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunkHI4G4OOGjs.prettierPrismaVersion; exports.prettierVersion = _chunkHI4G4OOGjs.prettierVersion; exports.releaseVersionGeneratorFn = _chunk4Y6B6JDHjs.releaseVersionGeneratorFn; exports.runProcess = _chunkULBTYC2Bjs.runProcess; exports.semanticReleaseVersion = _chunkHI4G4OOGjs.semanticReleaseVersion; exports.setDefaultProjectTags = _chunk7YRW5HNXjs.setDefaultProjectTags; exports.sizeLimitExecutorFn = _chunkOKW5O5P4js.sizeLimitExecutorFn; exports.stringifyCargoToml = _chunkZMFVKBRMjs.stringifyCargoToml; exports.swcCliVersion = _chunkHI4G4OOGjs.swcCliVersion; exports.swcCoreVersion = _chunkHI4G4OOGjs.swcCoreVersion; exports.swcHelpersVersion = _chunkHI4G4OOGjs.swcHelpersVersion; exports.swcNodeVersion = _chunkHI4G4OOGjs.swcNodeVersion; exports.tsLibVersion = _chunkHI4G4OOGjs.tsLibVersion; exports.tsupVersion = _chunkHI4G4OOGjs.tsupVersion; exports.typeScriptLibraryGeneratorFn = _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn; exports.typesNodeVersion = _chunkHI4G4OOGjs.typesNodeVersion; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunk7O34DHUGjs.typescript_library_generator_untyped_default; exports.typescriptVersion = _chunkHI4G4OOGjs.typescriptVersion; exports.typiaExecutorFn = _chunkICPUM2HSjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkYW4UN25Ujs.unbuildExecutorFn; exports.verdaccioVersion = _chunkHI4G4OOGjs.verdaccioVersion; exports.withRunExecutor = _chunk6CGAYKQLjs.withRunExecutor; exports.withRunGenerator = _chunkZ4NKRWWJjs.withRunGenerator;
285
+ exports.INVALID_CARGO_ARGS = _chunkULBTYC2Bjs.INVALID_CARGO_ARGS; exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.LOCK_FILES = _chunkPK2SUBWIjs.LOCK_FILES; exports.NPM_LOCK_FILE = _chunkPK2SUBWIjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkPK2SUBWIjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkPK2SUBWIjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkPK2SUBWIjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunk7AXFMX2Tjs.PackageManagerTypes; exports.ProjectTagConstants = _chunk7YRW5HNXjs.ProjectTagConstants; exports.ProjectTagDistStyleValue = _chunk4NOLUAQNjs.ProjectTagDistStyleValue; exports.ProjectTagLanguageValue = _chunk4NOLUAQNjs.ProjectTagLanguageValue; exports.ProjectTagPlatformValue = _chunk4NOLUAQNjs.ProjectTagPlatformValue; exports.ProjectTagRegistryValue = _chunk4NOLUAQNjs.ProjectTagRegistryValue; exports.ProjectTagTypeValue = _chunk4NOLUAQNjs.ProjectTagTypeValue; exports.ProjectTagVariant = _chunk4NOLUAQNjs.ProjectTagVariant; exports.YARN_LOCK_FILE = _chunkPK2SUBWIjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkPK2SUBWIjs.YARN_LOCK_PATH; exports.addPluginProjectTag = _chunk7YRW5HNXjs.addPluginProjectTag; exports.addProjectTag = _chunk7YRW5HNXjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkAC5SI4YZjs.applyWorkspaceExecutorTokens; exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.browserLibraryGeneratorFn = _chunkOQPX75CGjs.browserLibraryGeneratorFn; exports.buildCargoCommand = _chunkULBTYC2Bjs.buildCargoCommand; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoCommand = _chunkULBTYC2Bjs.cargoCommand; exports.cargoCommandSync = _chunkULBTYC2Bjs.cargoCommandSync; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.cargoMetadata = _chunkULBTYC2Bjs.cargoMetadata; exports.cargoRunCommand = _chunkULBTYC2Bjs.cargoRunCommand; exports.childProcess = _chunkULBTYC2Bjs.childProcess; exports.configSchemaGeneratorFn = _chunk6JJB5AYAjs.configSchemaGeneratorFn; exports.createCliOptions = _chunkDHGZTMNDjs.createCliOptions; exports.createProjectTsConfigJson = _chunkRBU35LQWjs.createProjectTsConfigJson; exports.esbuildExecutorFn = _chunk3KSB2RUXjs.esbuildExecutorFn; exports.eslintVersion = _chunkHI4G4OOGjs.eslintVersion; exports.formatProjectTag = _chunk7YRW5HNXjs.formatProjectTag; exports.getLockFileDependencies = _chunkPK2SUBWIjs.getLockFileDependencies; exports.getLockFileName = _chunkPK2SUBWIjs.getLockFileName; exports.getLockFileNodes = _chunkPK2SUBWIjs.getLockFileNodes; exports.getOutputPath = _chunkRBU35LQWjs.getOutputPath; exports.getPackageInfo = _chunk7AXFMX2Tjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkUF6KFXG5js.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkUF6KFXG5js.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunkGKL4BY2Yjs.getProjectConfiguration; exports.getProjectConfigurations = _chunkGKL4BY2Yjs.getProjectConfigurations; exports.getProjectPlatform = _chunkUF6KFXG5js.getProjectPlatform; exports.getProjectRoot = _chunkUF6KFXG5js.getProjectRoot; exports.getProjectTag = _chunk7YRW5HNXjs.getProjectTag; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.getTypiaTransform = _chunkXITP2BX2js.getTypiaTransform; exports.hasProjectTag = _chunk7YRW5HNXjs.hasProjectTag; exports.initGenerator = _chunk3IZ3O4OKjs.initGenerator; exports.isEqualProjectTag = _chunk7YRW5HNXjs.isEqualProjectTag; exports.isExternal = _chunkULBTYC2Bjs.isExternal; exports.lintStagedVersion = _chunkHI4G4OOGjs.lintStagedVersion; exports.lockFileExists = _chunkPK2SUBWIjs.lockFileExists; exports.modifyCargoNestedTable = _chunkZMFVKBRMjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkZMFVKBRMjs.modifyCargoTable; exports.neutralLibraryGeneratorFn = _chunk7PRHEOCTjs.neutralLibraryGeneratorFn; exports.nodeLibraryGeneratorFn = _chunk7NNHBZC5js.nodeLibraryGeneratorFn; exports.nodeVersion = _chunkHI4G4OOGjs.nodeVersion; exports.normalizeOptions = _chunkRBU35LQWjs.normalizeOptions; exports.nxVersion = _chunkHI4G4OOGjs.nxVersion; exports.parseCargoToml = _chunkZMFVKBRMjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkZMFVKBRMjs.parseCargoTomlWithTree; exports.pnpmCatalogUpdate = _chunkCUPARBOSjs.pnpmCatalogUpdate; exports.pnpmVersion = _chunkHI4G4OOGjs.pnpmVersion; exports.presetGeneratorFn = _chunkP4OVFIT6js.presetGeneratorFn; exports.prettierPackageJsonVersion = _chunkHI4G4OOGjs.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunkHI4G4OOGjs.prettierPrismaVersion; exports.prettierVersion = _chunkHI4G4OOGjs.prettierVersion; exports.releaseVersionGeneratorFn = _chunk4Y6B6JDHjs.releaseVersionGeneratorFn; exports.runProcess = _chunkULBTYC2Bjs.runProcess; exports.semanticReleaseVersion = _chunkHI4G4OOGjs.semanticReleaseVersion; exports.setDefaultProjectTags = _chunk7YRW5HNXjs.setDefaultProjectTags; exports.sizeLimitExecutorFn = _chunkOKW5O5P4js.sizeLimitExecutorFn; exports.stringifyCargoToml = _chunkZMFVKBRMjs.stringifyCargoToml; exports.swcCliVersion = _chunkHI4G4OOGjs.swcCliVersion; exports.swcCoreVersion = _chunkHI4G4OOGjs.swcCoreVersion; exports.swcHelpersVersion = _chunkHI4G4OOGjs.swcHelpersVersion; exports.swcNodeVersion = _chunkHI4G4OOGjs.swcNodeVersion; exports.tsLibVersion = _chunkHI4G4OOGjs.tsLibVersion; exports.tsupVersion = _chunkHI4G4OOGjs.tsupVersion; exports.typeScriptLibraryGeneratorFn = _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn; exports.typesNodeVersion = _chunkHI4G4OOGjs.typesNodeVersion; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunk7O34DHUGjs.typescript_library_generator_untyped_default; exports.typescriptVersion = _chunkHI4G4OOGjs.typescriptVersion; exports.typiaExecutorFn = _chunkICPUM2HSjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkYW4UN25Ujs.unbuildExecutorFn; exports.verdaccioVersion = _chunkHI4G4OOGjs.verdaccioVersion; exports.withRunExecutor = _chunk6CGAYKQLjs.withRunExecutor; exports.withRunGenerator = _chunkZ4NKRWWJjs.withRunGenerator;
package/dist/index.mjs CHANGED
@@ -46,6 +46,9 @@ import {
46
46
  getProjectConfigurations
47
47
  } from "./chunk-MPP5KSJW.mjs";
48
48
  import "./chunk-BLX5SLPC.mjs";
49
+ import {
50
+ LARGE_BUFFER
51
+ } from "./chunk-4HDB3WW5.mjs";
49
52
  import {
50
53
  sizeLimitExecutorFn
51
54
  } from "./chunk-S3G464AA.mjs";
@@ -55,15 +58,18 @@ import {
55
58
  import {
56
59
  unbuildExecutorFn
57
60
  } from "./chunk-G6XMOJQG.mjs";
61
+ import {
62
+ cargoFormatExecutor
63
+ } from "./chunk-G2TMNVHB.mjs";
58
64
  import {
59
65
  getRegistryVersion
60
66
  } from "./chunk-RXEFIIKB.mjs";
61
- import {
62
- LARGE_BUFFER
63
- } from "./chunk-4HDB3WW5.mjs";
64
67
  import {
65
68
  esbuildExecutorFn
66
- } from "./chunk-HVXQ3TPV.mjs";
69
+ } from "./chunk-75YODCF7.mjs";
70
+ import {
71
+ cargoBuildExecutor
72
+ } from "./chunk-I6DRAC2X.mjs";
67
73
  import {
68
74
  cargoCheckExecutor
69
75
  } from "./chunk-VZ7BJIVG.mjs";
@@ -73,12 +79,6 @@ import {
73
79
  import {
74
80
  cargoDocExecutor
75
81
  } from "./chunk-7MPHOPRU.mjs";
76
- import {
77
- cargoFormatExecutor
78
- } from "./chunk-G2TMNVHB.mjs";
79
- import {
80
- cargoBuildExecutor
81
- } from "./chunk-I6DRAC2X.mjs";
82
82
  import {
83
83
  pnpmCatalogUpdate
84
84
  } from "./chunk-L2YJA3M7.mjs";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWFJXCLAOjs = require('../../../chunk-WFJXCLAO.js');
4
+ var _chunk3KSB2RUXjs = require('../../../chunk-3KSB2RUX.js');
5
5
  require('../../../chunk-6CGAYKQL.js');
6
6
  require('../../../chunk-UALZJZUK.js');
7
7
  require('../../../chunk-G4QFSE5B.js');
@@ -11,4 +11,4 @@ require('../../../chunk-3GQAWCBQ.js');
11
11
 
12
12
 
13
13
 
14
- exports.default = _chunkWFJXCLAOjs.executor_default; exports.esbuildExecutorFn = _chunkWFJXCLAOjs.esbuildExecutorFn;
14
+ exports.default = _chunk3KSB2RUXjs.executor_default; exports.esbuildExecutorFn = _chunk3KSB2RUXjs.esbuildExecutorFn;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  esbuildExecutorFn,
3
3
  executor_default
4
- } from "../../../chunk-HVXQ3TPV.mjs";
4
+ } from "../../../chunk-75YODCF7.mjs";
5
5
  import "../../../chunk-R6ECHUMB.mjs";
6
6
  import "../../../chunk-O4PGVCDS.mjs";
7
7
  import "../../../chunk-KW6IZY4K.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.267.8",
3
+ "version": "1.267.9",
4
4
  "description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
5
5
  "repository": {
6
6
  "type": "github",