@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.
- package/README.md +1 -1
- package/dist/plugins/deps-check.cjs +9 -0
- package/dist/plugins/deps-check.d.cts +8 -0
- package/dist/plugins/deps-check.d.ts +8 -0
- package/dist/plugins/deps-check.js +9 -0
- package/dist/plugins/esm-split-code-to-cjs.cjs +7 -0
- package/dist/plugins/esm-split-code-to-cjs.d.cts +14 -0
- package/dist/plugins/esm-split-code-to-cjs.d.ts +14 -0
- package/dist/plugins/esm-split-code-to-cjs.js +7 -0
- package/dist/plugins/fix-imports.cjs +7 -0
- package/dist/plugins/fix-imports.d.cts +13 -0
- package/dist/plugins/fix-imports.d.ts +13 -0
- package/dist/plugins/fix-imports.js +7 -0
- package/dist/plugins/native-node-module.cjs +7 -0
- package/dist/plugins/native-node-module.d.cts +10 -0
- package/dist/plugins/native-node-module.d.ts +10 -0
- package/dist/plugins/native-node-module.js +7 -0
- package/dist/plugins/node-protocol.cjs +7 -0
- package/dist/plugins/node-protocol.d.cts +14 -0
- package/dist/plugins/node-protocol.d.ts +14 -0
- package/dist/plugins/node-protocol.js +7 -0
- package/dist/plugins/on-error.cjs +9 -0
- package/dist/plugins/on-error.d.cts +13 -0
- package/dist/plugins/on-error.d.ts +13 -0
- package/dist/plugins/on-error.js +9 -0
- package/dist/plugins/resolve-paths.cjs +8 -0
- package/dist/plugins/resolve-paths.d.cts +16 -0
- package/dist/plugins/resolve-paths.d.ts +16 -0
- package/dist/plugins/resolve-paths.js +8 -0
- package/dist/plugins/tsc.cjs +9 -0
- package/dist/plugins/tsc.d.cts +13 -0
- package/dist/plugins/tsc.d.ts +13 -0
- package/dist/plugins/tsc.js +9 -0
- package/package.json +4 -4
- 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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,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,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,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,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,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,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,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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.21.
|
|
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.
|
|
176
|
-
"@storm-software/config": "1.99.
|
|
177
|
-
"@storm-software/config-tools": "1.142.
|
|
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",
|