@storm-software/workspace-tools 1.267.7 → 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,25 @@
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
+
17
+ ## [1.267.8](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.8) (2025-04-29)
18
+
19
+ ### Miscellaneous
20
+
21
+ - **monorepo:** Regenerate README markdown files
22
+ ([f2e5028dd](https://github.com/storm-software/storm-ops/commit/f2e5028dd))
23
+
5
24
  ## [1.267.7](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.7) (2025-04-29)
6
25
 
7
26
  ### 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.6-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: [],
@@ -279,6 +288,7 @@ var DEFAULT_BUILD_OPTIONS = {
279
288
  keepNames: true,
280
289
  metafile: false,
281
290
  treeshake: true,
291
+ splitting: true,
282
292
  shims: false,
283
293
  watch: false,
284
294
  bundle: true,
@@ -310,97 +320,51 @@ var DEFAULT_BUILD_OPTIONS = {
310
320
  }
311
321
  };
312
322
 
313
- // ../esbuild/src/plugins/deps-check.ts
323
+ // ../esbuild/src/plugins/resolve-paths.ts
314
324
 
315
-
316
- var unusedIgnore = [
317
- // these are our dev dependencies
318
- /@types\/.*?/,
319
- /@typescript-eslint.*?/,
320
- /eslint.*?/,
321
- "esbuild",
322
- "husky",
323
- "is-ci",
324
- "lint-staged",
325
- "prettier",
326
- "typescript",
327
- "ts-node",
328
- "ts-jest",
329
- "@swc/core",
330
- "@swc/jest",
331
- "jest",
332
- // these are missing 3rd party deps
333
- "spdx-exceptions",
334
- "spdx-license-ids",
335
- // type-only, so it is not detected
336
- "ts-toolbelt",
337
- // these are indirectly used by build
338
- "buffer"
339
- ];
340
- var missingIgnore = [
341
- ".prisma",
342
- "@prisma/client",
343
- "ts-toolbelt"
344
- ];
345
- var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
346
- 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",
347
347
  setup(build3) {
348
- const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
349
- const pkgContents = _chunk3GQAWCBQjs.__require.call(void 0, pkgJsonPath);
350
- const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
351
- const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
352
- const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
353
- const dependencies = [
354
- ...regDependencies,
355
- ...bundle ? devDependencies : []
356
- ];
357
- const collectedDependencies = /* @__PURE__ */ new Set();
358
- 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("|")})$`);
359
351
  build3.onResolve({
360
- filter: onlyPackages
352
+ filter: packagesRegex
361
353
  }, (args) => {
362
- if (args.importer.includes(process.cwd())) {
363
- if (args.path[0] === "@") {
364
- const [org, pkg] = args.path.split("/");
365
- collectedDependencies.add(`${org}/${pkg}`);
366
- } else {
367
- const [pkg] = args.path.split("/");
368
- collectedDependencies.add(pkg);
369
- }
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
+ };
370
359
  }
371
360
  return {
372
- external: true
361
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
373
362
  };
374
363
  });
375
- build3.onEnd(() => {
376
- const unusedDependencies = [
377
- ...dependencies
378
- ].filter((dep) => {
379
- return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
380
- });
381
- const missingDependencies = [
382
- ...collectedDependencies
383
- ].filter((dep) => {
384
- return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
385
- });
386
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
387
- return !unusedIgnore.some((pattern) => dep.match(pattern));
388
- });
389
- const filteredMissingDeps = missingDependencies.filter((dep) => {
390
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
391
- });
392
- _chunkG4QFSE5Bjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
393
- _chunkG4QFSE5Bjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
394
- if (filteredMissingDeps.length > 0) {
395
- throw new Error(`Missing dependencies detected - please install them:
396
- ${JSON.stringify(filteredMissingDeps)}
397
- `);
398
- }
399
- });
400
364
  }
401
- }), "depsCheckPlugin");
365
+ }), "resolvePathsPlugin");
402
366
 
403
- // ../esbuild/src/build.ts
367
+ // ../esbuild/src/context.ts
404
368
  async function resolveContext(userOptions) {
405
369
  const projectRoot = userOptions.projectRoot;
406
370
  const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
@@ -423,28 +387,27 @@ async function resolveContext(userOptions) {
423
387
  const projectJson = JSON.parse(projectJsonFile);
424
388
  const projectName = projectJson.name || userOptions.name;
425
389
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
426
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _24 => _24.projects, 'optionalAccess', _25 => _25[projectName]])) {
390
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _33 => _33.projects, 'optionalAccess', _34 => _34[projectName]])) {
427
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.");
428
392
  }
429
393
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
394
+ options.name ??= projectName;
430
395
  const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
431
396
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
432
397
  throw new Error("Cannot find package.json configuration");
433
398
  }
434
399
  const env = getEnv("esbuild", options);
400
+ const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
435
401
  const resolvedOptions = {
436
- name: projectName,
437
402
  ...options,
438
403
  tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
439
404
  metafile: userOptions.mode === "development",
440
405
  clean: false,
441
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
442
406
  env,
443
407
  define: {
444
408
  STORM_FORMAT: JSON.stringify(options.format),
445
- ...options.define,
446
- ...Object.keys(env || {}).reduce((res, key) => {
447
- const value = JSON.stringify(env[key]);
409
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
410
+ const value = JSON.stringify(define[key]);
448
411
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
449
412
  return {
450
413
  ...res,
@@ -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: [],
@@ -279,6 +288,7 @@ var DEFAULT_BUILD_OPTIONS = {
279
288
  keepNames: true,
280
289
  metafile: false,
281
290
  treeshake: true,
291
+ splitting: true,
282
292
  shims: false,
283
293
  watch: false,
284
294
  bundle: true,
@@ -310,97 +320,51 @@ var DEFAULT_BUILD_OPTIONS = {
310
320
  }
311
321
  };
312
322
 
313
- // ../esbuild/src/plugins/deps-check.ts
314
- import { builtinModules as builtinModules2 } from "node:module";
323
+ // ../esbuild/src/plugins/resolve-paths.ts
315
324
  import path2 from "node:path";
316
- var unusedIgnore = [
317
- // these are our dev dependencies
318
- /@types\/.*?/,
319
- /@typescript-eslint.*?/,
320
- /eslint.*?/,
321
- "esbuild",
322
- "husky",
323
- "is-ci",
324
- "lint-staged",
325
- "prettier",
326
- "typescript",
327
- "ts-node",
328
- "ts-jest",
329
- "@swc/core",
330
- "@swc/jest",
331
- "jest",
332
- // these are missing 3rd party deps
333
- "spdx-exceptions",
334
- "spdx-license-ids",
335
- // type-only, so it is not detected
336
- "ts-toolbelt",
337
- // these are indirectly used by build
338
- "buffer"
339
- ];
340
- var missingIgnore = [
341
- ".prisma",
342
- "@prisma/client",
343
- "ts-toolbelt"
344
- ];
345
- var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
346
- 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",
347
347
  setup(build3) {
348
- const pkgJsonPath = path2.join(process.cwd(), "package.json");
349
- const pkgContents = __require(pkgJsonPath);
350
- const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
351
- const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
352
- const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
353
- const dependencies = [
354
- ...regDependencies,
355
- ...bundle ? devDependencies : []
356
- ];
357
- const collectedDependencies = /* @__PURE__ */ new Set();
358
- 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("|")})$`);
359
351
  build3.onResolve({
360
- filter: onlyPackages
352
+ filter: packagesRegex
361
353
  }, (args) => {
362
- if (args.importer.includes(process.cwd())) {
363
- if (args.path[0] === "@") {
364
- const [org, pkg] = args.path.split("/");
365
- collectedDependencies.add(`${org}/${pkg}`);
366
- } else {
367
- const [pkg] = args.path.split("/");
368
- collectedDependencies.add(pkg);
369
- }
354
+ if (build3.initialOptions.external?.includes(args.path)) {
355
+ return {
356
+ path: args.path,
357
+ external: true
358
+ };
370
359
  }
371
360
  return {
372
- external: true
361
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
373
362
  };
374
363
  });
375
- build3.onEnd(() => {
376
- const unusedDependencies = [
377
- ...dependencies
378
- ].filter((dep) => {
379
- return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
380
- });
381
- const missingDependencies = [
382
- ...collectedDependencies
383
- ].filter((dep) => {
384
- return !dependencies.includes(dep) && !builtinModules2.includes(dep);
385
- });
386
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
387
- return !unusedIgnore.some((pattern) => dep.match(pattern));
388
- });
389
- const filteredMissingDeps = missingDependencies.filter((dep) => {
390
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
391
- });
392
- writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
393
- writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
394
- if (filteredMissingDeps.length > 0) {
395
- throw new Error(`Missing dependencies detected - please install them:
396
- ${JSON.stringify(filteredMissingDeps)}
397
- `);
398
- }
399
- });
400
364
  }
401
- }), "depsCheckPlugin");
365
+ }), "resolvePathsPlugin");
402
366
 
403
- // ../esbuild/src/build.ts
367
+ // ../esbuild/src/context.ts
404
368
  async function resolveContext(userOptions) {
405
369
  const projectRoot = userOptions.projectRoot;
406
370
  const workspaceRoot = findWorkspaceRoot2(projectRoot);
@@ -427,24 +391,23 @@ async function resolveContext(userOptions) {
427
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.");
428
392
  }
429
393
  const options = defu(userOptions, DEFAULT_BUILD_OPTIONS);
394
+ options.name ??= projectName;
430
395
  const packageJsonPath = joinPaths(workspaceRoot.dir, options.projectRoot, "package.json");
431
396
  if (!existsSync3(packageJsonPath)) {
432
397
  throw new Error("Cannot find package.json configuration");
433
398
  }
434
399
  const env = getEnv("esbuild", options);
400
+ const define = defu(options.define ?? {}, env ?? {});
435
401
  const resolvedOptions = {
436
- name: projectName,
437
402
  ...options,
438
403
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
439
404
  metafile: userOptions.mode === "development",
440
405
  clean: false,
441
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
442
406
  env,
443
407
  define: {
444
408
  STORM_FORMAT: JSON.stringify(options.format),
445
- ...options.define,
446
- ...Object.keys(env || {}).reduce((res, key) => {
447
- const value = JSON.stringify(env[key]);
409
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
410
+ const value = JSON.stringify(define[key]);
448
411
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
449
412
  return {
450
413
  ...res,
@@ -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
@@ -19,7 +19,7 @@ var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
19
19
  var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
20
20
 
21
21
 
22
- var _chunkMA3VQKIFjs = require('./chunk-MA3VQKIF.js');
22
+ var _chunk3KSB2RUXjs = require('./chunk-3KSB2RUX.js');
23
23
 
24
24
 
25
25
  var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.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 = _chunkMA3VQKIFjs.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;
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-RXEFIIKB.mjs";
20
20
  import {
21
21
  esbuildExecutorFn
22
- } from "./chunk-FGZK7CJK.mjs";
22
+ } from "./chunk-75YODCF7.mjs";
23
23
  import {
24
24
  cargoBuildExecutor
25
25
  } from "./chunk-I6DRAC2X.mjs";
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
66
66
  var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
67
67
 
68
68
 
69
- var _chunkMA3VQKIFjs = require('./chunk-MA3VQKIF.js');
69
+ var _chunk3KSB2RUXjs = require('./chunk-3KSB2RUX.js');
70
70
 
71
71
 
72
72
  var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
@@ -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 = _chunkMA3VQKIFjs.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
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-RXEFIIKB.mjs";
67
67
  import {
68
68
  esbuildExecutorFn
69
- } from "./chunk-FGZK7CJK.mjs";
69
+ } from "./chunk-75YODCF7.mjs";
70
70
  import {
71
71
  cargoBuildExecutor
72
72
  } from "./chunk-I6DRAC2X.mjs";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkMA3VQKIFjs = require('../../../chunk-MA3VQKIF.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 = _chunkMA3VQKIFjs.executor_default; exports.esbuildExecutorFn = _chunkMA3VQKIFjs.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-FGZK7CJK.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.7",
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",