@storm-software/workspace-tools 1.293.0 → 1.293.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +68 -8
  3. package/dist/{chunk-XYDGMWNM.js → chunk-2HWYXG2K.js} +7 -7
  4. package/dist/{chunk-IVAHNQZP.js → chunk-322ASCCN.js} +3 -3
  5. package/dist/{chunk-HP36FVRU.mjs → chunk-3UGFRM4O.mjs} +1 -1
  6. package/dist/chunk-4EA2KL6D.js +124 -0
  7. package/dist/{chunk-DSDE2UL5.js → chunk-4ROGNJIP.js} +29 -29
  8. package/dist/{chunk-MYFQ64WE.js → chunk-5EA2N2AH.js} +22 -22
  9. package/dist/{chunk-ZM7BQH6Q.mjs → chunk-6F75AWBB.mjs} +3 -3
  10. package/dist/{chunk-QITMVWVJ.mjs → chunk-6IHCTXPW.mjs} +1 -1
  11. package/dist/{chunk-IUDAADGV.js → chunk-6XDX3W4C.js} +2 -2
  12. package/dist/{chunk-IIDQ2ITD.mjs → chunk-BELCG4XM.mjs} +1 -1
  13. package/dist/{chunk-5N7GGHPM.js → chunk-BOC6RTAX.js} +2 -2
  14. package/dist/{chunk-4HV5G4DT.js → chunk-COIQ4U46.js} +13 -13
  15. package/dist/{chunk-G2L3EEEO.js → chunk-CQDBLKPF.js} +44 -1
  16. package/dist/{chunk-REKF65PT.mjs → chunk-DBNK7FLL.mjs} +3 -3
  17. package/dist/{chunk-SVSX2DDY.js → chunk-DUHZQGVB.js} +2 -2
  18. package/dist/{chunk-HT7FNLPL.mjs → chunk-DUZOZEUA.mjs} +1 -1
  19. package/dist/{chunk-6A7OOTO2.js → chunk-EGVBKE43.js} +7 -7
  20. package/dist/{chunk-CDBRCMR4.mjs → chunk-GIVVWGKW.mjs} +1 -1
  21. package/dist/{chunk-VGJEUOUN.mjs → chunk-GSZ2BO7G.mjs} +1 -1
  22. package/dist/{chunk-NXWRHUNL.mjs → chunk-IT3RQADI.mjs} +4 -4
  23. package/dist/{chunk-BCXNBLCP.mjs → chunk-KFRGKGAD.mjs} +1 -1
  24. package/dist/{chunk-6JX3VJQY.mjs → chunk-KSUWYBUX.mjs} +1 -1
  25. package/dist/{chunk-W4IH547O.js → chunk-L5WX3FSM.js} +2 -2
  26. package/dist/{chunk-K5XMGL6Y.mjs → chunk-L6LJBWJ7.mjs} +3 -3
  27. package/dist/{chunk-TCC635LO.js → chunk-L7OQTUBA.js} +7 -7
  28. package/dist/{chunk-EECJXHDA.js → chunk-MF2R2GZF.js} +20 -20
  29. package/dist/{chunk-F3NQOV2M.mjs → chunk-MFRKH3QL.mjs} +2 -2
  30. package/dist/{chunk-LA2KY2TQ.js → chunk-ML2VHRB6.js} +2 -2
  31. package/dist/{chunk-NOTQLVZP.mjs → chunk-NQOA6WGC.mjs} +2 -2
  32. package/dist/{chunk-T5BI42AO.js → chunk-O5JT5GOM.js} +7 -7
  33. package/dist/{chunk-YNZUCZH3.js → chunk-OF7BAS3P.js} +5 -5
  34. package/dist/{chunk-YMZQ7GGX.js → chunk-OGE2WFDW.js} +7 -7
  35. package/dist/{chunk-EYRX4NM6.mjs → chunk-P2QPOCDL.mjs} +1 -1
  36. package/dist/{chunk-GEP246CJ.mjs → chunk-P6JV6ABK.mjs} +1 -1
  37. package/dist/chunk-PQ2ED6U2.mjs +124 -0
  38. package/dist/{chunk-76SRFTZ2.mjs → chunk-QYHQD375.mjs} +1 -1
  39. package/dist/{chunk-3Q7VPB75.js → chunk-R5MXU5BG.js} +2 -2
  40. package/dist/{chunk-MBO4Z5AV.js → chunk-RGRRXFFX.js} +7 -7
  41. package/dist/{chunk-QEGJ4PKW.js → chunk-ROI6N5XU.js} +2 -2
  42. package/dist/{chunk-2NHKQWQ5.js → chunk-RVGLZSRS.js} +2 -2
  43. package/dist/{chunk-ADWXA4ZQ.js → chunk-RYUO22WK.js} +25 -25
  44. package/dist/{chunk-LXOTH243.js → chunk-RZDOMICP.js} +2 -2
  45. package/dist/{chunk-332US6XA.mjs → chunk-T3WEFC55.mjs} +1 -1
  46. package/dist/{chunk-ZP4B44CQ.js → chunk-TAG2PULI.js} +2 -2
  47. package/dist/{chunk-C26A6BXG.mjs → chunk-TBW5MCN6.mjs} +44 -1
  48. package/dist/{chunk-FSYURQ5X.js → chunk-TYJZD5KJ.js} +15 -15
  49. package/dist/{chunk-OOR7HG4P.mjs → chunk-UETG5X2Z.mjs} +4 -4
  50. package/dist/{chunk-ALFDHMDV.mjs → chunk-UKKUUGK5.mjs} +1 -1
  51. package/dist/{chunk-J3WZEN2U.js → chunk-VF2LXW3B.js} +2 -2
  52. package/dist/{chunk-TMUZX6IO.mjs → chunk-VGWI2FQE.mjs} +3 -3
  53. package/dist/{chunk-TCGF4GS7.js → chunk-VGXI3J3C.js} +2 -2
  54. package/dist/{chunk-FML2FBSG.mjs → chunk-WHGUOK37.mjs} +1 -1
  55. package/dist/{chunk-JGFRV7ZL.mjs → chunk-WS5PLNBP.mjs} +3 -3
  56. package/dist/{chunk-ZTFZJPOM.mjs → chunk-XLZWHFV7.mjs} +3 -3
  57. package/dist/{chunk-6PVCCKX4.mjs → chunk-Y25P6YPV.mjs} +1 -1
  58. package/dist/{chunk-YJXVS5UQ.mjs → chunk-YJT4F4GN.mjs} +2 -2
  59. package/dist/{chunk-32G4OHA3.mjs → chunk-YOM5ZK63.mjs} +5 -5
  60. package/dist/{chunk-KLUJ3GE7.js → chunk-YXJ3YDLQ.js} +2 -2
  61. package/dist/{chunk-TJRQRM4Z.mjs → chunk-ZGMVPA2H.mjs} +1 -1
  62. package/dist/{chunk-5C7DI3NF.js → chunk-ZOUMLMH4.js} +2 -2
  63. package/dist/{executor-BH3B5WW0.d.mts → executor-Bx3N1lzV.d.mts} +8 -0
  64. package/dist/{executor-DKkrAhWH.d.ts → executor-NLb4xNfW.d.ts} +8 -0
  65. package/dist/executors.d.mts +1 -1
  66. package/dist/executors.d.ts +1 -1
  67. package/dist/executors.js +20 -20
  68. package/dist/executors.mjs +21 -21
  69. package/dist/generators.js +12 -12
  70. package/dist/generators.mjs +11 -11
  71. package/dist/index.d.mts +1 -1
  72. package/dist/index.d.ts +1 -1
  73. package/dist/index.js +31 -31
  74. package/dist/index.mjs +32 -32
  75. package/dist/src/base/base-executor.js +6 -6
  76. package/dist/src/base/base-executor.mjs +5 -5
  77. package/dist/src/base/base-generator.js +6 -6
  78. package/dist/src/base/base-generator.mjs +5 -5
  79. package/dist/src/base/index.js +8 -8
  80. package/dist/src/base/index.mjs +7 -7
  81. package/dist/src/executors/cargo-build/executor.js +7 -7
  82. package/dist/src/executors/cargo-build/executor.mjs +6 -6
  83. package/dist/src/executors/cargo-check/executor.js +7 -7
  84. package/dist/src/executors/cargo-check/executor.mjs +6 -6
  85. package/dist/src/executors/cargo-clippy/executor.js +7 -7
  86. package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
  87. package/dist/src/executors/cargo-doc/executor.js +7 -7
  88. package/dist/src/executors/cargo-doc/executor.mjs +6 -6
  89. package/dist/src/executors/cargo-format/executor.js +7 -7
  90. package/dist/src/executors/cargo-format/executor.mjs +6 -6
  91. package/dist/src/executors/clean-package/executor.js +7 -7
  92. package/dist/src/executors/clean-package/executor.mjs +5 -5
  93. package/dist/src/executors/esbuild/executor.js +8 -8
  94. package/dist/src/executors/esbuild/executor.mjs +7 -7
  95. package/dist/src/executors/napi/executor.d.mts +1 -1
  96. package/dist/src/executors/napi/executor.d.ts +1 -1
  97. package/dist/src/executors/napi/executor.js +7 -7
  98. package/dist/src/executors/napi/executor.mjs +6 -6
  99. package/dist/src/executors/npm-publish/executor.js +6 -6
  100. package/dist/src/executors/npm-publish/executor.mjs +5 -5
  101. package/dist/src/executors/size-limit/executor.js +7 -7
  102. package/dist/src/executors/size-limit/executor.mjs +6 -6
  103. package/dist/src/executors/tsdown/executor.js +8 -8
  104. package/dist/src/executors/tsdown/executor.mjs +7 -7
  105. package/dist/src/executors/typia/executor.js +7 -7
  106. package/dist/src/executors/typia/executor.mjs +6 -6
  107. package/dist/src/executors/unbuild/executor.js +7 -7
  108. package/dist/src/executors/unbuild/executor.mjs +6 -6
  109. package/dist/src/generators/browser-library/generator.js +8 -8
  110. package/dist/src/generators/browser-library/generator.mjs +7 -7
  111. package/dist/src/generators/config-schema/generator.js +7 -7
  112. package/dist/src/generators/config-schema/generator.mjs +6 -6
  113. package/dist/src/generators/neutral-library/generator.js +8 -8
  114. package/dist/src/generators/neutral-library/generator.mjs +7 -7
  115. package/dist/src/generators/node-library/generator.js +8 -8
  116. package/dist/src/generators/node-library/generator.mjs +7 -7
  117. package/dist/src/generators/preset/generator.js +7 -7
  118. package/dist/src/generators/preset/generator.mjs +6 -6
  119. package/dist/src/release/index.js +6 -6
  120. package/dist/src/release/index.mjs +5 -5
  121. package/dist/src/release/js-version-actions.js +5 -5
  122. package/dist/src/release/js-version-actions.mjs +4 -4
  123. package/dist/src/release/rust-version-actions.js +5 -5
  124. package/dist/src/release/rust-version-actions.mjs +4 -4
  125. package/dist/src/utils/apply-workspace-tokens.js +4 -4
  126. package/dist/src/utils/apply-workspace-tokens.mjs +3 -3
  127. package/dist/src/utils/get-project-configurations.js +4 -4
  128. package/dist/src/utils/get-project-configurations.mjs +3 -3
  129. package/dist/src/utils/index.js +6 -6
  130. package/dist/src/utils/index.mjs +5 -5
  131. package/dist/src/utils/package-helpers.js +3 -3
  132. package/dist/src/utils/package-helpers.mjs +2 -2
  133. package/executors.json +5 -0
  134. package/package.json +8 -8
  135. package/dist/chunk-6CBCLVUS.mjs +0 -71
  136. package/dist/chunk-6FRCSY35.js +0 -71
package/CHANGELOG.md CHANGED
@@ -2,6 +2,66 @@
2
2
 
3
3
  # Changelog for Storm Ops - Workspace Tools
4
4
 
5
+ ## [1.293.1](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.293.1) (11/13/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Reformat workspace package files
10
+ ([a0fb66d75](https://github.com/storm-software/storm-ops/commit/a0fb66d75))
11
+ - **monorepo:** Reformat workspace files
12
+ ([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
13
+ - **monorepo:** Regenerate README markdown files
14
+ ([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
15
+
16
+ ### Bug Fixes
17
+
18
+ - **workspace-tools:** Resolve issue with missing `napi` executor in
19
+ `executors.json` file
20
+ ([43961d262](https://github.com/storm-software/storm-ops/commit/43961d262))
21
+
22
+ ### Features
23
+
24
+ - **workspace-tools:** Added the `napi` executor to build rust bindings
25
+ ([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
26
+
27
+ ### Updated Dependencies
28
+
29
+ - Updated **testing-tools** to **v1.119.31**
30
+ - Updated **config-tools** to **v1.188.31**
31
+ - Updated **pnpm-tools** to **v0.6.31**
32
+ - Updated **npm-tools** to **v0.5.31**
33
+ - Updated **prettier** to **v0.57.31**
34
+ - Updated **esbuild** to **v0.53.31**
35
+ - Updated **unbuild** to **v0.57.31**
36
+ - Updated **config** to **v1.134.31**
37
+ - Updated **tsdown** to **v0.45.31**
38
+
39
+ ## [1.293.0](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.293.0) (11/13/2025)
40
+
41
+ ### Miscellaneous
42
+
43
+ - **monorepo:** Reformat workspace files
44
+ ([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
45
+ - **monorepo:** Regenerate README markdown files
46
+ ([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
47
+
48
+ ### Features
49
+
50
+ - **workspace-tools:** Added the `napi` executor to build rust bindings
51
+ ([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
52
+
53
+ ### Updated Dependencies
54
+
55
+ - Updated **testing-tools** to **v1.119.30**
56
+ - Updated **config-tools** to **v1.188.30**
57
+ - Updated **pnpm-tools** to **v0.6.30**
58
+ - Updated **npm-tools** to **v0.5.30**
59
+ - Updated **prettier** to **v0.57.30**
60
+ - Updated **esbuild** to **v0.53.30**
61
+ - Updated **unbuild** to **v0.57.30**
62
+ - Updated **config** to **v1.134.30**
63
+ - Updated **tsdown** to **v0.45.30**
64
+
5
65
  ## [1.292.29](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.29) (11/12/2025)
6
66
 
7
67
  ### 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.292.29-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.293.0-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 -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm Workspace Tools](#storm-workspace-tools)
@@ -82,19 +81,22 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
82
81
  - [Cargo Doc Executor](#cargo-doc-executor)
83
82
  - [Example](#example-11)
84
83
  - [Options](#options-11)
84
+ - [Napi Executor](#napi-executor)
85
+ - [Example](#example-12)
86
+ - [Options](#options-12)
85
87
  - [Generators](#generators)
86
88
  - [Init Generator](#init-generator)
87
- - [Options](#options-12)
88
- - [Preset Generator](#preset-generator)
89
89
  - [Options](#options-13)
90
- - [Node Library Generator](#node-library-generator)
90
+ - [Preset Generator](#preset-generator)
91
91
  - [Options](#options-14)
92
- - [Config Schema Generator](#config-schema-generator)
92
+ - [Node Library Generator](#node-library-generator)
93
93
  - [Options](#options-15)
94
- - [Neutral Library Generator](#neutral-library-generator)
94
+ - [Config Schema Generator](#config-schema-generator)
95
95
  - [Options](#options-16)
96
- - [Browser Library Generator](#browser-library-generator)
96
+ - [Neutral Library Generator](#neutral-library-generator)
97
97
  - [Options](#options-17)
98
+ - [Browser Library Generator](#browser-library-generator)
99
+ - [Options](#options-18)
98
100
  - [release-version](#release-version)
99
101
  - [Building](#building)
100
102
  - [Running unit tests](#running-unit-tests)
@@ -571,6 +573,64 @@ The following executor options are available:
571
573
 
572
574
 
573
575
 
576
+ ## Napi Executor
577
+
578
+ A type definition for the Napi - Bindings Build executor schema
579
+
580
+ ### Example
581
+
582
+ This executor can be used by executing the following in a command line utility:
583
+
584
+ ```cmd
585
+ nx run my-project:napi
586
+ ```
587
+
588
+ **Please note:** _The napi executor should be included in the desired projects's `project.json` file.All required options must be included in the `options` property of the json._
589
+
590
+ ### Options
591
+
592
+ The following executor options are available:
593
+
594
+ | Option | Type | Description | Default |
595
+ | --------- | ------ | ------------- | --------- |
596
+ | **outputPath \*** | `string` | The path to the output directory | |
597
+ | **package \*** | `string` | Build the specified library or the one at cwd | |
598
+ | toolchain | "stable" \| "beta" \| "nightly" | The type of toolchain to use for the build | "stable" |
599
+ | target | `string` | Build for the target triple, bypassed to \`cargo build --target\` | |
600
+ | allTargets | `boolean` | Build all targets | |
601
+ | profile | `string` | Build artifacts with the specified profile | |
602
+ | release | `boolean` | Build in release mode | |
603
+ | features | `string[]` | List of features to activate | |
604
+ | allFeatures | `boolean` | Activate all available features | |
605
+ | **jsBinding \*** | `string` | The path to the output JavaScript file | "binding.js" |
606
+ | **dts \*** | `string` | The path to the output TypeScript declaration file | "binding.d.ts" |
607
+ | **manifestPath \*** | `string` | The path to the Cargo.toml manifest file | |
608
+ | cwd | `string` | Working directory where napi command will be executed; other paths are relative to this | |
609
+ | configPath | `string` | Path to napi config JSON file | |
610
+ | packageJsonPath | `string` | Path to package.json | |
611
+ | targetDir | `string` | Directory for all crate generated artifacts (cargo build --target-dir) | |
612
+ | platform | `boolean` | Add platform triple to generated Node.js binding file, e.g. [name].linux-x64-gnu.node | `true` |
613
+ | jsPackageName | `string` | Package name in generated JS binding file. Works only with --platform | |
614
+ | constEnum | `boolean` | Whether to generate const enum for TypeScript bindings | |
615
+ | noJsBinding | `boolean` | Disable generation of JS binding file. Works only with --platform | |
616
+ | dtsHeader | `string` | Custom file header for generated type def file (requires typedef feature) | |
617
+ | noDtsHeader | `boolean` | Disable default file header for generated type def file (requires typedef feature) | |
618
+ | dtsCache | `boolean` | Enable the DTS cache | `true` |
619
+ | esm | `boolean` | Emit an ESM JS binding file instead of CJS (works only with --platform) | |
620
+ | strip | `boolean` | Strip the library to minimize file size | |
621
+ | verbose | `boolean` | Verbosely log build command trace | |
622
+ | bin | `string` | Build only the specified binary | |
623
+ | crossCompile | `boolean` | [experimental] Cross-compile for the specified target with cargo-xwin on Windows and cargo-zigbuild on other platforms | |
624
+ | useCross | `boolean` | [experimental] Use cross (https://github.com/cross-rs/cross) instead of cargo | |
625
+ | useNapiCross | `boolean` | [experimental] Use @napi-rs/cross-toolchain to cross-compile Linux arm/arm64/x64 gnu targets | |
626
+ | watch | `boolean` | Watch crate changes and build continuously with cargo-watch | |
627
+ | noDefaultFeatures | `boolean` | Do not activate the default feature | |
628
+
629
+
630
+ **Please note:** _Option names followed by \* above are required, and must be provided to run the executor._
631
+
632
+
633
+
574
634
  <!-- markdownlint-restore -->
575
635
  <!-- prettier-ignore-end -->
576
636
 
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkLA2KY2TQjs = require('./chunk-LA2KY2TQ.js');
4
+ var _chunkML2VHRB6js = require('./chunk-ML2VHRB6.js');
5
5
 
6
6
 
7
- var _chunkDSDE2UL5js = require('./chunk-DSDE2UL5.js');
7
+ var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
8
8
 
9
9
 
10
10
 
@@ -16,7 +16,7 @@ var _chunkDSDE2UL5js = require('./chunk-DSDE2UL5.js');
16
16
  var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
17
17
 
18
18
 
19
- var _chunkIVAHNQZPjs = require('./chunk-IVAHNQZP.js');
19
+ var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
20
20
 
21
21
  // src/base/base-generator.ts
22
22
  var withRunGenerator = (name, generatorFn, generatorOptions = {
@@ -29,14 +29,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
29
29
  _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
30
30
 
31
31
  `, config);
32
- const workspaceRoot = _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, );
32
+ const workspaceRoot = _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, );
33
33
  if (!generatorOptions.skipReadingConfig) {
34
34
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
35
35
  `Loading the Storm Config from environment variables and storm.config.js file...
36
36
  - workspaceRoot: ${workspaceRoot}`,
37
37
  config
38
38
  );
39
- config = await _chunkDSDE2UL5js.getConfig.call(void 0, workspaceRoot);
39
+ config = await _chunk4ROGNJIPjs.getConfig.call(void 0, workspaceRoot);
40
40
  }
41
41
  if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
42
42
  _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
@@ -50,10 +50,10 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
50
50
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
51
51
  config
52
52
  );
53
- const tokenized = await _chunkLA2KY2TQjs.applyWorkspaceTokens.call(void 0,
53
+ const tokenized = await _chunkML2VHRB6js.applyWorkspaceTokens.call(void 0,
54
54
  options,
55
55
  { workspaceRoot: tree.root, config },
56
- _chunkLA2KY2TQjs.applyWorkspaceBaseTokens
56
+ _chunkML2VHRB6js.applyWorkspaceBaseTokens
57
57
  );
58
58
  if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
59
59
  _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
3
+ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
4
4
 
5
5
  // ../config-tools/src/utilities/find-up.ts
6
6
  var _fs = require('fs');
@@ -71,11 +71,11 @@ var rootDirectories = [
71
71
  ];
72
72
  function findWorkspaceRootSafe(pathInsideMonorepo) {
73
73
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
74
- return _chunkG2L3EEEOjs.correctPaths.call(void 0,
74
+ return _chunkCQDBLKPFjs.correctPaths.call(void 0,
75
75
  _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
76
76
  );
77
77
  }
78
- return _chunkG2L3EEEOjs.correctPaths.call(void 0,
78
+ return _chunkCQDBLKPFjs.correctPaths.call(void 0,
79
79
  findFolderUp(
80
80
  _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
81
81
  rootFiles,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-F66XEAID.mjs";
8
8
  import {
9
9
  joinPaths
10
- } from "./chunk-C26A6BXG.mjs";
10
+ } from "./chunk-TBW5MCN6.mjs";
11
11
 
12
12
  // src/base/typescript-library-generator.ts
13
13
  import {
@@ -0,0 +1,124 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
4
+
5
+
6
+ var _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
13
+
14
+ // src/executors/napi/executor.ts
15
+ var _jiti = require('jiti');
16
+ var _fileutils = require('nx/src/utils/fileutils');
17
+ async function napiExecutor(options, context, config) {
18
+ const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
19
+ fsCache: config.skipCache ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
20
+ config.workspaceRoot,
21
+ config.directories.cache || "node_modules/.cache/storm",
22
+ "jiti"
23
+ ),
24
+ interopDefault: true
25
+ });
26
+ const { NapiCli } = await jiti.import(
27
+ jiti.esmResolve("@napi-rs/cli")
28
+ );
29
+ if (!_optionalChain([context, 'access', _ => _.projectGraph, 'optionalAccess', _2 => _2.nodes, 'access', _3 => _3[_nullishCoalesce(context.projectName, () => ( ""))]])) {
30
+ throw new Error(
31
+ "The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
32
+ );
33
+ }
34
+ const projectRoot = _optionalChain([context, 'access', _4 => _4.projectGraph, 'optionalAccess', _5 => _5.nodes, 'access', _6 => _6[_nullishCoalesce(context.projectName, () => ( ""))], 'access', _7 => _7.data, 'access', _8 => _8.root]);
35
+ const packageJson = _chunkCQDBLKPFjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
36
+ if (!_fileutils.fileExists.call(void 0, packageJson)) {
37
+ throw new Error(`Could not find package.json at ${packageJson}`);
38
+ }
39
+ const napi = new NapiCli();
40
+ const normalizedOptions = { ...options };
41
+ const metadata = _chunkD2PV33E5js.cargoMetadata.call(void 0, );
42
+ normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _9 => _9.target_directory]) || _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
43
+ normalizedOptions.outputDir = options.outputPath;
44
+ normalizedOptions.packageJsonPath = options.packageJsonPath || packageJson;
45
+ if (options.cwd) {
46
+ normalizedOptions.cwd = _chunkCQDBLKPFjs.correctPaths.call(void 0, options.cwd);
47
+ } else {
48
+ normalizedOptions.cwd = _chunkCQDBLKPFjs.correctPaths.call(void 0, projectRoot);
49
+ const absoluteProjectRoot = _chunkCQDBLKPFjs.joinPaths.call(void 0,
50
+ config.workspaceRoot,
51
+ projectRoot || "."
52
+ );
53
+ if (normalizedOptions.outputDir) {
54
+ normalizedOptions.outputDir = _chunkCQDBLKPFjs.relative.call(void 0,
55
+ absoluteProjectRoot,
56
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
57
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
58
+ )
59
+ );
60
+ }
61
+ if (normalizedOptions.packageJsonPath) {
62
+ normalizedOptions.packageJsonPath = _chunkCQDBLKPFjs.relative.call(void 0,
63
+ absoluteProjectRoot,
64
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
65
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
66
+ )
67
+ );
68
+ }
69
+ if (normalizedOptions.targetDir) {
70
+ normalizedOptions.targetDir = _chunkCQDBLKPFjs.relative.call(void 0,
71
+ absoluteProjectRoot,
72
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
73
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.targetDir) ? normalizedOptions.targetDir : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.targetDir)
74
+ )
75
+ );
76
+ }
77
+ if (normalizedOptions.configPath) {
78
+ normalizedOptions.configPath = _chunkCQDBLKPFjs.relative.call(void 0,
79
+ absoluteProjectRoot,
80
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
81
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
82
+ )
83
+ );
84
+ }
85
+ if (normalizedOptions.manifestPath) {
86
+ normalizedOptions.manifestPath = _chunkCQDBLKPFjs.relative.call(void 0,
87
+ absoluteProjectRoot,
88
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
89
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
90
+ )
91
+ );
92
+ }
93
+ }
94
+ if (process.env.VERCEL) {
95
+ return { success: true };
96
+ }
97
+ const { task } = await napi.build(normalizedOptions);
98
+ return { success: true, terminalOutput: await task };
99
+ }
100
+ var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
101
+ "Napi - Build Bindings",
102
+ napiExecutor,
103
+ {
104
+ skipReadingConfig: false,
105
+ hooks: {
106
+ applyDefaultOptions: (options) => {
107
+ options.outputPath ??= "{sourceRoot}";
108
+ options.toolchain ??= "stable";
109
+ options.dtsCache ??= true;
110
+ options.platform ??= true;
111
+ options.constEnum ??= false;
112
+ options.verbose ??= false;
113
+ options.jsBinding ??= "binding.js";
114
+ options.dts ??= "binding.d.ts";
115
+ return options;
116
+ }
117
+ }
118
+ }
119
+ );
120
+
121
+
122
+
123
+
124
+ exports.napiExecutor = napiExecutor; exports.executor_default = executor_default;
@@ -8,11 +8,11 @@
8
8
  var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
9
9
 
10
10
 
11
- var _chunkIVAHNQZPjs = require('./chunk-IVAHNQZP.js');
11
+ var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
15
+ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
16
16
 
17
17
  // ../config/src/schema.ts
18
18
  var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
@@ -626,10 +626,10 @@ async function getPackageJsonConfig(root) {
626
626
  let name = void 0;
627
627
  let namespace = void 0;
628
628
  let repository = void 0;
629
- const workspaceRoot = _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, root);
629
+ const workspaceRoot = _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, root);
630
630
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
631
631
  const file = await _promises.readFile.call(void 0,
632
- _chunkG2L3EEEOjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
632
+ _chunkCQDBLKPFjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
633
633
  "utf8"
634
634
  );
635
635
  if (file) {
@@ -704,7 +704,7 @@ function applyDefaultConfig(config) {
704
704
 
705
705
  // ../config-tools/src/config-file/get-config-file.ts
706
706
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
707
- const workspacePath = filePath || _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, filePath);
707
+ const workspacePath = filePath || _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, filePath);
708
708
  const configs = await Promise.all([
709
709
  _c12.loadConfig.call(void 0, {
710
710
  cwd: workspacePath,
@@ -713,7 +713,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
713
713
  envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
714
714
  jitiOptions: {
715
715
  debug: false,
716
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkG2L3EEEOjs.joinPaths.call(void 0,
716
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
717
717
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
718
718
  "jiti"
719
719
  )
@@ -727,7 +727,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
727
727
  envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
728
728
  jitiOptions: {
729
729
  debug: false,
730
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkG2L3EEEOjs.joinPaths.call(void 0,
730
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
731
731
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
732
732
  "jiti"
733
733
  )
@@ -739,7 +739,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
739
739
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
740
740
  };
741
741
  var getConfigFile = async (filePath, additionalFileNames = []) => {
742
- const workspacePath = filePath ? filePath : _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, filePath);
742
+ const workspacePath = filePath ? filePath : _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, filePath);
743
743
  const result = await getConfigFileByName("storm-workspace", workspacePath);
744
744
  let config = result.config;
745
745
  const configFile = result.configFile;
@@ -840,15 +840,15 @@ var getConfigEnv = () => {
840
840
  support: process.env[`${prefix}SUPPORT`] || void 0,
841
841
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
842
842
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
843
- configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
844
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
843
+ configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
844
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
845
845
  directories: {
846
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
847
- data: process.env[`${prefix}DATA_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
848
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
849
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
850
- log: process.env[`${prefix}LOG_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
851
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
846
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
847
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
848
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
849
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
850
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
851
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkCQDBLKPFjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
852
852
  },
853
853
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
854
854
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -1138,42 +1138,42 @@ var setConfigEnv = (config) => {
1138
1138
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
1139
1139
  }
1140
1140
  if (config.configFile) {
1141
- process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
1141
+ process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkCQDBLKPFjs.correctPaths.call(void 0,
1142
1142
  config.configFile
1143
1143
  );
1144
1144
  }
1145
1145
  if (config.workspaceRoot) {
1146
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.workspaceRoot);
1147
- process.env.NX_WORKSPACE_ROOT = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.workspaceRoot);
1148
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.workspaceRoot);
1146
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkCQDBLKPFjs.correctPaths.call(void 0, config.workspaceRoot);
1147
+ process.env.NX_WORKSPACE_ROOT = _chunkCQDBLKPFjs.correctPaths.call(void 0, config.workspaceRoot);
1148
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkCQDBLKPFjs.correctPaths.call(void 0, config.workspaceRoot);
1149
1149
  }
1150
1150
  if (config.directories) {
1151
1151
  if (!config.skipCache && config.directories.cache) {
1152
- process.env[`${prefix}CACHE_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
1152
+ process.env[`${prefix}CACHE_DIR`] = _chunkCQDBLKPFjs.correctPaths.call(void 0,
1153
1153
  config.directories.cache
1154
1154
  );
1155
1155
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1156
1156
  }
1157
1157
  if (config.directories.data) {
1158
- process.env[`${prefix}DATA_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.directories.data);
1158
+ process.env[`${prefix}DATA_DIR`] = _chunkCQDBLKPFjs.correctPaths.call(void 0, config.directories.data);
1159
1159
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1160
1160
  }
1161
1161
  if (config.directories.config) {
1162
- process.env[`${prefix}CONFIG_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
1162
+ process.env[`${prefix}CONFIG_DIR`] = _chunkCQDBLKPFjs.correctPaths.call(void 0,
1163
1163
  config.directories.config
1164
1164
  );
1165
1165
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1166
1166
  }
1167
1167
  if (config.directories.temp) {
1168
- process.env[`${prefix}TEMP_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.directories.temp);
1168
+ process.env[`${prefix}TEMP_DIR`] = _chunkCQDBLKPFjs.correctPaths.call(void 0, config.directories.temp);
1169
1169
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1170
1170
  }
1171
1171
  if (config.directories.log) {
1172
- process.env[`${prefix}LOG_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.directories.log);
1172
+ process.env[`${prefix}LOG_DIR`] = _chunkCQDBLKPFjs.correctPaths.call(void 0, config.directories.log);
1173
1173
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1174
1174
  }
1175
1175
  if (config.directories.build) {
1176
- process.env[`${prefix}BUILD_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
1176
+ process.env[`${prefix}BUILD_DIR`] = _chunkCQDBLKPFjs.correctPaths.call(void 0,
1177
1177
  config.directories.build
1178
1178
  );
1179
1179
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -1367,7 +1367,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1367
1367
  if (!_optionalChain([_static_cache, 'optionalAccess', _33 => _33.data]) || !_optionalChain([_static_cache, 'optionalAccess', _34 => _34.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1368
1368
  let _workspaceRoot = workspaceRoot;
1369
1369
  if (!_workspaceRoot) {
1370
- _workspaceRoot = _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, );
1370
+ _workspaceRoot = _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, );
1371
1371
  }
1372
1372
  const configEnv = getConfigEnv();
1373
1373
  const configFile = await getConfigFile(_workspaceRoot);
@@ -1389,7 +1389,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1389
1389
  defaultConfig
1390
1390
  );
1391
1391
  if (!configInput.variant) {
1392
- configInput.variant = _fs.existsSync.call(void 0, _chunkG2L3EEEOjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkG2L3EEEOjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkG2L3EEEOjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkG2L3EEEOjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1392
+ configInput.variant = _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1393
1393
  }
1394
1394
  try {
1395
1395
  result = applyDefaultConfig(
@@ -1461,7 +1461,7 @@ function getConfig(workspaceRoot, skipLogs = false) {
1461
1461
  function getWorkspaceConfig(skipLogs = true, options = {}) {
1462
1462
  let workspaceRoot = options.workspaceRoot;
1463
1463
  if (!workspaceRoot) {
1464
- workspaceRoot = _chunkIVAHNQZPjs.findWorkspaceRoot.call(void 0, options.cwd);
1464
+ workspaceRoot = _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, options.cwd);
1465
1465
  }
1466
1466
  return getConfig(workspaceRoot, skipLogs);
1467
1467
  }