@storm-software/esbuild 0.21.5 → 0.21.7

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 (35) hide show
  1. package/README.md +1 -1
  2. package/dist/plugins/deps-check.cjs +9 -0
  3. package/dist/plugins/deps-check.d.cts +8 -0
  4. package/dist/plugins/deps-check.d.ts +8 -0
  5. package/dist/plugins/deps-check.js +9 -0
  6. package/dist/plugins/esm-split-code-to-cjs.cjs +7 -0
  7. package/dist/plugins/esm-split-code-to-cjs.d.cts +14 -0
  8. package/dist/plugins/esm-split-code-to-cjs.d.ts +14 -0
  9. package/dist/plugins/esm-split-code-to-cjs.js +7 -0
  10. package/dist/plugins/fix-imports.cjs +7 -0
  11. package/dist/plugins/fix-imports.d.cts +13 -0
  12. package/dist/plugins/fix-imports.d.ts +13 -0
  13. package/dist/plugins/fix-imports.js +7 -0
  14. package/dist/plugins/native-node-module.cjs +7 -0
  15. package/dist/plugins/native-node-module.d.cts +10 -0
  16. package/dist/plugins/native-node-module.d.ts +10 -0
  17. package/dist/plugins/native-node-module.js +7 -0
  18. package/dist/plugins/node-protocol.cjs +7 -0
  19. package/dist/plugins/node-protocol.d.cts +14 -0
  20. package/dist/plugins/node-protocol.d.ts +14 -0
  21. package/dist/plugins/node-protocol.js +7 -0
  22. package/dist/plugins/on-error.cjs +9 -0
  23. package/dist/plugins/on-error.d.cts +13 -0
  24. package/dist/plugins/on-error.d.ts +13 -0
  25. package/dist/plugins/on-error.js +9 -0
  26. package/dist/plugins/resolve-paths.cjs +8 -0
  27. package/dist/plugins/resolve-paths.d.cts +16 -0
  28. package/dist/plugins/resolve-paths.d.ts +16 -0
  29. package/dist/plugins/resolve-paths.js +8 -0
  30. package/dist/plugins/tsc.cjs +9 -0
  31. package/dist/plugins/tsc.d.cts +13 -0
  32. package/dist/plugins/tsc.d.ts +13 -0
  33. package/dist/plugins/tsc.js +9 -0
  34. package/package.json +4 -4
  35. package/dist/esbuild.cjs +0 -1185
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.21.4-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.21.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGD4U35FZcjs = require('../chunk-GD4U35FZ.cjs');
4
+ require('../chunk-ZKT6GJKV.cjs');
5
+ require('../chunk-LVWQSCJM.cjs');
6
+ require('../chunk-BGYQAVKQ.cjs');
7
+
8
+
9
+ exports.depsCheckPlugin = _chunkGD4U35FZcjs.depsCheckPlugin;
@@ -0,0 +1,8 @@
1
+ import * as esbuild from 'esbuild';
2
+
3
+ /**
4
+ * Checks for unused and missing dependencies.
5
+ */
6
+ declare const depsCheckPlugin: (bundle?: boolean) => esbuild.Plugin;
7
+
8
+ export { depsCheckPlugin };
@@ -0,0 +1,8 @@
1
+ import * as esbuild from 'esbuild';
2
+
3
+ /**
4
+ * Checks for unused and missing dependencies.
5
+ */
6
+ declare const depsCheckPlugin: (bundle?: boolean) => esbuild.Plugin;
7
+
8
+ export { depsCheckPlugin };
@@ -0,0 +1,9 @@
1
+ import {
2
+ depsCheckPlugin
3
+ } from "../chunk-KJJEF47Z.js";
4
+ import "../chunk-JXPYSVZW.js";
5
+ import "../chunk-7MDMXJ5V.js";
6
+ import "../chunk-3GQAWCBQ.js";
7
+ export {
8
+ depsCheckPlugin
9
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkCGFDQ5AJcjs = require('../chunk-CGFDQ5AJ.cjs');
4
+ require('../chunk-BGYQAVKQ.cjs');
5
+
6
+
7
+ exports.esmSplitCodeToCjsPlugin = _chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin;
@@ -0,0 +1,14 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Code splitting only works in ESM at the moment, this plugin will convert the
10
+ * ESM code to CJS automatically after the build. Only works with `outdir` set.
11
+ */
12
+ declare const esmSplitCodeToCjsPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
13
+
14
+ export { esmSplitCodeToCjsPlugin };
@@ -0,0 +1,14 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Code splitting only works in ESM at the moment, this plugin will convert the
10
+ * ESM code to CJS automatically after the build. Only works with `outdir` set.
11
+ */
12
+ declare const esmSplitCodeToCjsPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
13
+
14
+ export { esmSplitCodeToCjsPlugin };
@@ -0,0 +1,7 @@
1
+ import {
2
+ esmSplitCodeToCjsPlugin
3
+ } from "../chunk-YNQ45EAM.js";
4
+ import "../chunk-3GQAWCBQ.js";
5
+ export {
6
+ esmSplitCodeToCjsPlugin
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkEZGTDCYMcjs = require('../chunk-EZGTDCYM.cjs');
4
+ require('../chunk-BGYQAVKQ.cjs');
5
+
6
+
7
+ exports.fixImportsPlugin = _chunkEZGTDCYMcjs.fixImportsPlugin;
@@ -0,0 +1,13 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * For dependencies that forgot to add them into their package.json.
10
+ */
11
+ declare const fixImportsPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
12
+
13
+ export { fixImportsPlugin };
@@ -0,0 +1,13 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * For dependencies that forgot to add them into their package.json.
10
+ */
11
+ declare const fixImportsPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
12
+
13
+ export { fixImportsPlugin };
@@ -0,0 +1,7 @@
1
+ import {
2
+ fixImportsPlugin
3
+ } from "../chunk-GWG4HOQ6.js";
4
+ import "../chunk-3GQAWCBQ.js";
5
+ export {
6
+ fixImportsPlugin
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkS6M44SSZcjs = require('../chunk-S6M44SSZ.cjs');
4
+ require('../chunk-BGYQAVKQ.cjs');
5
+
6
+
7
+ exports.nativeNodeModulesPlugin = _chunkS6M44SSZcjs.nativeNodeModulesPlugin;
@@ -0,0 +1,10 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ declare const nativeNodeModulesPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
9
+
10
+ export { nativeNodeModulesPlugin };
@@ -0,0 +1,10 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ declare const nativeNodeModulesPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
9
+
10
+ export { nativeNodeModulesPlugin };
@@ -0,0 +1,7 @@
1
+ import {
2
+ nativeNodeModulesPlugin
3
+ } from "../chunk-T5272PC2.js";
4
+ import "../chunk-3GQAWCBQ.js";
5
+ export {
6
+ nativeNodeModulesPlugin
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWRBUO7H6cjs = require('../chunk-WRBUO7H6.cjs');
4
+ require('../chunk-BGYQAVKQ.cjs');
5
+
6
+
7
+ exports.nodeProtocolPlugin = _chunkWRBUO7H6cjs.nodeProtocolPlugin;
@@ -0,0 +1,14 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * The node: protocol was added to require in Node v14.18.0
10
+ * https://nodejs.org/api/esm.html#node-imports
11
+ */
12
+ declare const nodeProtocolPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
13
+
14
+ export { nodeProtocolPlugin };
@@ -0,0 +1,14 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * The node: protocol was added to require in Node v14.18.0
10
+ * https://nodejs.org/api/esm.html#node-imports
11
+ */
12
+ declare const nodeProtocolPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
13
+
14
+ export { nodeProtocolPlugin };
@@ -0,0 +1,7 @@
1
+ import {
2
+ nodeProtocolPlugin
3
+ } from "../chunk-LYDEMC26.js";
4
+ import "../chunk-3GQAWCBQ.js";
5
+ export {
6
+ nodeProtocolPlugin
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGQTYEGCTcjs = require('../chunk-GQTYEGCT.cjs');
4
+ require('../chunk-ZKT6GJKV.cjs');
5
+ require('../chunk-LVWQSCJM.cjs');
6
+ require('../chunk-BGYQAVKQ.cjs');
7
+
8
+
9
+ exports.onErrorPlugin = _chunkGQTYEGCTcjs.onErrorPlugin;
@@ -0,0 +1,13 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Causes esbuild to exit immediately with an error code.
10
+ */
11
+ declare const onErrorPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
12
+
13
+ export { onErrorPlugin };
@@ -0,0 +1,13 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Causes esbuild to exit immediately with an error code.
10
+ */
11
+ declare const onErrorPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
12
+
13
+ export { onErrorPlugin };
@@ -0,0 +1,9 @@
1
+ import {
2
+ onErrorPlugin
3
+ } from "../chunk-W5YHMJLR.js";
4
+ import "../chunk-JXPYSVZW.js";
5
+ import "../chunk-7MDMXJ5V.js";
6
+ import "../chunk-3GQAWCBQ.js";
7
+ export {
8
+ onErrorPlugin
9
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkRMB62XELcjs = require('../chunk-RMB62XEL.cjs');
4
+ require('../chunk-LVWQSCJM.cjs');
5
+ require('../chunk-BGYQAVKQ.cjs');
6
+
7
+
8
+ exports.resolvePathsPlugin = _chunkRMB62XELcjs.resolvePathsPlugin;
@@ -0,0 +1,16 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Forces `esbuild` to always use the TS compiler paths, even when we are
10
+ * bundling a local dependency of a local dependency, ensuring maximum
11
+ * tree-shaking. Note: `esbuild` has some support for this, though it is limited
12
+ * in the amount of dependency nesting it supports.
13
+ */
14
+ declare const resolvePathsPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
15
+
16
+ export { resolvePathsPlugin };
@@ -0,0 +1,16 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Forces `esbuild` to always use the TS compiler paths, even when we are
10
+ * bundling a local dependency of a local dependency, ensuring maximum
11
+ * tree-shaking. Note: `esbuild` has some support for this, though it is limited
12
+ * in the amount of dependency nesting it supports.
13
+ */
14
+ declare const resolvePathsPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
15
+
16
+ export { resolvePathsPlugin };
@@ -0,0 +1,8 @@
1
+ import {
2
+ resolvePathsPlugin
3
+ } from "../chunk-DAGDNKO5.js";
4
+ import "../chunk-7MDMXJ5V.js";
5
+ import "../chunk-3GQAWCBQ.js";
6
+ export {
7
+ resolvePathsPlugin
8
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk42FF63OOcjs = require('../chunk-42FF63OO.cjs');
4
+ require('../chunk-ZKT6GJKV.cjs');
5
+ require('../chunk-LVWQSCJM.cjs');
6
+ require('../chunk-BGYQAVKQ.cjs');
7
+
8
+
9
+ exports.tscPlugin = _chunk42FF63OOcjs.tscPlugin;
@@ -0,0 +1,13 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.cjs';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Triggers the TypeScript compiler and the type bundler.
10
+ */
11
+ declare const tscPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
12
+
13
+ export { tscPlugin };
@@ -0,0 +1,13 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { ESBuildOptions, ESBuildResolvedOptions } from '../types.js';
3
+ import '@nx/devkit';
4
+ import '@storm-software/build-tools';
5
+ import 'rollup';
6
+ import 'source-map';
7
+
8
+ /**
9
+ * Triggers the TypeScript compiler and the type bundler.
10
+ */
11
+ declare const tscPlugin: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin;
12
+
13
+ export { tscPlugin };
@@ -0,0 +1,9 @@
1
+ import {
2
+ tscPlugin
3
+ } from "../chunk-7QV3QQUC.js";
4
+ import "../chunk-JXPYSVZW.js";
5
+ import "../chunk-7MDMXJ5V.js";
6
+ import "../chunk-3GQAWCBQ.js";
7
+ export {
8
+ tscPlugin
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.21.5",
3
+ "version": "0.21.7",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -172,9 +172,9 @@
172
172
  "@microsoft/api-extractor": "^7.48.1",
173
173
  "@nx/devkit": "^20.3.1",
174
174
  "@nx/js": "^20.3.1",
175
- "@storm-software/build-tools": "0.136.1",
176
- "@storm-software/config": "1.99.1",
177
- "@storm-software/config-tools": "1.142.1",
175
+ "@storm-software/build-tools": "0.136.3",
176
+ "@storm-software/config": "1.99.3",
177
+ "@storm-software/config-tools": "1.142.3",
178
178
  "@types/node": "^22.10.2",
179
179
  "defu": "6.1.4",
180
180
  "esbuild": "^0.24.0",