@storm-software/esbuild 0.26.11 → 0.26.12
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/bin/esbuild.cjs +2 -8
- package/dist/build.cjs +4 -4
- package/dist/build.js +3 -3
- package/dist/{chunk-A7M6QDWG.cjs → chunk-5IEA3WKU.cjs} +2 -1
- package/dist/{chunk-57Z7YYTW.cjs → chunk-B5TAG2NH.cjs} +3 -29
- package/dist/{chunk-D5ZZNDUG.js → chunk-JG2TBFYI.js} +1 -27
- package/dist/{chunk-JOPUDEEC.cjs → chunk-WTBR5HER.cjs} +14 -19
- package/dist/{chunk-V23YDDCC.js → chunk-WYGGQUX3.js} +2 -1
- package/dist/{chunk-F5ULKQSO.js → chunk-ZDPALE64.js} +2 -7
- package/dist/config.cjs +3 -5
- package/dist/config.d.cts +2 -3
- package/dist/config.d.ts +2 -3
- package/dist/config.js +4 -6
- package/dist/index.cjs +4 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -6
- package/dist/plugins/tsc.cjs +2 -2
- package/dist/plugins/tsc.js +1 -1
- package/dist/types.d.cts +3 -10
- package/dist/types.d.ts +3 -10
- package/package.json +2 -2
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 -->
|
package/bin/esbuild.cjs
CHANGED
|
@@ -488,6 +488,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
488
488
|
overrideTsconfig: {
|
|
489
489
|
compilerOptions: {
|
|
490
490
|
paths: {}
|
|
491
|
+
// bug with api extract + paths
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
494
|
},
|
|
@@ -533,7 +534,7 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
533
534
|
} else if ((0, import_node_fs2.existsSync)((0, import_config_tools2.joinPaths)(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
534
535
|
dtsPath = (0, import_config_tools2.joinPaths)(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
535
536
|
}
|
|
536
|
-
const ext = resolvedOptions.
|
|
537
|
+
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
537
538
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
538
539
|
bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
|
|
539
540
|
const dtsContents = await import_promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
@@ -555,9 +556,6 @@ function getTypeDependencyPackageName(npmPackage) {
|
|
|
555
556
|
__name(getTypeDependencyPackageName, "getTypeDependencyPackageName");
|
|
556
557
|
|
|
557
558
|
// src/config.ts
|
|
558
|
-
var getOutputExtensionMap = /* @__PURE__ */ __name((options, pkgType) => {
|
|
559
|
-
return options.outExtension ? options.outExtension(options.format, pkgType) : (0, import_get_out_extension.getOutExtension)(options.format, pkgType);
|
|
560
|
-
}, "getOutputExtensionMap");
|
|
561
559
|
var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) => [
|
|
562
560
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
563
561
|
resolvePathsPlugin(options, resolvedOptions),
|
|
@@ -806,9 +804,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
806
804
|
if (!(0, import_node_fs3.existsSync)(packageJsonPath)) {
|
|
807
805
|
throw new Error("Cannot find package.json configuration");
|
|
808
806
|
}
|
|
809
|
-
const packageJsonFile = await import_promises3.default.readFile(packageJsonPath, "utf8");
|
|
810
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
811
|
-
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
812
807
|
const env = (0, import_build_tools.getEnv)("esbuild", options);
|
|
813
808
|
const result = {
|
|
814
809
|
...options,
|
|
@@ -851,7 +846,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
851
846
|
bundle: userOptions.bundle !== false,
|
|
852
847
|
keepNames: true,
|
|
853
848
|
watch: userOptions.watch === true,
|
|
854
|
-
outExtension,
|
|
855
849
|
footer: userOptions.footer,
|
|
856
850
|
banner: {
|
|
857
851
|
js: options.banner || import_build_tools.DEFAULT_COMPILED_BANNER,
|
package/dist/build.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWTBR5HERcjs = require('./chunk-WTBR5HER.cjs');
|
|
5
5
|
require('./chunk-62KAIAWT.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-B5TAG2NH.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
9
|
require('./chunk-GQQQCEJN.cjs');
|
|
10
10
|
require('./chunk-SSEYS7LI.cjs');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-5IEA3WKU.cjs');
|
|
12
12
|
require('./chunk-VWP2SU7A.cjs');
|
|
13
13
|
require('./chunk-XZED6WF3.cjs');
|
|
14
14
|
require('./chunk-XITTOHOG.cjs');
|
|
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkWTBR5HERcjs.build; exports.cleanOutputPath = _chunkWTBR5HERcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
cleanOutputPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZDPALE64.js";
|
|
5
5
|
import "./chunk-DNJAV4NQ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-JG2TBFYI.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
9
|
import "./chunk-IW7GZHF7.js";
|
|
10
10
|
import "./chunk-Q3LOGZKI.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-WYGGQUX3.js";
|
|
12
12
|
import "./chunk-7NZ2E6EC.js";
|
|
13
13
|
import "./chunk-2HAHXU54.js";
|
|
14
14
|
import "./chunk-YMTDVMD6.js";
|
|
@@ -65,6 +65,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
65
65
|
overrideTsconfig: {
|
|
66
66
|
compilerOptions: {
|
|
67
67
|
paths: {}
|
|
68
|
+
// bug with api extract + paths
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
},
|
|
@@ -110,7 +111,7 @@ var tscPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options,
|
|
|
110
111
|
} else if (_fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
111
112
|
dtsPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
112
113
|
}
|
|
113
|
-
const ext = resolvedOptions.
|
|
114
|
+
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
114
115
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
115
116
|
bundleTypeDefinitions(dtsPath, bundlePath, _nullishCoalesce(resolvedOptions.external, () => ( [])), resolvedOptions);
|
|
116
117
|
const dtsContents = await _promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
@@ -12,7 +12,7 @@ var _chunkGQQQCEJNcjs = require('./chunk-GQQQCEJN.cjs');
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5IEA3WKUcjs = require('./chunk-5IEA3WKU.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -836,28 +836,6 @@ var getEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (builder, opt
|
|
|
836
836
|
};
|
|
837
837
|
}, "getEnv");
|
|
838
838
|
|
|
839
|
-
// ../build-tools/src/utilities/get-out-extension.ts
|
|
840
|
-
function getOutExtension(format, pkgType) {
|
|
841
|
-
let jsExtension = ".js";
|
|
842
|
-
let dtsExtension = ".d.ts";
|
|
843
|
-
if (pkgType === "module" && format === "cjs") {
|
|
844
|
-
jsExtension = ".cjs";
|
|
845
|
-
dtsExtension = ".d.cts";
|
|
846
|
-
}
|
|
847
|
-
if (pkgType !== "module" && format === "esm") {
|
|
848
|
-
jsExtension = ".mjs";
|
|
849
|
-
dtsExtension = ".d.mts";
|
|
850
|
-
}
|
|
851
|
-
if (format === "iife") {
|
|
852
|
-
jsExtension = ".global.js";
|
|
853
|
-
}
|
|
854
|
-
return {
|
|
855
|
-
js: jsExtension,
|
|
856
|
-
dts: dtsExtension
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
_chunkBGYQAVKQcjs.__name.call(void 0, getOutExtension, "getOutExtension");
|
|
860
|
-
|
|
861
839
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
862
840
|
|
|
863
841
|
|
|
@@ -866,16 +844,13 @@ _chunkBGYQAVKQcjs.__name.call(void 0, getOutExtension, "getOutExtension");
|
|
|
866
844
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
867
845
|
|
|
868
846
|
// src/config.ts
|
|
869
|
-
var getOutputExtensionMap = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options, pkgType) => {
|
|
870
|
-
return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
|
|
871
|
-
}, "getOutputExtensionMap");
|
|
872
847
|
var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
873
848
|
_chunkWRBUO7H6cjs.nodeProtocolPlugin.call(void 0, options, resolvedOptions),
|
|
874
849
|
_chunkSSEYS7LIcjs.resolvePathsPlugin.call(void 0, options, resolvedOptions),
|
|
875
850
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
876
851
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
877
852
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
878
|
-
|
|
853
|
+
_chunk5IEA3WKUcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
879
854
|
_chunkGQQQCEJNcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
880
855
|
], "getDefaultBuildPlugins");
|
|
881
856
|
var DEFAULT_BUILD_OPTIONS = {
|
|
@@ -930,5 +905,4 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
930
905
|
|
|
931
906
|
|
|
932
907
|
|
|
933
|
-
|
|
934
|
-
exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getOutputExtensionMap = getOutputExtensionMap; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
|
|
908
|
+
exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-Q3LOGZKI.js";
|
|
13
13
|
import {
|
|
14
14
|
tscPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WYGGQUX3.js";
|
|
16
16
|
import {
|
|
17
17
|
COLOR_KEYS,
|
|
18
18
|
LogLevel,
|
|
@@ -836,28 +836,6 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
|
836
836
|
};
|
|
837
837
|
}, "getEnv");
|
|
838
838
|
|
|
839
|
-
// ../build-tools/src/utilities/get-out-extension.ts
|
|
840
|
-
function getOutExtension(format, pkgType) {
|
|
841
|
-
let jsExtension = ".js";
|
|
842
|
-
let dtsExtension = ".d.ts";
|
|
843
|
-
if (pkgType === "module" && format === "cjs") {
|
|
844
|
-
jsExtension = ".cjs";
|
|
845
|
-
dtsExtension = ".d.cts";
|
|
846
|
-
}
|
|
847
|
-
if (pkgType !== "module" && format === "esm") {
|
|
848
|
-
jsExtension = ".mjs";
|
|
849
|
-
dtsExtension = ".d.mts";
|
|
850
|
-
}
|
|
851
|
-
if (format === "iife") {
|
|
852
|
-
jsExtension = ".global.js";
|
|
853
|
-
}
|
|
854
|
-
return {
|
|
855
|
-
js: jsExtension,
|
|
856
|
-
dts: dtsExtension
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
__name(getOutExtension, "getOutExtension");
|
|
860
|
-
|
|
861
839
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
862
840
|
import { existsSync as existsSync2 } from "node:fs";
|
|
863
841
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
@@ -866,9 +844,6 @@ import { readFile as readFile3 } from "node:fs/promises";
|
|
|
866
844
|
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
867
845
|
|
|
868
846
|
// src/config.ts
|
|
869
|
-
var getOutputExtensionMap = /* @__PURE__ */ __name((options, pkgType) => {
|
|
870
|
-
return options.outExtension ? options.outExtension(options.format, pkgType) : getOutExtension(options.format, pkgType);
|
|
871
|
-
}, "getOutputExtensionMap");
|
|
872
847
|
var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) => [
|
|
873
848
|
nodeProtocolPlugin(options, resolvedOptions),
|
|
874
849
|
resolvePathsPlugin(options, resolvedOptions),
|
|
@@ -928,7 +903,6 @@ export {
|
|
|
928
903
|
getConfig,
|
|
929
904
|
getEntryPoints,
|
|
930
905
|
getEnv,
|
|
931
|
-
getOutputExtensionMap,
|
|
932
906
|
getDefaultBuildPlugins,
|
|
933
907
|
DEFAULT_BUILD_OPTIONS
|
|
934
908
|
};
|
|
@@ -13,8 +13,7 @@ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
|
|
16
|
+
var _chunkB5TAG2NHcjs = require('./chunk-B5TAG2NH.cjs');
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
var _chunkVWP2SU7Acjs = require('./chunk-VWP2SU7A.cjs');
|
|
@@ -278,7 +277,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
278
277
|
if (!workspaceRoot) {
|
|
279
278
|
throw new Error("Cannot find Nx workspace root");
|
|
280
279
|
}
|
|
281
|
-
const config = await
|
|
280
|
+
const config = await _chunkB5TAG2NHcjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
282
281
|
_chunkXZED6WF3cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
283
282
|
const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
284
283
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
@@ -295,17 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
295
294
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
296
295
|
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.");
|
|
297
296
|
}
|
|
298
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
297
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkB5TAG2NHcjs.DEFAULT_BUILD_OPTIONS);
|
|
299
298
|
options.name ??= `${projectName}-${options.format}`;
|
|
300
|
-
options.target ??=
|
|
299
|
+
options.target ??= _chunkB5TAG2NHcjs.DEFAULT_TARGET;
|
|
301
300
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
302
301
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
303
302
|
throw new Error("Cannot find package.json configuration");
|
|
304
303
|
}
|
|
305
|
-
const
|
|
306
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
307
|
-
const outExtension = _chunk57Z7YYTWcjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
|
|
308
|
-
const env = _chunk57Z7YYTWcjs.getEnv.call(void 0, "esbuild", options);
|
|
304
|
+
const env = _chunkB5TAG2NHcjs.getEnv.call(void 0, "esbuild", options);
|
|
309
305
|
const result = {
|
|
310
306
|
...options,
|
|
311
307
|
config,
|
|
@@ -325,7 +321,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
325
321
|
...userOptions,
|
|
326
322
|
tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
327
323
|
format: options.format || "cjs",
|
|
328
|
-
entryPoints: await
|
|
324
|
+
entryPoints: await _chunkB5TAG2NHcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
329
325
|
"./src/index.ts"
|
|
330
326
|
], userOptions.emitOnAll),
|
|
331
327
|
outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -347,11 +343,10 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
347
343
|
bundle: userOptions.bundle !== false,
|
|
348
344
|
keepNames: true,
|
|
349
345
|
watch: userOptions.watch === true,
|
|
350
|
-
outExtension,
|
|
351
346
|
footer: userOptions.footer,
|
|
352
347
|
banner: {
|
|
353
|
-
js: options.banner ||
|
|
354
|
-
css: options.banner ||
|
|
348
|
+
js: options.banner || _chunkB5TAG2NHcjs.DEFAULT_COMPILED_BANNER,
|
|
349
|
+
css: options.banner || _chunkB5TAG2NHcjs.DEFAULT_COMPILED_BANNER
|
|
355
350
|
},
|
|
356
351
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
357
352
|
treeShaking: options.format === "esm",
|
|
@@ -377,7 +372,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
377
372
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
378
373
|
].filter(Boolean)
|
|
379
374
|
};
|
|
380
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
375
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkB5TAG2NHcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
381
376
|
delete result.entry;
|
|
382
377
|
delete result.outputPath;
|
|
383
378
|
stopwatch();
|
|
@@ -396,11 +391,11 @@ async function generatePackageJson(context2) {
|
|
|
396
391
|
if (!packageJson) {
|
|
397
392
|
throw new Error("Cannot find package.json configuration file");
|
|
398
393
|
}
|
|
399
|
-
packageJson = await
|
|
400
|
-
packageJson = await
|
|
394
|
+
packageJson = await _chunkB5TAG2NHcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
395
|
+
packageJson = await _chunkB5TAG2NHcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
401
396
|
packageJson.exports ??= {};
|
|
402
397
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
403
|
-
packageJson.exports["."] ??=
|
|
398
|
+
packageJson.exports["."] ??= _chunkB5TAG2NHcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
404
399
|
let entryPoints = [
|
|
405
400
|
{
|
|
406
401
|
in: "./src/index.ts",
|
|
@@ -418,7 +413,7 @@ async function generatePackageJson(context2) {
|
|
|
418
413
|
const split = entryPoint.out.split(".");
|
|
419
414
|
split.pop();
|
|
420
415
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
421
|
-
packageJson.exports[`./${entry}`] ??=
|
|
416
|
+
packageJson.exports[`./${entry}`] ??= _chunkB5TAG2NHcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
422
417
|
}
|
|
423
418
|
}
|
|
424
419
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -497,7 +492,7 @@ async function copyBuildAssets(context2) {
|
|
|
497
492
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
498
493
|
_chunkXZED6WF3cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
499
494
|
const stopwatch = _chunkXZED6WF3cjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
500
|
-
await
|
|
495
|
+
await _chunkB5TAG2NHcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
501
496
|
stopwatch();
|
|
502
497
|
}
|
|
503
498
|
return context2;
|
|
@@ -65,6 +65,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
65
65
|
overrideTsconfig: {
|
|
66
66
|
compilerOptions: {
|
|
67
67
|
paths: {}
|
|
68
|
+
// bug with api extract + paths
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
},
|
|
@@ -110,7 +111,7 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
110
111
|
} else if (existsSync(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
111
112
|
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
112
113
|
}
|
|
113
|
-
const ext = resolvedOptions.
|
|
114
|
+
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
114
115
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
115
116
|
bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
|
|
116
117
|
const dtsContents = await fs.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
@@ -12,9 +12,8 @@ import {
|
|
|
12
12
|
getConfig,
|
|
13
13
|
getDefaultBuildPlugins,
|
|
14
14
|
getEntryPoints,
|
|
15
|
-
getEnv
|
|
16
|
-
|
|
17
|
-
} from "./chunk-D5ZZNDUG.js";
|
|
15
|
+
getEnv
|
|
16
|
+
} from "./chunk-JG2TBFYI.js";
|
|
18
17
|
import {
|
|
19
18
|
depsCheckPlugin
|
|
20
19
|
} from "./chunk-7NZ2E6EC.js";
|
|
@@ -302,9 +301,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
302
301
|
if (!existsSync(packageJsonPath)) {
|
|
303
302
|
throw new Error("Cannot find package.json configuration");
|
|
304
303
|
}
|
|
305
|
-
const packageJsonFile = await hf.readFile(packageJsonPath, "utf8");
|
|
306
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
307
|
-
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
308
304
|
const env = getEnv("esbuild", options);
|
|
309
305
|
const result = {
|
|
310
306
|
...options,
|
|
@@ -347,7 +343,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
347
343
|
bundle: userOptions.bundle !== false,
|
|
348
344
|
keepNames: true,
|
|
349
345
|
watch: userOptions.watch === true,
|
|
350
|
-
outExtension,
|
|
351
346
|
footer: userOptions.footer,
|
|
352
347
|
banner: {
|
|
353
348
|
js: options.banner || DEFAULT_COMPILED_BANNER,
|
package/dist/config.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
|
|
4
|
+
var _chunkB5TAG2NHcjs = require('./chunk-B5TAG2NH.cjs');
|
|
6
5
|
require('./chunk-S6M44SSZ.cjs');
|
|
7
6
|
require('./chunk-WRBUO7H6.cjs');
|
|
8
7
|
require('./chunk-GQQQCEJN.cjs');
|
|
9
8
|
require('./chunk-SSEYS7LI.cjs');
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-5IEA3WKU.cjs');
|
|
11
10
|
require('./chunk-XZED6WF3.cjs');
|
|
12
11
|
require('./chunk-XITTOHOG.cjs');
|
|
13
12
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
@@ -16,5 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
exports.DEFAULT_BUILD_OPTIONS = _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunk57Z7YYTWcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk57Z7YYTWcjs.getOutputExtensionMap;
|
|
18
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkB5TAG2NHcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkB5TAG2NHcjs.getDefaultBuildPlugins;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
-
import { ESBuildOptions,
|
|
2
|
+
import { ESBuildOptions, ESBuildResolvedOptions } from './types.cjs';
|
|
3
3
|
import '@nx/devkit';
|
|
4
4
|
import '@storm-software/build-tools';
|
|
5
5
|
import 'rollup';
|
|
6
6
|
import 'source-map';
|
|
7
7
|
|
|
8
|
-
declare const getOutputExtensionMap: (options: ESBuildOptions, pkgType: string | undefined) => OutExtensionObject;
|
|
9
8
|
declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
|
|
10
9
|
declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
|
|
11
10
|
|
|
12
|
-
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins
|
|
11
|
+
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
-
import { ESBuildOptions,
|
|
2
|
+
import { ESBuildOptions, ESBuildResolvedOptions } from './types.js';
|
|
3
3
|
import '@nx/devkit';
|
|
4
4
|
import '@storm-software/build-tools';
|
|
5
5
|
import 'rollup';
|
|
6
6
|
import 'source-map';
|
|
7
7
|
|
|
8
|
-
declare const getOutputExtensionMap: (options: ESBuildOptions, pkgType: string | undefined) => OutExtensionObject;
|
|
9
8
|
declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
|
|
10
9
|
declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
|
|
11
10
|
|
|
12
|
-
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins
|
|
11
|
+
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
|
package/dist/config.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS,
|
|
3
|
-
getDefaultBuildPlugins
|
|
4
|
-
|
|
5
|
-
} from "./chunk-D5ZZNDUG.js";
|
|
3
|
+
getDefaultBuildPlugins
|
|
4
|
+
} from "./chunk-JG2TBFYI.js";
|
|
6
5
|
import "./chunk-T5272PC2.js";
|
|
7
6
|
import "./chunk-LYDEMC26.js";
|
|
8
7
|
import "./chunk-IW7GZHF7.js";
|
|
9
8
|
import "./chunk-Q3LOGZKI.js";
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WYGGQUX3.js";
|
|
11
10
|
import "./chunk-2HAHXU54.js";
|
|
12
11
|
import "./chunk-YMTDVMD6.js";
|
|
13
12
|
import "./chunk-YNQ45EAM.js";
|
|
@@ -15,6 +14,5 @@ import "./chunk-GWG4HOQ6.js";
|
|
|
15
14
|
import "./chunk-3GQAWCBQ.js";
|
|
16
15
|
export {
|
|
17
16
|
DEFAULT_BUILD_OPTIONS,
|
|
18
|
-
getDefaultBuildPlugins
|
|
19
|
-
getOutputExtensionMap
|
|
17
|
+
getDefaultBuildPlugins
|
|
20
18
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWTBR5HERcjs = require('./chunk-WTBR5HER.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -15,13 +15,12 @@ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
var _chunk57Z7YYTWcjs = require('./chunk-57Z7YYTW.cjs');
|
|
18
|
+
var _chunkB5TAG2NHcjs = require('./chunk-B5TAG2NH.cjs');
|
|
20
19
|
require('./chunk-S6M44SSZ.cjs');
|
|
21
20
|
require('./chunk-WRBUO7H6.cjs');
|
|
22
21
|
require('./chunk-GQQQCEJN.cjs');
|
|
23
22
|
require('./chunk-SSEYS7LI.cjs');
|
|
24
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-5IEA3WKU.cjs');
|
|
25
24
|
require('./chunk-SFZRYJZ2.cjs');
|
|
26
25
|
require('./chunk-VWP2SU7A.cjs');
|
|
27
26
|
require('./chunk-XZED6WF3.cjs');
|
|
@@ -42,5 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
42
41
|
|
|
43
42
|
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
exports.DEFAULT_BUILD_OPTIONS = _chunk57Z7YYTWcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkJOPUDEECcjs.Filter; exports.Mapper = _chunkJOPUDEECcjs.Mapper; exports.build = _chunkJOPUDEECcjs.build; exports.clean = _chunk62KAIAWTcjs.clean; exports.cleanDirectories = _chunk62KAIAWTcjs.cleanDirectories; exports.cleanOutputPath = _chunkJOPUDEECcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunk57Z7YYTWcjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunk57Z7YYTWcjs.getOutputExtensionMap; exports.handle = _chunkJOPUDEECcjs.handle; exports.pipe = _chunkJOPUDEECcjs.pipe; exports.skip = _chunkJOPUDEECcjs.skip; exports.transduce = _chunkJOPUDEECcjs.transduce;
|
|
44
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkB5TAG2NHcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkWTBR5HERcjs.Filter; exports.Mapper = _chunkWTBR5HERcjs.Mapper; exports.build = _chunkWTBR5HERcjs.build; exports.clean = _chunk62KAIAWTcjs.clean; exports.cleanDirectories = _chunk62KAIAWTcjs.cleanDirectories; exports.cleanOutputPath = _chunkWTBR5HERcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkB5TAG2NHcjs.getDefaultBuildPlugins; exports.handle = _chunkWTBR5HERcjs.handle; exports.pipe = _chunkWTBR5HERcjs.pipe; exports.skip = _chunkWTBR5HERcjs.skip; exports.transduce = _chunkWTBR5HERcjs.transduce;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { build, cleanOutputPath } from './build.cjs';
|
|
2
2
|
export { clean, cleanDirectories } from './clean.cjs';
|
|
3
|
-
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins
|
|
4
|
-
export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions,
|
|
3
|
+
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins } from './config.cjs';
|
|
4
|
+
export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile } from './types.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'esbuild';
|
|
7
7
|
import '@nx/devkit';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { build, cleanOutputPath } from './build.js';
|
|
2
2
|
export { clean, cleanDirectories } from './clean.js';
|
|
3
|
-
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins
|
|
4
|
-
export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions,
|
|
3
|
+
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins } from './config.js';
|
|
4
|
+
export { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile } from './types.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'esbuild';
|
|
7
7
|
import '@nx/devkit';
|
package/dist/index.js
CHANGED
|
@@ -7,21 +7,20 @@ import {
|
|
|
7
7
|
pipe,
|
|
8
8
|
skip,
|
|
9
9
|
transduce
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZDPALE64.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
14
|
} from "./chunk-DNJAV4NQ.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
|
-
getDefaultBuildPlugins
|
|
18
|
-
|
|
19
|
-
} from "./chunk-D5ZZNDUG.js";
|
|
17
|
+
getDefaultBuildPlugins
|
|
18
|
+
} from "./chunk-JG2TBFYI.js";
|
|
20
19
|
import "./chunk-T5272PC2.js";
|
|
21
20
|
import "./chunk-LYDEMC26.js";
|
|
22
21
|
import "./chunk-IW7GZHF7.js";
|
|
23
22
|
import "./chunk-Q3LOGZKI.js";
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WYGGQUX3.js";
|
|
25
24
|
import "./chunk-GGNOJ77I.js";
|
|
26
25
|
import "./chunk-7NZ2E6EC.js";
|
|
27
26
|
import "./chunk-2HAHXU54.js";
|
|
@@ -38,7 +37,6 @@ export {
|
|
|
38
37
|
cleanDirectories,
|
|
39
38
|
cleanOutputPath,
|
|
40
39
|
getDefaultBuildPlugins,
|
|
41
|
-
getOutputExtensionMap,
|
|
42
40
|
handle,
|
|
43
41
|
pipe,
|
|
44
42
|
skip,
|
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5IEA3WKUcjs = require('../chunk-5IEA3WKU.cjs');
|
|
4
4
|
require('../chunk-XZED6WF3.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.tscPlugin =
|
|
9
|
+
exports.tscPlugin = _chunk5IEA3WKUcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/dist/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
|
|
2
2
|
import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
|
|
3
|
-
import { BuildOptions, OutputFile, Metafile,
|
|
3
|
+
import { BuildOptions, OutputFile, Metafile, BuildResult, Format } from 'esbuild';
|
|
4
4
|
import { SourceMap } from 'rollup';
|
|
5
5
|
import { RawSourceMap } from 'source-map';
|
|
6
6
|
|
|
@@ -17,24 +17,17 @@ declare class RendererEngine {
|
|
|
17
17
|
}): Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
type OutExtensionObject = {
|
|
21
|
-
js?: string;
|
|
22
|
-
dts?: string;
|
|
23
|
-
};
|
|
24
|
-
type OutExtensionFactory = (format?: Format, pkgType?: string) => OutExtensionObject;
|
|
25
20
|
type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner" | "entryPoints"> & Omit<TypeScriptBuildOptions, "format"> & {
|
|
26
21
|
emitTypes?: boolean;
|
|
27
22
|
injectShims?: boolean;
|
|
28
|
-
outExtension?: OutExtensionFactory;
|
|
29
23
|
renderers?: Renderer[];
|
|
30
24
|
};
|
|
31
25
|
type ESBuildResult = BuildResult;
|
|
32
|
-
type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
|
|
26
|
+
type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
|
|
33
27
|
injectShims: boolean;
|
|
34
28
|
outdir: string;
|
|
35
29
|
projectGraph: ProjectGraph;
|
|
36
30
|
projectConfigurations: ProjectsConfigurations;
|
|
37
|
-
outExtension: OutExtensionObject;
|
|
38
31
|
entryPoints: string[];
|
|
39
32
|
renderers?: Renderer[];
|
|
40
33
|
format: Format;
|
|
@@ -91,4 +84,4 @@ type WrittenFile = {
|
|
|
91
84
|
readonly size: number;
|
|
92
85
|
};
|
|
93
86
|
|
|
94
|
-
export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions,
|
|
87
|
+
export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
|
|
2
2
|
import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
|
|
3
|
-
import { BuildOptions, OutputFile, Metafile,
|
|
3
|
+
import { BuildOptions, OutputFile, Metafile, BuildResult, Format } from 'esbuild';
|
|
4
4
|
import { SourceMap } from 'rollup';
|
|
5
5
|
import { RawSourceMap } from 'source-map';
|
|
6
6
|
|
|
@@ -17,24 +17,17 @@ declare class RendererEngine {
|
|
|
17
17
|
}): Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
type OutExtensionObject = {
|
|
21
|
-
js?: string;
|
|
22
|
-
dts?: string;
|
|
23
|
-
};
|
|
24
|
-
type OutExtensionFactory = (format?: Format, pkgType?: string) => OutExtensionObject;
|
|
25
20
|
type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension" | "banner" | "entryPoints"> & Omit<TypeScriptBuildOptions, "format"> & {
|
|
26
21
|
emitTypes?: boolean;
|
|
27
22
|
injectShims?: boolean;
|
|
28
|
-
outExtension?: OutExtensionFactory;
|
|
29
23
|
renderers?: Renderer[];
|
|
30
24
|
};
|
|
31
25
|
type ESBuildResult = BuildResult;
|
|
32
|
-
type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
|
|
26
|
+
type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
|
|
33
27
|
injectShims: boolean;
|
|
34
28
|
outdir: string;
|
|
35
29
|
projectGraph: ProjectGraph;
|
|
36
30
|
projectConfigurations: ProjectsConfigurations;
|
|
37
|
-
outExtension: OutExtensionObject;
|
|
38
31
|
entryPoints: string[];
|
|
39
32
|
renderers?: Renderer[];
|
|
40
33
|
format: Format;
|
|
@@ -91,4 +84,4 @@ type WrittenFile = {
|
|
|
91
84
|
readonly size: number;
|
|
92
85
|
};
|
|
93
86
|
|
|
94
|
-
export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions,
|
|
87
|
+
export type { AssetInfo, BuildEnd, BuildStart, ChunkInfo, ESBuildCLIOptions, ESBuildContext, ESBuildOptions, ESBuildResolvedOptions, ESBuildResult, MaybePromise, ModifyEsbuildOptions, RenderChunk, Renderer, WrittenFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"@nx/js": "^20.3.1",
|
|
171
171
|
"@storm-software/build-tools": "0.140.5",
|
|
172
172
|
"@storm-software/config": "1.103.5",
|
|
173
|
-
"@storm-software/config-tools": "1.155.
|
|
173
|
+
"@storm-software/config-tools": "1.155.10",
|
|
174
174
|
"@types/node": "^22.10.2",
|
|
175
175
|
"defu": "6.1.4",
|
|
176
176
|
"esbuild": "^0.24.0",
|