@storm-software/esbuild 0.35.2 → 0.35.4
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/assets.cjs +6 -5
- package/dist/assets.js +5 -4
- package/dist/build.cjs +14 -13
- package/dist/build.js +13 -12
- package/dist/{chunk-PTHYT3U2.cjs → chunk-2CJUAFMG.cjs} +163 -154
- package/dist/{chunk-G66JI4BS.cjs → chunk-3ER3O2N3.cjs} +9 -5
- package/dist/chunk-3HCV5NMP.js +6 -0
- package/dist/chunk-72DS7WUW.js +56 -0
- package/dist/{chunk-EVDNG72R.cjs → chunk-CJBZHSAG.cjs} +65 -35
- package/dist/{chunk-VTBMJYSM.cjs → chunk-GJI5FYRO.cjs} +8 -6
- package/dist/{chunk-2CM3VAO5.cjs → chunk-GPSIB7RA.cjs} +16 -12
- package/dist/{chunk-SLSBBNRF.cjs → chunk-HLE5J5AB.cjs} +7 -3
- package/dist/{chunk-NJJBR57W.js → chunk-IEJ6BIBN.js} +47 -3
- package/dist/chunk-IM7Z56V7.cjs +6 -0
- package/dist/{chunk-EBTMX5WL.js → chunk-JRKB3XC2.js} +11 -9
- package/dist/{chunk-DNZNN5SK.js → chunk-L7EGMPJS.js} +5 -3
- package/dist/{chunk-ABRK5MYP.js → chunk-LWQT37TY.js} +6 -2
- package/dist/{chunk-EDLA3ZZN.js → chunk-MIE6K233.js} +6 -4
- package/dist/{chunk-4D6ICA75.js → chunk-OGJYKJUE.js} +5 -36
- package/dist/{chunk-ECCVVXNX.js → chunk-QKGOTZZN.js} +10 -6
- package/dist/{chunk-YHMM6RY5.cjs → chunk-QU4XYXHY.cjs} +11 -42
- package/dist/{chunk-QWTKBUQW.js → chunk-QZO37X4D.js} +13 -3
- package/dist/{chunk-R2KKGNQL.js → chunk-RJOHRX3W.js} +8 -4
- package/dist/{chunk-CVOQEYHW.cjs → chunk-SBOWWDIH.cjs} +29 -27
- package/dist/{chunk-WXURMFT7.js → chunk-SLL6OQKH.js} +5 -1
- package/dist/chunk-TJGIVJ4K.cjs +49 -0
- package/dist/{chunk-RK34D7S5.cjs → chunk-U5I2425O.cjs} +8 -6
- package/dist/{chunk-TSQT5MWW.js → chunk-UUHNTIEX.js} +32 -2
- package/dist/{chunk-OCDIIBBZ.js → chunk-VCOHFFZB.js} +5 -3
- package/dist/{chunk-QVMJLFU5.cjs → chunk-VQ54NALW.cjs} +9 -7
- package/dist/{chunk-WLJT52I3.cjs → chunk-WLEC2JTG.cjs} +21 -17
- package/dist/{chunk-FQQYNAPT.cjs → chunk-ZMGVM7NZ.cjs} +126 -82
- package/dist/clean.cjs +5 -4
- package/dist/clean.js +4 -3
- package/dist/config.cjs +6 -5
- package/dist/config.js +5 -4
- package/dist/context.cjs +8 -7
- package/dist/context.js +7 -6
- package/dist/index.cjs +20 -14
- package/dist/index.js +19 -13
- package/dist/package-json.cjs +6 -5
- package/dist/package-json.js +5 -4
- package/dist/plugins/deps-check.cjs +5 -4
- package/dist/plugins/deps-check.js +4 -3
- package/dist/plugins/resolve-paths.cjs +4 -3
- package/dist/plugins/resolve-paths.js +3 -2
- package/dist/tsup.cjs +5 -4
- package/dist/tsup.js +4 -3
- package/dist/types.cjs +2 -1
- package/dist/types.js +2 -1
- package/dist/watch.cjs +15 -11
- package/dist/watch.js +7 -3
- package/package.json +4 -4
- package/dist/chunk-GGNOJ77I.js +0 -0
- package/dist/chunk-SFZRYJZ2.cjs +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
depsCheckPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCOHFFZB.js";
|
|
4
4
|
import {
|
|
5
5
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MIE6K233.js";
|
|
7
7
|
import {
|
|
8
8
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L7EGMPJS.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QKGOTZZN.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RJOHRX3W.js";
|
|
16
16
|
import {
|
|
17
17
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QZO37X4D.js";
|
|
19
19
|
import {
|
|
20
20
|
getStopwatch,
|
|
21
21
|
writeDebug,
|
|
@@ -23,12 +23,14 @@ import {
|
|
|
23
23
|
writeFatal,
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UUHNTIEX.js";
|
|
27
27
|
import {
|
|
28
|
-
__name
|
|
29
|
-
|
|
28
|
+
__name,
|
|
29
|
+
init_esm_shims
|
|
30
|
+
} from "./chunk-72DS7WUW.js";
|
|
30
31
|
|
|
31
32
|
// src/build.ts
|
|
33
|
+
init_esm_shims();
|
|
32
34
|
import * as esbuild from "esbuild";
|
|
33
35
|
import { globbySync } from "globby";
|
|
34
36
|
async function reportResults(context) {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStopwatch,
|
|
3
3
|
writeDebug
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UUHNTIEX.js";
|
|
5
5
|
import {
|
|
6
|
-
__name
|
|
7
|
-
|
|
6
|
+
__name,
|
|
7
|
+
init_esm_shims
|
|
8
|
+
} from "./chunk-72DS7WUW.js";
|
|
8
9
|
|
|
9
10
|
// src/clean.ts
|
|
11
|
+
init_esm_shims();
|
|
10
12
|
import { rm } from "node:fs/promises";
|
|
11
13
|
async function clean(name = "ESBuild", directory, config) {
|
|
12
14
|
writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
joinPaths
|
|
3
|
+
} from "./chunk-OGJYKJUE.js";
|
|
1
4
|
import {
|
|
2
5
|
__name,
|
|
3
6
|
__require,
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
7
|
+
init_esm_shims
|
|
8
|
+
} from "./chunk-72DS7WUW.js";
|
|
6
9
|
|
|
7
10
|
// src/plugins/resolve-paths.ts
|
|
11
|
+
init_esm_shims();
|
|
8
12
|
import path from "node:path";
|
|
9
13
|
function resolvePathsConfig(options, cwd) {
|
|
10
14
|
if (options?.compilerOptions?.paths) {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IEJ6BIBN.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UUHNTIEX.js";
|
|
8
8
|
import {
|
|
9
|
-
__name
|
|
10
|
-
|
|
9
|
+
__name,
|
|
10
|
+
init_esm_shims
|
|
11
|
+
} from "./chunk-72DS7WUW.js";
|
|
11
12
|
|
|
12
13
|
// src/assets.ts
|
|
14
|
+
init_esm_shims();
|
|
13
15
|
async function copyBuildAssets(context) {
|
|
14
16
|
if (context.result?.errors.length === 0) {
|
|
15
17
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
@@ -1,37 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
));
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-72DS7WUW.js";
|
|
33
5
|
|
|
34
6
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
7
|
+
init_esm_shims();
|
|
35
8
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
36
9
|
function normalizeWindowsPath(input = "") {
|
|
37
10
|
if (!input) {
|
|
@@ -159,10 +132,6 @@ var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
|
159
132
|
}, "isAbsolute");
|
|
160
133
|
|
|
161
134
|
export {
|
|
162
|
-
__name,
|
|
163
|
-
__require,
|
|
164
|
-
__commonJS,
|
|
165
|
-
__toESM,
|
|
166
135
|
correctPaths,
|
|
167
136
|
joinPaths
|
|
168
137
|
};
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePathsPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LWQT37TY.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SLL6OQKH.js";
|
|
7
7
|
import {
|
|
8
8
|
getEnv,
|
|
9
9
|
getWorkspaceConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IEJ6BIBN.js";
|
|
11
11
|
import {
|
|
12
12
|
getStopwatch,
|
|
13
13
|
writeDebug
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UUHNTIEX.js";
|
|
15
15
|
import {
|
|
16
|
-
__name,
|
|
17
16
|
joinPaths
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OGJYKJUE.js";
|
|
18
|
+
import {
|
|
19
|
+
__name,
|
|
20
|
+
init_esm_shims
|
|
21
|
+
} from "./chunk-72DS7WUW.js";
|
|
19
22
|
|
|
20
23
|
// src/context.ts
|
|
24
|
+
init_esm_shims();
|
|
21
25
|
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
|
|
22
26
|
import defu from "defu";
|
|
23
27
|
import { existsSync } from "node:fs";
|
|
@@ -1,37 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
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
|
-
));
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkTJGIVJ4Kcjs = require('./chunk-TJGIVJ4K.cjs');
|
|
33
5
|
|
|
34
6
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
7
|
+
_chunkTJGIVJ4Kcjs.init_cjs_shims.call(void 0, );
|
|
35
8
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
36
9
|
function normalizeWindowsPath(input = "") {
|
|
37
10
|
if (!input) {
|
|
@@ -39,11 +12,11 @@ function normalizeWindowsPath(input = "") {
|
|
|
39
12
|
}
|
|
40
13
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
41
14
|
}
|
|
42
|
-
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
15
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
43
16
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
44
17
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
45
18
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
46
|
-
var correctPaths = /* @__PURE__ */ __name(function(path) {
|
|
19
|
+
var correctPaths = /* @__PURE__ */ _chunkTJGIVJ4Kcjs.__name.call(void 0, function(path) {
|
|
47
20
|
if (!path || path.length === 0) {
|
|
48
21
|
return ".";
|
|
49
22
|
}
|
|
@@ -72,7 +45,7 @@ var correctPaths = /* @__PURE__ */ __name(function(path) {
|
|
|
72
45
|
}
|
|
73
46
|
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
74
47
|
}, "correctPaths");
|
|
75
|
-
var joinPaths = /* @__PURE__ */ __name(function(...segments) {
|
|
48
|
+
var joinPaths = /* @__PURE__ */ _chunkTJGIVJ4Kcjs.__name.call(void 0, function(...segments) {
|
|
76
49
|
let path = "";
|
|
77
50
|
for (const seg of segments) {
|
|
78
51
|
if (!seg) {
|
|
@@ -153,16 +126,12 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
153
126
|
}
|
|
154
127
|
return res;
|
|
155
128
|
}
|
|
156
|
-
__name(normalizeString, "normalizeString");
|
|
157
|
-
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
129
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
130
|
+
var isAbsolute = /* @__PURE__ */ _chunkTJGIVJ4Kcjs.__name.call(void 0, function(p) {
|
|
158
131
|
return _IS_ABSOLUTE_RE.test(p);
|
|
159
132
|
}, "isAbsolute");
|
|
160
133
|
|
|
161
134
|
|
|
162
135
|
|
|
163
136
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
|
|
137
|
+
exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStopwatch,
|
|
3
3
|
writeDebug
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UUHNTIEX.js";
|
|
5
|
+
import {
|
|
6
|
+
joinPaths
|
|
7
|
+
} from "./chunk-OGJYKJUE.js";
|
|
5
8
|
import {
|
|
6
9
|
__commonJS,
|
|
10
|
+
__dirname,
|
|
7
11
|
__name,
|
|
8
12
|
__require,
|
|
9
13
|
__toESM,
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
init_esm_shims
|
|
15
|
+
} from "./chunk-72DS7WUW.js";
|
|
12
16
|
|
|
13
17
|
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/dist/chunk-BYH4XDRH.js
|
|
14
18
|
var require_chunk_BYH4XDRH = __commonJS({
|
|
15
19
|
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
|
|
16
20
|
"use strict";
|
|
21
|
+
init_esm_shims();
|
|
17
22
|
Object.defineProperty(exports, "__esModule", {
|
|
18
23
|
value: true
|
|
19
24
|
});
|
|
@@ -26,6 +31,7 @@ var require_chunk_BYH4XDRH = __commonJS({
|
|
|
26
31
|
var require_chunk_TWFEYLU4 = __commonJS({
|
|
27
32
|
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
|
|
28
33
|
"use strict";
|
|
34
|
+
init_esm_shims();
|
|
29
35
|
Object.defineProperty(exports, "__esModule", {
|
|
30
36
|
value: true
|
|
31
37
|
});
|
|
@@ -436,6 +442,7 @@ var require_chunk_TWFEYLU4 = __commonJS({
|
|
|
436
442
|
var require_chunk_VGC3FXLU = __commonJS({
|
|
437
443
|
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
|
|
438
444
|
"use strict";
|
|
445
|
+
init_esm_shims();
|
|
439
446
|
Object.defineProperty(exports, "__esModule", {
|
|
440
447
|
value: true
|
|
441
448
|
});
|
|
@@ -696,6 +703,7 @@ var require_chunk_VGC3FXLU = __commonJS({
|
|
|
696
703
|
var require_chunk_JZ25TPTY = __commonJS({
|
|
697
704
|
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
|
|
698
705
|
"use strict";
|
|
706
|
+
init_esm_shims();
|
|
699
707
|
Object.defineProperty(exports, "__esModule", {
|
|
700
708
|
value: true
|
|
701
709
|
});
|
|
@@ -749,6 +757,7 @@ var require_chunk_JZ25TPTY = __commonJS({
|
|
|
749
757
|
var require_dist = __commonJS({
|
|
750
758
|
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/dist/index.js"(exports) {
|
|
751
759
|
"use strict";
|
|
760
|
+
init_esm_shims();
|
|
752
761
|
Object.defineProperty(exports, "__esModule", {
|
|
753
762
|
value: true
|
|
754
763
|
});
|
|
@@ -2526,6 +2535,7 @@ module.exports = exports.default;
|
|
|
2526
2535
|
});
|
|
2527
2536
|
|
|
2528
2537
|
// src/tsup.ts
|
|
2538
|
+
init_esm_shims();
|
|
2529
2539
|
var import_tsup = __toESM(require_dist(), 1);
|
|
2530
2540
|
async function executeTsup(context) {
|
|
2531
2541
|
writeDebug(` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IEJ6BIBN.js";
|
|
5
5
|
import {
|
|
6
6
|
getStopwatch,
|
|
7
7
|
writeDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UUHNTIEX.js";
|
|
9
9
|
import {
|
|
10
|
-
__name,
|
|
11
10
|
joinPaths
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OGJYKJUE.js";
|
|
12
|
+
import {
|
|
13
|
+
__name,
|
|
14
|
+
init_esm_shims
|
|
15
|
+
} from "./chunk-72DS7WUW.js";
|
|
13
16
|
|
|
14
17
|
// src/package-json.ts
|
|
18
|
+
init_esm_shims();
|
|
15
19
|
import { writeJsonFile } from "@nx/devkit";
|
|
16
20
|
import { existsSync } from "node:fs";
|
|
17
21
|
import hf from "node:fs/promises";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
|
|
3
|
+
var _chunkGJI5FYROcjs = require('./chunk-GJI5FYRO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVQ54NALWcjs = require('./chunk-VQ54NALW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkU5I2425Ocjs = require('./chunk-U5I2425O.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkWLEC2JTGcjs = require('./chunk-WLEC2JTG.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGPSIB7RAcjs = require('./chunk-GPSIB7RA.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk2CJUAFMGcjs = require('./chunk-2CJUAFMG.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,26 +23,28 @@ var _chunkPTHYT3U2cjs = require('./chunk-PTHYT3U2.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkCJBZHSAGcjs = require('./chunk-CJBZHSAG.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
var _chunkTJGIVJ4Kcjs = require('./chunk-TJGIVJ4K.cjs');
|
|
30
31
|
|
|
31
32
|
// src/build.ts
|
|
33
|
+
_chunkTJGIVJ4Kcjs.init_cjs_shims.call(void 0, );
|
|
32
34
|
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
33
35
|
var _globby = require('globby');
|
|
34
36
|
async function reportResults(context) {
|
|
35
37
|
if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
|
|
36
38
|
if (context.result.warnings.length > 0) {
|
|
37
|
-
|
|
39
|
+
_chunkCJBZHSAGcjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`, context.workspaceConfig);
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
_chunkCJBZHSAGcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context.options.name} build completed successfully`, context.workspaceConfig);
|
|
40
42
|
} else if (_optionalChain([context, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.errors]) && _optionalChain([context, 'access', _6 => _6.result, 'optionalAccess', _7 => _7.errors, 'access', _8 => _8.length]) > 0) {
|
|
41
|
-
|
|
43
|
+
_chunkCJBZHSAGcjs.writeError.call(void 0, ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`, context.workspaceConfig);
|
|
42
44
|
throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
|
-
|
|
47
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, reportResults, "reportResults");
|
|
46
48
|
async function dependencyCheck(options) {
|
|
47
49
|
if (process.env.DEV === "true") {
|
|
48
50
|
return void 0;
|
|
@@ -65,27 +67,27 @@ async function dependencyCheck(options) {
|
|
|
65
67
|
write: false,
|
|
66
68
|
outdir: "out",
|
|
67
69
|
plugins: [
|
|
68
|
-
|
|
70
|
+
_chunkGJI5FYROcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
69
71
|
]
|
|
70
72
|
});
|
|
71
73
|
await buildPromise.catch(() => {
|
|
72
74
|
});
|
|
73
75
|
return void 0;
|
|
74
76
|
}
|
|
75
|
-
|
|
77
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
76
78
|
async function cleanOutputPath(context) {
|
|
77
79
|
if (context.clean !== false && context.outputPath) {
|
|
78
|
-
|
|
79
|
-
const stopwatch =
|
|
80
|
-
await
|
|
80
|
+
_chunkCJBZHSAGcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`, context.workspaceConfig);
|
|
81
|
+
const stopwatch = _chunkCJBZHSAGcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
82
|
+
await _chunkU5I2425Ocjs.cleanDirectories.call(void 0, context.outputPath);
|
|
81
83
|
stopwatch();
|
|
82
84
|
}
|
|
83
85
|
return context;
|
|
84
86
|
}
|
|
85
|
-
|
|
87
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
86
88
|
async function build2(options) {
|
|
87
|
-
|
|
88
|
-
const stopwatch =
|
|
89
|
+
_chunkCJBZHSAGcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
90
|
+
const stopwatch = _chunkCJBZHSAGcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
89
91
|
try {
|
|
90
92
|
const opts = Array.isArray(options) ? options : [
|
|
91
93
|
options
|
|
@@ -93,24 +95,24 @@ async function build2(options) {
|
|
|
93
95
|
if (opts.length === 0) {
|
|
94
96
|
throw new Error("No build options were provided");
|
|
95
97
|
}
|
|
96
|
-
const context = await
|
|
98
|
+
const context = await _chunkWLEC2JTGcjs.resolveContext.call(void 0, options);
|
|
97
99
|
await cleanOutputPath(context);
|
|
98
100
|
await Promise.all([
|
|
99
101
|
dependencyCheck(context.options),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
_chunkGPSIB7RAcjs.generatePackageJson.call(void 0, context),
|
|
103
|
+
_chunkVQ54NALWcjs.copyBuildAssets.call(void 0, context),
|
|
104
|
+
_chunk2CJUAFMGcjs.executeTsup.call(void 0, context)
|
|
103
105
|
]);
|
|
104
106
|
await reportResults(context);
|
|
105
|
-
|
|
107
|
+
_chunkCJBZHSAGcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
106
108
|
} catch (error) {
|
|
107
|
-
|
|
109
|
+
_chunkCJBZHSAGcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
108
110
|
throw error;
|
|
109
111
|
} finally {
|
|
110
112
|
stopwatch();
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
|
-
|
|
115
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, build2, "build");
|
|
114
116
|
|
|
115
117
|
|
|
116
118
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_COMPILED_BANNER
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IEJ6BIBN.js";
|
|
4
|
+
import {
|
|
5
|
+
init_esm_shims
|
|
6
|
+
} from "./chunk-72DS7WUW.js";
|
|
4
7
|
|
|
5
8
|
// src/config.ts
|
|
9
|
+
init_esm_shims();
|
|
6
10
|
var DEFAULT_BUILD_OPTIONS = {
|
|
7
11
|
assets: [],
|
|
8
12
|
platform: "node",
|
|
@@ -0,0 +1,49 @@
|
|
|
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 __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/assets/cjs_shims.js
|
|
38
|
+
var init_cjs_shims = __esm({
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__c75bd232a33dcb63ad2eb667808a0247/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCJBZHSAGcjs = require('./chunk-CJBZHSAG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
var _chunkTJGIVJ4Kcjs = require('./chunk-TJGIVJ4K.cjs');
|
|
8
9
|
|
|
9
10
|
// src/clean.ts
|
|
11
|
+
_chunkTJGIVJ4Kcjs.init_cjs_shims.call(void 0, );
|
|
10
12
|
var _promises = require('fs/promises');
|
|
11
13
|
async function clean(name = "ESBuild", directory, config) {
|
|
12
|
-
|
|
13
|
-
const stopwatch =
|
|
14
|
+
_chunkCJBZHSAGcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
15
|
+
const stopwatch = _chunkCJBZHSAGcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
14
16
|
await cleanDirectories(directory);
|
|
15
17
|
stopwatch();
|
|
16
18
|
}
|
|
17
|
-
|
|
19
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, clean, "clean");
|
|
18
20
|
async function cleanDirectories(directory) {
|
|
19
21
|
await _promises.rm.call(void 0, directory, {
|
|
20
22
|
recursive: true,
|
|
21
23
|
force: true
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
|
-
|
|
26
|
+
_chunkTJGIVJ4Kcjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
|