@storm-software/esbuild 0.34.1 → 0.34.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 (91) hide show
  1. package/README.md +1 -1
  2. package/bin/esbuild.cjs +1 -1
  3. package/dist/build.cjs +15 -15
  4. package/dist/build.d.cts +1 -1
  5. package/dist/build.d.ts +1 -1
  6. package/dist/build.js +14 -14
  7. package/dist/{chunk-WRBUO7H6.cjs → chunk-27VOV3G4.cjs} +2 -2
  8. package/dist/{chunk-GWG4HOQ6.js → chunk-2TG2H4XL.js} +1 -1
  9. package/dist/{chunk-XEGYFRBF.js → chunk-2X5ZMEAN.js} +2 -2
  10. package/dist/{chunk-35YNFZCF.js → chunk-3PF5YMWK.js} +2 -2
  11. package/dist/{chunk-S2P6KHZV.js → chunk-3QHFCKSI.js} +3 -3
  12. package/dist/{chunk-RGWII6NP.js → chunk-5RVOO3YF.js} +2 -2
  13. package/dist/{chunk-LYDEMC26.js → chunk-AZON722Q.js} +1 -1
  14. package/dist/chunk-B4CUDMY2.cjs +39 -0
  15. package/dist/{chunk-MWGFCZF4.cjs → chunk-BNPCRQK4.cjs} +6 -6
  16. package/dist/{chunk-K6QIYIIY.cjs → chunk-BOFHC4OE.cjs} +4 -4
  17. package/dist/{chunk-IO2TXOKO.js → chunk-BWSIRV3D.js} +2 -2
  18. package/dist/chunk-CCEWV2BR.js +39 -0
  19. package/dist/{chunk-ETTFFUNG.cjs → chunk-CGMLIVTB.cjs} +12 -12
  20. package/dist/chunk-DPRINYB6.js +2939 -0
  21. package/dist/{chunk-Y3LXNK5C.cjs → chunk-GJHRTQAS.cjs} +36 -36
  22. package/dist/{chunk-EZGTDCYM.cjs → chunk-ILJQ4NCE.cjs} +4 -4
  23. package/dist/chunk-M3AOQRGN.cjs +2939 -0
  24. package/dist/{chunk-IMVMVEQS.cjs → chunk-N62ZR7UV.cjs} +17 -17
  25. package/dist/{chunk-4TQE46SC.cjs → chunk-QKJ7KLDL.cjs} +6 -6
  26. package/dist/{chunk-GQCYZOAM.cjs → chunk-RLQJRD62.cjs} +2 -2
  27. package/dist/{chunk-RTDGFM3J.js → chunk-SKJRUPDP.js} +10 -10
  28. package/dist/{chunk-IX6DNVUR.js → chunk-STCE44IS.js} +2 -2
  29. package/dist/{chunk-DZPLKD6O.cjs → chunk-TDBBRZTC.cjs} +98 -98
  30. package/dist/{chunk-Y4XWI6JJ.cjs → chunk-TH2QFJHI.cjs} +6 -6
  31. package/dist/{chunk-T5272PC2.js → chunk-UYE6LM4C.js} +1 -1
  32. package/dist/{chunk-XITTOHOG.cjs → chunk-VPTKC3UK.cjs} +6 -6
  33. package/dist/{chunk-2IGRKQGI.js → chunk-VQHKIS7J.js} +2 -2
  34. package/dist/{chunk-HXMVEX3P.js → chunk-XLUZXKDY.js} +1 -1
  35. package/dist/{chunk-S6M44SSZ.cjs → chunk-Y5SBBYX3.cjs} +3 -3
  36. package/dist/{chunk-YMTDVMD6.js → chunk-Y7JBB452.js} +1 -1
  37. package/dist/clean.cjs +5 -5
  38. package/dist/clean.d.cts +1 -1
  39. package/dist/clean.d.ts +1 -1
  40. package/dist/clean.js +4 -4
  41. package/dist/config.cjs +12 -12
  42. package/dist/config.d.cts +1 -1
  43. package/dist/config.d.ts +1 -1
  44. package/dist/config.js +11 -11
  45. package/dist/index.cjs +16 -16
  46. package/dist/index.d.cts +1 -1
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js +15 -15
  49. package/dist/plugins/deps-check.cjs +5 -5
  50. package/dist/plugins/deps-check.js +4 -4
  51. package/dist/plugins/esm-split-code-to-cjs.cjs +3 -3
  52. package/dist/plugins/esm-split-code-to-cjs.d.cts +1 -1
  53. package/dist/plugins/esm-split-code-to-cjs.d.ts +1 -1
  54. package/dist/plugins/esm-split-code-to-cjs.js +2 -2
  55. package/dist/plugins/fix-imports.cjs +3 -3
  56. package/dist/plugins/fix-imports.d.cts +1 -1
  57. package/dist/plugins/fix-imports.d.ts +1 -1
  58. package/dist/plugins/fix-imports.js +2 -2
  59. package/dist/plugins/native-node-module.cjs +3 -3
  60. package/dist/plugins/native-node-module.d.cts +1 -1
  61. package/dist/plugins/native-node-module.d.ts +1 -1
  62. package/dist/plugins/native-node-module.js +2 -2
  63. package/dist/plugins/node-protocol.cjs +3 -3
  64. package/dist/plugins/node-protocol.d.cts +1 -1
  65. package/dist/plugins/node-protocol.d.ts +1 -1
  66. package/dist/plugins/node-protocol.js +2 -2
  67. package/dist/plugins/on-error.cjs +5 -5
  68. package/dist/plugins/on-error.d.cts +1 -1
  69. package/dist/plugins/on-error.d.ts +1 -1
  70. package/dist/plugins/on-error.js +4 -4
  71. package/dist/plugins/resolve-paths.cjs +4 -4
  72. package/dist/plugins/resolve-paths.d.cts +1 -1
  73. package/dist/plugins/resolve-paths.d.ts +1 -1
  74. package/dist/plugins/resolve-paths.js +3 -3
  75. package/dist/plugins/tsc.cjs +5 -5
  76. package/dist/plugins/tsc.d.cts +1 -1
  77. package/dist/plugins/tsc.d.ts +1 -1
  78. package/dist/plugins/tsc.js +4 -4
  79. package/dist/tsc.cjs +5 -5
  80. package/dist/tsc.d.cts +1 -1
  81. package/dist/tsc.d.ts +1 -1
  82. package/dist/tsc.js +4 -4
  83. package/dist/{types-DwxFThZu.d.ts → types-B4jbZA4j.d.cts} +14 -14
  84. package/dist/{types-DwxFThZu.d.cts → types-B4jbZA4j.d.ts} +14 -14
  85. package/dist/types.d.cts +1 -1
  86. package/dist/types.d.ts +1 -1
  87. package/package.json +1 -1
  88. package/dist/chunk-3GQAWCBQ.js +0 -13
  89. package/dist/chunk-7A6JPBG7.js +0 -421
  90. package/dist/chunk-BGYQAVKQ.cjs +0 -13
  91. package/dist/chunk-RVMQBDDK.cjs +0 -421
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-0.34.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)
24
+ [![Version](https://img.shields.io/badge/version-0.34.1-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 -->
package/bin/esbuild.cjs CHANGED
@@ -228,6 +228,7 @@ async function resolveContext(userOptions) {
228
228
  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.");
229
229
  }
230
230
  const options = (0, import_defu.default)(userOptions, DEFAULT_BUILD_OPTIONS);
231
+ options.name ??= projectName;
231
232
  const packageJsonPath = (0, import_correct_paths.joinPaths)(workspaceRoot.dir, options.projectRoot, "package.json");
232
233
  if (!(0, import_node_fs.existsSync)(packageJsonPath)) {
233
234
  throw new Error("Cannot find package.json configuration");
@@ -235,7 +236,6 @@ async function resolveContext(userOptions) {
235
236
  const env = (0, import_build_tools2.getEnv)("esbuild", options);
236
237
  const define = (0, import_defu.default)(options.define ?? {}, env ?? {});
237
238
  const resolvedOptions = {
238
- name: projectName,
239
239
  ...options,
240
240
  tsconfig: (0, import_correct_paths.joinPaths)(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
241
241
  metafile: userOptions.mode === "development",
package/dist/build.cjs CHANGED
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkRVMQBDDKcjs = require('./chunk-RVMQBDDK.cjs');
5
- require('./chunk-Y4XWI6JJ.cjs');
6
- require('./chunk-DZPLKD6O.cjs');
7
- require('./chunk-EZGTDCYM.cjs');
8
- require('./chunk-S6M44SSZ.cjs');
9
- require('./chunk-WRBUO7H6.cjs');
10
- require('./chunk-K6QIYIIY.cjs');
11
- require('./chunk-4TQE46SC.cjs');
12
- require('./chunk-IMVMVEQS.cjs');
13
- require('./chunk-MWGFCZF4.cjs');
14
- require('./chunk-Y3LXNK5C.cjs');
15
- require('./chunk-XITTOHOG.cjs');
16
- require('./chunk-GQCYZOAM.cjs');
17
- require('./chunk-BGYQAVKQ.cjs');
4
+ var _chunkM3AOQRGNcjs = require('./chunk-M3AOQRGN.cjs');
5
+ require('./chunk-TH2QFJHI.cjs');
6
+ require('./chunk-TDBBRZTC.cjs');
7
+ require('./chunk-ILJQ4NCE.cjs');
8
+ require('./chunk-Y5SBBYX3.cjs');
9
+ require('./chunk-27VOV3G4.cjs');
10
+ require('./chunk-BOFHC4OE.cjs');
11
+ require('./chunk-QKJ7KLDL.cjs');
12
+ require('./chunk-N62ZR7UV.cjs');
13
+ require('./chunk-BNPCRQK4.cjs');
14
+ require('./chunk-GJHRTQAS.cjs');
15
+ require('./chunk-VPTKC3UK.cjs');
16
+ require('./chunk-RLQJRD62.cjs');
17
+ require('./chunk-B4CUDMY2.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkRVMQBDDKcjs.build; exports.watch = _chunkRVMQBDDKcjs.watch;
21
+ exports.build = _chunkM3AOQRGNcjs.build; exports.watch = _chunkM3AOQRGNcjs.watch;
package/dist/build.d.cts CHANGED
@@ -3,7 +3,7 @@ import { BuildContext } from 'esbuild';
3
3
  import { ESBuildOptions } from './types.cjs';
4
4
  import '@nx/devkit';
5
5
  import '@storm-software/build-tools';
6
- import './types-DwxFThZu.cjs';
6
+ import './types-B4jbZA4j.cjs';
7
7
  import 'zod';
8
8
  import 'tsup';
9
9
 
package/dist/build.d.ts CHANGED
@@ -3,7 +3,7 @@ import { BuildContext } from 'esbuild';
3
3
  import { ESBuildOptions } from './types.js';
4
4
  import '@nx/devkit';
5
5
  import '@storm-software/build-tools';
6
- import './types-DwxFThZu.js';
6
+ import './types-B4jbZA4j.js';
7
7
  import 'zod';
8
8
  import 'tsup';
9
9
 
package/dist/build.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  build,
3
3
  watch
4
- } from "./chunk-7A6JPBG7.js";
5
- import "./chunk-35YNFZCF.js";
6
- import "./chunk-RTDGFM3J.js";
7
- import "./chunk-GWG4HOQ6.js";
8
- import "./chunk-T5272PC2.js";
9
- import "./chunk-LYDEMC26.js";
10
- import "./chunk-IO2TXOKO.js";
11
- import "./chunk-RGWII6NP.js";
12
- import "./chunk-S2P6KHZV.js";
13
- import "./chunk-IX6DNVUR.js";
14
- import "./chunk-2IGRKQGI.js";
15
- import "./chunk-YMTDVMD6.js";
16
- import "./chunk-HXMVEX3P.js";
17
- import "./chunk-3GQAWCBQ.js";
4
+ } from "./chunk-DPRINYB6.js";
5
+ import "./chunk-3PF5YMWK.js";
6
+ import "./chunk-SKJRUPDP.js";
7
+ import "./chunk-2TG2H4XL.js";
8
+ import "./chunk-UYE6LM4C.js";
9
+ import "./chunk-AZON722Q.js";
10
+ import "./chunk-BWSIRV3D.js";
11
+ import "./chunk-5RVOO3YF.js";
12
+ import "./chunk-3QHFCKSI.js";
13
+ import "./chunk-STCE44IS.js";
14
+ import "./chunk-VQHKIS7J.js";
15
+ import "./chunk-Y7JBB452.js";
16
+ import "./chunk-XLUZXKDY.js";
17
+ import "./chunk-CCEWV2BR.js";
18
18
  export {
19
19
  build,
20
20
  watch
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
3
+ var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
4
4
 
5
5
  // src/plugins/node-protocol.ts
6
- var nodeProtocolPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options, resolvedOptions) => {
6
+ var nodeProtocolPlugin = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (options, resolvedOptions) => {
7
7
  const nodeProtocol = "node:";
8
8
  return {
9
9
  name: "node-protocol-plugin",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __name,
3
3
  __require
4
- } from "./chunk-3GQAWCBQ.js";
4
+ } from "./chunk-CCEWV2BR.js";
5
5
 
6
6
  // src/plugins/fix-imports.ts
7
7
  var fixImportsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-2IGRKQGI.js";
3
+ } from "./chunk-VQHKIS7J.js";
4
4
  import {
5
5
  __name
6
- } from "./chunk-3GQAWCBQ.js";
6
+ } from "./chunk-CCEWV2BR.js";
7
7
 
8
8
  // src/tsc.ts
9
9
  import { loadTsConfig } from "bundle-require";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-2IGRKQGI.js";
4
+ } from "./chunk-VQHKIS7J.js";
5
5
  import {
6
6
  __name
7
- } from "./chunk-3GQAWCBQ.js";
7
+ } from "./chunk-CCEWV2BR.js";
8
8
 
9
9
  // src/clean.ts
10
10
  import { rm } from "node:fs/promises";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-2IGRKQGI.js";
3
+ } from "./chunk-VQHKIS7J.js";
4
4
  import {
5
5
  joinPaths
6
- } from "./chunk-YMTDVMD6.js";
6
+ } from "./chunk-Y7JBB452.js";
7
7
  import {
8
8
  __name,
9
9
  __require
10
- } from "./chunk-3GQAWCBQ.js";
10
+ } from "./chunk-CCEWV2BR.js";
11
11
 
12
12
  // src/plugins/tsc.ts
13
13
  import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  joinPaths
3
- } from "./chunk-YMTDVMD6.js";
3
+ } from "./chunk-Y7JBB452.js";
4
4
  import {
5
5
  __name,
6
6
  __require
7
- } from "./chunk-3GQAWCBQ.js";
7
+ } from "./chunk-CCEWV2BR.js";
8
8
 
9
9
  // src/plugins/resolve-paths.ts
10
10
  import path from "node:path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-3GQAWCBQ.js";
3
+ } from "./chunk-CCEWV2BR.js";
4
4
 
5
5
  // src/plugins/node-protocol.ts
6
6
  var nodeProtocolPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
@@ -0,0 +1,39 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
+ // If the importer is in node compatibility mode or this is not an ESM
27
+ // file that has been converted to a CommonJS file using a Babel-
28
+ // compatible transform (i.e. "__esModule" has not been set), then set
29
+ // "default" to the CommonJS "module.exports" for node compatibility.
30
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
+ mod
32
+ ));
33
+
34
+
35
+
36
+
37
+
38
+
39
+ exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM;
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkY3LXNK5Ccjs = require('./chunk-Y3LXNK5C.cjs');
4
+ var _chunkGJHRTQAScjs = require('./chunk-GJHRTQAS.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
8
+ var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
9
9
 
10
10
  // src/plugins/deps-check.ts
11
11
  var _module = require('module');
@@ -39,11 +39,11 @@ var missingIgnore = [
39
39
  "@prisma/client",
40
40
  "ts-toolbelt"
41
41
  ];
42
- var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bundle) => ({
42
+ var depsCheckPlugin = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (bundle) => ({
43
43
  name: "storm:deps-check",
44
44
  setup(build) {
45
45
  const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
46
- const pkgContents = _chunkBGYQAVKQcjs.__require.call(void 0, pkgJsonPath);
46
+ const pkgContents = _chunkB4CUDMY2cjs.__require.call(void 0, pkgJsonPath);
47
47
  const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
48
48
  const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
49
49
  const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
@@ -86,8 +86,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bun
86
86
  const filteredMissingDeps = missingDependencies.filter((dep) => {
87
87
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
88
88
  });
89
- _chunkY3LXNK5Ccjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
90
- _chunkY3LXNK5Ccjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
89
+ _chunkGJHRTQAScjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
90
+ _chunkGJHRTQAScjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
91
91
  if (filteredMissingDeps.length > 0) {
92
92
  throw new Error(`Missing dependencies detected - please install them:
93
93
  ${JSON.stringify(filteredMissingDeps)}
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkY3LXNK5Ccjs = require('./chunk-Y3LXNK5C.cjs');
3
+ var _chunkGJHRTQAScjs = require('./chunk-GJHRTQAS.cjs');
4
4
 
5
5
 
6
- var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
6
+ var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
7
7
 
8
8
  // src/plugins/on-error.ts
9
- var onErrorPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options, resolvedOptions) => ({
9
+ var onErrorPlugin = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (options, resolvedOptions) => ({
10
10
  name: "storm:on-error",
11
11
  setup(build) {
12
12
  build.onEnd((result) => {
13
13
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
14
- _chunkY3LXNK5Ccjs.writeError.call(void 0, `The following errors occurred during the build:
14
+ _chunkGJHRTQAScjs.writeError.call(void 0, `The following errors occurred during the build:
15
15
  ${result.errors.map((error) => error.text).join("\n")}
16
16
 
17
17
  `);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-2IGRKQGI.js";
3
+ } from "./chunk-VQHKIS7J.js";
4
4
  import {
5
5
  __name
6
- } from "./chunk-3GQAWCBQ.js";
6
+ } from "./chunk-CCEWV2BR.js";
7
7
 
8
8
  // src/plugins/on-error.ts
9
9
  var onErrorPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
+ // If the importer is in node compatibility mode or this is not an ESM
27
+ // file that has been converted to a CommonJS file using a Babel-
28
+ // compatible transform (i.e. "__esModule" has not been set), then set
29
+ // "default" to the CommonJS "module.exports" for node compatibility.
30
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
+ mod
32
+ ));
33
+
34
+ export {
35
+ __name,
36
+ __require,
37
+ __commonJS,
38
+ __toESM
39
+ };
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; } var _class;
2
2
 
3
- var _chunkY3LXNK5Ccjs = require('./chunk-Y3LXNK5C.cjs');
3
+ var _chunkGJHRTQAScjs = require('./chunk-GJHRTQAS.cjs');
4
4
 
5
5
 
6
- var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
6
+ var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
7
7
 
8
8
  // src/tsc.ts
9
9
  var _bundlerequire = require('bundle-require');
@@ -24,7 +24,7 @@ function ensureTempDeclarationDir(workspaceConfig) {
24
24
  _fs.writeFileSync.call(void 0, gitIgnorePath, "**/*\n");
25
25
  return dirPath;
26
26
  }
27
- _chunkBGYQAVKQcjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
27
+ _chunkB4CUDMY2cjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
28
28
  function slash(path) {
29
29
  const isExtendedLengthPath = path.startsWith("\\\\?\\");
30
30
  if (isExtendedLengthPath) {
@@ -32,17 +32,17 @@ function slash(path) {
32
32
  }
33
33
  return path.replace(/\\/g, "/");
34
34
  }
35
- _chunkBGYQAVKQcjs.__name.call(void 0, slash, "slash");
35
+ _chunkB4CUDMY2cjs.__name.call(void 0, slash, "slash");
36
36
  function toAbsolutePath(workspaceConfig, p, cwd) {
37
37
  if (_path.isAbsolute.call(void 0, p)) {
38
38
  return p;
39
39
  }
40
40
  return slash(_path.normalize.call(void 0, _path.join.call(void 0, cwd || workspaceConfig.workspaceRoot, p)));
41
41
  }
42
- _chunkBGYQAVKQcjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
42
+ _chunkB4CUDMY2cjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
43
43
  var AliasPool = (_class = class AliasPool2 {constructor() { _class.prototype.__init.call(this); }
44
44
  static {
45
- _chunkBGYQAVKQcjs.__name.call(void 0, this, "AliasPool");
45
+ _chunkB4CUDMY2cjs.__name.call(void 0, this, "AliasPool");
46
46
  }
47
47
  __init() {this.seen = /* @__PURE__ */ new Set()}
48
48
  assign(name) {
@@ -92,13 +92,13 @@ function getExports(workspaceConfig, program, fileMapping) {
92
92
  });
93
93
  return exports;
94
94
  }
95
- _chunkBGYQAVKQcjs.__name.call(void 0, extractExports, "extractExports");
95
+ _chunkB4CUDMY2cjs.__name.call(void 0, extractExports, "extractExports");
96
96
  return program.getRootFileNames().flatMap(extractExports);
97
97
  }
98
- _chunkBGYQAVKQcjs.__name.call(void 0, getExports, "getExports");
98
+ _chunkB4CUDMY2cjs.__name.call(void 0, getExports, "getExports");
99
99
  function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
100
100
  const fileMapping = /* @__PURE__ */ new Map();
101
- const writeFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
101
+ const writeFile = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
102
102
  const sourceFile = _optionalChain([sourceFiles, 'optionalAccess', _ => _[0]]);
103
103
  const sourceFileName = _optionalChain([sourceFile, 'optionalAccess', _2 => _2.fileName]);
104
104
  if (sourceFileName && !fileName.endsWith(".map")) {
@@ -126,14 +126,14 @@ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, c
126
126
  });
127
127
  const diagnosticMessage = diagnosticMessages.join("\n");
128
128
  if (diagnosticMessage) {
129
- _chunkY3LXNK5Ccjs.writeError.call(void 0, `Failed to emit declaration files.
129
+ _chunkGJHRTQAScjs.writeError.call(void 0, `Failed to emit declaration files.
130
130
 
131
131
  ${diagnosticMessage}`, workspaceConfig);
132
132
  throw new Error("TypeScript compilation failed");
133
133
  }
134
134
  return fileMapping;
135
135
  }
136
- _chunkBGYQAVKQcjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
136
+ _chunkB4CUDMY2cjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
137
137
  function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
138
138
  const rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, workspaceConfig.workspaceRoot, tsconfig);
139
139
  if (!rawTsconfig) {
@@ -156,7 +156,7 @@ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true
156
156
  const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
157
157
  return getExports(workspaceConfig, program, fileMapping);
158
158
  }
159
- _chunkBGYQAVKQcjs.__name.call(void 0, emitDts, "emitDts");
159
+ _chunkB4CUDMY2cjs.__name.call(void 0, emitDts, "emitDts");
160
160
 
161
161
 
162
162