@storm-software/esbuild 0.34.2 → 0.34.3
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 +2 -1
- package/bin/esbuild.cjs +12143 -158
- package/dist/assets.cjs +9 -0
- package/dist/assets.d.cts +16 -0
- package/dist/assets.d.ts +16 -0
- package/dist/assets.js +9 -0
- package/dist/build.cjs +13 -17
- package/dist/build.d.cts +3 -13
- package/dist/build.d.ts +3 -13
- package/dist/build.js +14 -18
- package/dist/chunk-2CM3VAO5.cjs +119 -0
- package/dist/{chunk-Y7JBB452.js → chunk-4D6ICA75.js} +36 -3
- package/dist/{chunk-5RVOO3YF.js → chunk-ABRK5MYP.js} +3 -5
- package/dist/chunk-CVOQEYHW.cjs +117 -0
- package/dist/{chunk-3PF5YMWK.js → chunk-DNZNN5SK.js} +2 -2
- package/dist/chunk-EBTMX5WL.js +117 -0
- package/dist/chunk-ECCVVXNX.js +100 -0
- package/dist/chunk-EDLA3ZZN.js +26 -0
- package/dist/{chunk-GJHRTQAS.cjs → chunk-EVDNG72R.cjs} +35 -37
- package/dist/{chunk-TDBBRZTC.cjs → chunk-FQQYNAPT.cjs} +111 -189
- package/dist/{chunk-QKJ7KLDL.cjs → chunk-G66JI4BS.cjs} +5 -7
- package/dist/{chunk-SKJRUPDP.js → chunk-NJJBR57W.js} +24 -102
- package/dist/{chunk-STCE44IS.js → chunk-OCDIIBBZ.js} +2 -2
- package/dist/{chunk-M3AOQRGN.cjs → chunk-PTHYT3U2.cjs} +188 -582
- package/dist/chunk-QVMJLFU5.cjs +26 -0
- package/dist/{chunk-DPRINYB6.js → chunk-QWTKBUQW.js} +40 -434
- package/dist/chunk-R2KKGNQL.js +119 -0
- package/dist/{chunk-TH2QFJHI.cjs → chunk-RK34D7S5.cjs} +6 -6
- package/dist/chunk-SLSBBNRF.cjs +52 -0
- package/dist/{chunk-VQHKIS7J.js → chunk-TSQT5MWW.js} +2 -4
- package/dist/{chunk-BNPCRQK4.cjs → chunk-VTBMJYSM.cjs} +6 -6
- package/dist/chunk-WLJT52I3.cjs +100 -0
- package/dist/chunk-WXURMFT7.js +52 -0
- package/dist/{chunk-VPTKC3UK.cjs → chunk-YHMM6RY5.cjs} +42 -9
- package/dist/clean.cjs +4 -5
- package/dist/clean.d.cts +1 -2
- package/dist/clean.d.ts +1 -2
- package/dist/clean.js +3 -4
- package/dist/config.cjs +5 -14
- package/dist/config.d.cts +4 -6
- package/dist/config.d.ts +4 -6
- package/dist/config.js +6 -15
- package/dist/context.cjs +11 -0
- package/dist/context.d.cts +16 -0
- package/dist/context.d.ts +16 -0
- package/dist/context.js +11 -0
- package/dist/index.cjs +14 -52
- package/dist/index.d.cts +3 -216
- package/dist/index.d.ts +3 -216
- package/dist/index.js +15 -53
- package/dist/package-json.cjs +9 -0
- package/dist/package-json.d.cts +16 -0
- package/dist/package-json.d.ts +16 -0
- package/dist/package-json.js +9 -0
- package/dist/plugins/deps-check.cjs +4 -5
- package/dist/plugins/deps-check.js +3 -4
- package/dist/plugins/resolve-paths.cjs +3 -4
- package/dist/plugins/resolve-paths.d.cts +3 -4
- package/dist/plugins/resolve-paths.d.ts +3 -4
- package/dist/plugins/resolve-paths.js +2 -3
- package/dist/tsup.cjs +8 -0
- package/dist/tsup.d.cts +16 -0
- package/dist/tsup.d.ts +16 -0
- package/dist/tsup.js +8 -0
- package/dist/types.d.cts +1 -2
- package/dist/types.d.ts +1 -2
- package/dist/watch.cjs +111 -0
- package/dist/watch.d.cts +18 -0
- package/dist/watch.d.ts +18 -0
- package/dist/watch.js +111 -0
- package/package.json +59 -38
- package/dist/chunk-27VOV3G4.cjs +0 -23
- package/dist/chunk-2TG2H4XL.js +0 -29
- package/dist/chunk-2X5ZMEAN.js +0 -167
- package/dist/chunk-3QHFCKSI.js +0 -140
- package/dist/chunk-AZON722Q.js +0 -23
- package/dist/chunk-B4CUDMY2.cjs +0 -39
- package/dist/chunk-BOFHC4OE.cjs +0 -26
- package/dist/chunk-BWSIRV3D.js +0 -26
- package/dist/chunk-CCEWV2BR.js +0 -39
- package/dist/chunk-CGMLIVTB.cjs +0 -167
- package/dist/chunk-ILJQ4NCE.cjs +0 -29
- package/dist/chunk-N62ZR7UV.cjs +0 -140
- package/dist/chunk-RLQJRD62.cjs +0 -27
- package/dist/chunk-UYE6LM4C.js +0 -60
- package/dist/chunk-XLUZXKDY.js +0 -27
- package/dist/chunk-Y5SBBYX3.cjs +0 -60
- package/dist/plugins/esm-split-code-to-cjs.cjs +0 -7
- package/dist/plugins/esm-split-code-to-cjs.d.cts +0 -15
- package/dist/plugins/esm-split-code-to-cjs.d.ts +0 -15
- package/dist/plugins/esm-split-code-to-cjs.js +0 -7
- package/dist/plugins/fix-imports.cjs +0 -7
- package/dist/plugins/fix-imports.d.cts +0 -14
- package/dist/plugins/fix-imports.d.ts +0 -14
- package/dist/plugins/fix-imports.js +0 -7
- package/dist/plugins/native-node-module.cjs +0 -7
- package/dist/plugins/native-node-module.d.cts +0 -11
- package/dist/plugins/native-node-module.d.ts +0 -11
- package/dist/plugins/native-node-module.js +0 -7
- package/dist/plugins/node-protocol.cjs +0 -7
- package/dist/plugins/node-protocol.d.cts +0 -15
- package/dist/plugins/node-protocol.d.ts +0 -15
- package/dist/plugins/node-protocol.js +0 -7
- package/dist/plugins/on-error.cjs +0 -9
- package/dist/plugins/on-error.d.cts +0 -14
- package/dist/plugins/on-error.d.ts +0 -14
- package/dist/plugins/on-error.js +0 -9
- package/dist/plugins/tsc.cjs +0 -9
- package/dist/plugins/tsc.d.cts +0 -14
- package/dist/plugins/tsc.d.ts +0 -14
- package/dist/plugins/tsc.js +0 -9
- package/dist/tsc.cjs +0 -17
- package/dist/tsc.d.cts +0 -21
- package/dist/tsc.d.ts +0 -21
- package/dist/tsc.js +0 -17
- package/dist/types-B4jbZA4j.d.cts +0 -1286
- package/dist/types-B4jbZA4j.d.ts +0 -1286
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var _chunkVPTKC3UKcjs = require('./chunk-VPTKC3UK.cjs');
|
|
4
3
|
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
|
|
5
|
+
var _chunkYHMM6RY5cjs = require('./chunk-YHMM6RY5.cjs');
|
|
8
6
|
|
|
9
7
|
// src/plugins/resolve-paths.ts
|
|
10
8
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -22,16 +20,16 @@ function resolvePathsConfig(options, cwd) {
|
|
|
22
20
|
if (options.extends) {
|
|
23
21
|
const extendsPath = _path2.default.resolve(cwd, options.extends);
|
|
24
22
|
const extendsDir = _path2.default.dirname(extendsPath);
|
|
25
|
-
const extendsConfig =
|
|
23
|
+
const extendsConfig = _chunkYHMM6RY5cjs.__require.call(void 0, extendsPath);
|
|
26
24
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
27
25
|
}
|
|
28
26
|
return [];
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
var resolvePathsPlugin = /* @__PURE__ */
|
|
28
|
+
_chunkYHMM6RY5cjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
29
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunkYHMM6RY5cjs.__name.call(void 0, (context) => ({
|
|
32
30
|
name: "storm:resolve-paths",
|
|
33
31
|
setup(build) {
|
|
34
|
-
const parentTsConfig = build.initialOptions.tsconfig ?
|
|
32
|
+
const parentTsConfig = build.initialOptions.tsconfig ? _chunkYHMM6RY5cjs.__require.call(void 0, _chunkYHMM6RY5cjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build.initialOptions.tsconfig)) : _chunkYHMM6RY5cjs.__require.call(void 0, _chunkYHMM6RY5cjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
35
33
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
36
34
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
37
35
|
build.onResolve({
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fixImportsPlugin
|
|
3
|
-
} from "./chunk-2TG2H4XL.js";
|
|
4
|
-
import {
|
|
5
|
-
nativeNodeModulesPlugin
|
|
6
|
-
} from "./chunk-UYE6LM4C.js";
|
|
7
|
-
import {
|
|
8
|
-
nodeProtocolPlugin
|
|
9
|
-
} from "./chunk-AZON722Q.js";
|
|
10
|
-
import {
|
|
11
|
-
onErrorPlugin
|
|
12
|
-
} from "./chunk-BWSIRV3D.js";
|
|
13
|
-
import {
|
|
14
|
-
resolvePathsPlugin
|
|
15
|
-
} from "./chunk-5RVOO3YF.js";
|
|
16
|
-
import {
|
|
17
|
-
tscPlugin
|
|
18
|
-
} from "./chunk-3QHFCKSI.js";
|
|
19
1
|
import {
|
|
20
2
|
COLOR_KEYS,
|
|
21
3
|
LogLevel,
|
|
@@ -31,17 +13,12 @@ import {
|
|
|
31
13
|
writeDebug,
|
|
32
14
|
writeTrace,
|
|
33
15
|
writeWarning
|
|
34
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TSQT5MWW.js";
|
|
35
17
|
import {
|
|
18
|
+
__name,
|
|
36
19
|
correctPaths,
|
|
37
20
|
joinPaths
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
esmSplitCodeToCjsPlugin
|
|
41
|
-
} from "./chunk-XLUZXKDY.js";
|
|
42
|
-
import {
|
|
43
|
-
__name
|
|
44
|
-
} from "./chunk-CCEWV2BR.js";
|
|
21
|
+
} from "./chunk-4D6ICA75.js";
|
|
45
22
|
|
|
46
23
|
// ../build-tools/src/config.ts
|
|
47
24
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
@@ -53,19 +30,6 @@ var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
|
53
30
|
var DEFAULT_ENVIRONMENT = "production";
|
|
54
31
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
55
32
|
|
|
56
|
-
// ../build-tools/src/plugins/swc.ts
|
|
57
|
-
import { transform } from "@swc/core";
|
|
58
|
-
|
|
59
|
-
// ../build-tools/src/plugins/ts-resolve.ts
|
|
60
|
-
import fs from "node:fs";
|
|
61
|
-
import { builtinModules } from "node:module";
|
|
62
|
-
import path from "node:path";
|
|
63
|
-
import _resolve from "resolve";
|
|
64
|
-
|
|
65
|
-
// ../build-tools/src/plugins/type-definitions.ts
|
|
66
|
-
import { stripIndents } from "@nx/devkit";
|
|
67
|
-
import { relative } from "path";
|
|
68
|
-
|
|
69
33
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
70
34
|
import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
|
|
71
35
|
import { glob } from "glob";
|
|
@@ -238,6 +202,9 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (workspaceConfi
|
|
|
238
202
|
return packageJson;
|
|
239
203
|
}, "addWorkspacePackageJsonFields");
|
|
240
204
|
|
|
205
|
+
// ../config-tools/src/create-storm-config.ts
|
|
206
|
+
import defu2 from "defu";
|
|
207
|
+
|
|
241
208
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
242
209
|
import { loadConfig } from "c12";
|
|
243
210
|
import defu from "defu";
|
|
@@ -300,9 +267,6 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
300
267
|
return config;
|
|
301
268
|
}, "getConfigFile");
|
|
302
269
|
|
|
303
|
-
// ../config-tools/src/create-storm-config.ts
|
|
304
|
-
import defu2 from "defu";
|
|
305
|
-
|
|
306
270
|
// ../config-tools/src/env/get-env.ts
|
|
307
271
|
var getExtensionEnv = /* @__PURE__ */ __name((extensionName) => {
|
|
308
272
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
@@ -840,9 +804,6 @@ var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false, options = {})
|
|
|
840
804
|
return getConfig(workspaceRoot, skipLogs);
|
|
841
805
|
}, "getWorkspaceConfig");
|
|
842
806
|
|
|
843
|
-
// ../build-tools/src/utilities/get-entry-points.ts
|
|
844
|
-
import { glob as glob2 } from "glob";
|
|
845
|
-
|
|
846
807
|
// ../build-tools/src/utilities/get-env.ts
|
|
847
808
|
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
848
809
|
return {
|
|
@@ -857,6 +818,22 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
|
857
818
|
};
|
|
858
819
|
}, "getEnv");
|
|
859
820
|
|
|
821
|
+
// ../build-tools/src/plugins/swc.ts
|
|
822
|
+
import { transform } from "@swc/core";
|
|
823
|
+
|
|
824
|
+
// ../build-tools/src/plugins/ts-resolve.ts
|
|
825
|
+
import fs from "node:fs";
|
|
826
|
+
import { builtinModules } from "node:module";
|
|
827
|
+
import path from "node:path";
|
|
828
|
+
import _resolve from "resolve";
|
|
829
|
+
|
|
830
|
+
// ../build-tools/src/plugins/type-definitions.ts
|
|
831
|
+
import { stripIndents } from "@nx/devkit";
|
|
832
|
+
import { relative } from "path";
|
|
833
|
+
|
|
834
|
+
// ../build-tools/src/utilities/get-entry-points.ts
|
|
835
|
+
import { glob as glob2 } from "glob";
|
|
836
|
+
|
|
860
837
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
861
838
|
import { existsSync as existsSync2 } from "node:fs";
|
|
862
839
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
@@ -864,66 +841,11 @@ import { readFile as readFile3 } from "node:fs/promises";
|
|
|
864
841
|
// ../build-tools/src/utilities/task-graph.ts
|
|
865
842
|
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
866
843
|
|
|
867
|
-
// src/config.ts
|
|
868
|
-
var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, context) => [
|
|
869
|
-
nodeProtocolPlugin(options, context.options),
|
|
870
|
-
resolvePathsPlugin(context),
|
|
871
|
-
fixImportsPlugin(options, context.options),
|
|
872
|
-
nativeNodeModulesPlugin(options, context.options),
|
|
873
|
-
esmSplitCodeToCjsPlugin(options, context.options),
|
|
874
|
-
tscPlugin(context),
|
|
875
|
-
onErrorPlugin(options, context.options)
|
|
876
|
-
], "getDefaultBuildPlugins");
|
|
877
|
-
var DEFAULT_BUILD_OPTIONS = {
|
|
878
|
-
assets: [],
|
|
879
|
-
platform: "node",
|
|
880
|
-
target: "node22",
|
|
881
|
-
format: "esm",
|
|
882
|
-
tsconfig: "tsconfig.json",
|
|
883
|
-
mode: "production",
|
|
884
|
-
generatePackageJson: true,
|
|
885
|
-
includeSrc: false,
|
|
886
|
-
keepNames: true,
|
|
887
|
-
metafile: false,
|
|
888
|
-
treeshake: true,
|
|
889
|
-
splitting: true,
|
|
890
|
-
shims: false,
|
|
891
|
-
watch: false,
|
|
892
|
-
bundle: true,
|
|
893
|
-
distDir: "dist",
|
|
894
|
-
loader: {
|
|
895
|
-
".aac": "file",
|
|
896
|
-
".css": "file",
|
|
897
|
-
".eot": "file",
|
|
898
|
-
".flac": "file",
|
|
899
|
-
".gif": "file",
|
|
900
|
-
".jpeg": "file",
|
|
901
|
-
".jpg": "file",
|
|
902
|
-
".mp3": "file",
|
|
903
|
-
".mp4": "file",
|
|
904
|
-
".ogg": "file",
|
|
905
|
-
".otf": "file",
|
|
906
|
-
".png": "file",
|
|
907
|
-
".svg": "file",
|
|
908
|
-
".ttf": "file",
|
|
909
|
-
".wav": "file",
|
|
910
|
-
".webm": "file",
|
|
911
|
-
".webp": "file",
|
|
912
|
-
".woff": "file",
|
|
913
|
-
".woff2": "file"
|
|
914
|
-
},
|
|
915
|
-
banner: {
|
|
916
|
-
js: DEFAULT_COMPILED_BANNER,
|
|
917
|
-
css: DEFAULT_COMPILED_BANNER
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
|
|
921
844
|
export {
|
|
845
|
+
DEFAULT_COMPILED_BANNER,
|
|
922
846
|
copyAssets,
|
|
923
847
|
addPackageDependencies,
|
|
924
848
|
addWorkspacePackageJsonFields,
|
|
925
849
|
getWorkspaceConfig,
|
|
926
|
-
getEnv
|
|
927
|
-
getDefaultBuildPlugins,
|
|
928
|
-
DEFAULT_BUILD_OPTIONS
|
|
850
|
+
getEnv
|
|
929
851
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeWarning
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TSQT5MWW.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
__require
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4D6ICA75.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
11
|
import { builtinModules } from "node:module";
|