@storm-software/esbuild 0.47.6 → 0.47.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/bin/esbuild.cjs +79 -190
- package/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +12 -13
- package/dist/build.js +11 -12
- package/dist/{chunk-3AGYI4VF.cjs → chunk-4F23ZOVV.cjs} +13 -13
- package/dist/{chunk-ZTXUCRQI.cjs → chunk-4KTFAYGL.cjs} +87 -85
- package/dist/{chunk-VAO4QKEE.js → chunk-4QE4FZB2.js} +10 -41
- package/dist/{chunk-47WNZ6KT.js → chunk-4YDNSQCF.js} +2 -2
- package/dist/{chunk-KANU5TF6.js → chunk-5EIXD3FY.js} +15 -15
- package/dist/{chunk-KVRTFBTL.js → chunk-5OCVL4NC.js} +2 -2
- package/dist/{chunk-QVVISOIX.cjs → chunk-5R2QF7FG.cjs} +5 -5
- package/dist/{chunk-X7PWPAJM.cjs → chunk-7DZ3NOLB.cjs} +9 -9
- package/dist/{chunk-AQMXDBIP.js → chunk-B4VYSTGG.js} +1 -1
- package/dist/{chunk-KVLFERWL.cjs → chunk-BG2GOKPN.cjs} +5 -5
- package/dist/{chunk-ZKNTC3HX.js → chunk-CKFE6AY5.js} +1 -1
- package/dist/{chunk-KN6VYOCG.cjs → chunk-DNQXOUY4.cjs} +18 -18
- package/dist/{chunk-ICYKKALZ.cjs → chunk-E7QRYIXP.cjs} +7 -7
- package/dist/chunk-EI2RU6ED.cjs +6 -0
- package/dist/{chunk-RXXWO456.js → chunk-FGEXMBEE.js} +1 -1
- package/dist/{chunk-KRQE5BEE.cjs → chunk-I7VU53I5.cjs} +2 -2
- package/dist/{chunk-46KVHK5G.cjs → chunk-JG7MZJV2.cjs} +2 -2
- package/dist/{chunk-BGYYR2GS.js → chunk-NVYTS7UE.js} +9 -7
- package/dist/{chunk-IPGUYQJR.js → chunk-R3SVN3BO.js} +3 -3
- package/dist/{chunk-VJHTVG7F.js → chunk-SPIG74KS.js} +4 -4
- package/dist/chunk-TQ7FXT5W.cjs +94 -0
- package/dist/{chunk-WQ3UV5CE.cjs → chunk-VIQ4UDWA.cjs} +64 -64
- package/dist/{chunk-ZDESEGGN.js → chunk-W4OIIV5S.js} +2 -2
- package/dist/{chunk-L6FX7336.js → chunk-ZXS7BLGE.js} +5 -5
- package/dist/clean.cjs +4 -4
- package/dist/clean.js +3 -3
- package/dist/config.cjs +6 -6
- package/dist/config.js +5 -5
- package/dist/context.cjs +7 -7
- package/dist/context.js +6 -6
- package/dist/index.cjs +14 -15
- package/dist/index.js +12 -13
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +91 -5
- package/dist/plugins/deps-check.js +90 -4
- package/dist/plugins/resolve-paths.cjs +11 -11
- package/dist/plugins/resolve-paths.js +2 -2
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types.cjs +2 -2
- package/dist/types.js +2 -2
- package/dist/watch.cjs +6 -6
- package/dist/watch.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-2SJSYCMS.cjs +0 -6
- package/dist/chunk-EK3ZTIFX.cjs +0 -125
- package/dist/chunk-FRKTWYQJ.js +0 -95
- package/dist/chunk-PFWT2TZY.cjs +0 -95
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
depsCheckPlugin
|
|
3
|
-
} from "./chunk-FRKTWYQJ.js";
|
|
4
1
|
import {
|
|
5
2
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R3SVN3BO.js";
|
|
7
4
|
import {
|
|
8
5
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4YDNSQCF.js";
|
|
10
7
|
import {
|
|
11
8
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZXS7BLGE.js";
|
|
13
10
|
import {
|
|
14
11
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SPIG74KS.js";
|
|
16
13
|
import {
|
|
17
14
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5EIXD3FY.js";
|
|
19
16
|
import {
|
|
20
17
|
getStopwatch,
|
|
21
18
|
writeDebug,
|
|
@@ -23,15 +20,13 @@ import {
|
|
|
23
20
|
writeFatal,
|
|
24
21
|
writeSuccess,
|
|
25
22
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CKFE6AY5.js";
|
|
27
24
|
import {
|
|
28
25
|
init_esm_shims
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5OCVL4NC.js";
|
|
30
27
|
|
|
31
28
|
// src/build.ts
|
|
32
29
|
init_esm_shims();
|
|
33
|
-
import * as esbuild from "esbuild";
|
|
34
|
-
import { globbySync } from "globby";
|
|
35
30
|
async function reportResults(context) {
|
|
36
31
|
if (context.result?.errors.length === 0) {
|
|
37
32
|
if (context.result.warnings.length > 0) {
|
|
@@ -54,32 +49,6 @@ async function reportResults(context) {
|
|
|
54
49
|
);
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
|
-
async function dependencyCheck(options) {
|
|
58
|
-
if (process.env.DEV === "true") {
|
|
59
|
-
return void 0;
|
|
60
|
-
}
|
|
61
|
-
if (process.env.CI && !process.env.BUILDKITE) {
|
|
62
|
-
return void 0;
|
|
63
|
-
}
|
|
64
|
-
const buildPromise = esbuild.build({
|
|
65
|
-
entryPoints: globbySync("**/*.{j,t}s", {
|
|
66
|
-
// We don't check dependencies in ecosystem tests because tests are isolated from the build.
|
|
67
|
-
ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
|
|
68
|
-
gitignore: true
|
|
69
|
-
}),
|
|
70
|
-
logLevel: "silent",
|
|
71
|
-
// there will be errors
|
|
72
|
-
bundle: true,
|
|
73
|
-
// we bundle to get everything
|
|
74
|
-
write: false,
|
|
75
|
-
// no need to write for analysis
|
|
76
|
-
outdir: "out",
|
|
77
|
-
plugins: [depsCheckPlugin(options.bundle)]
|
|
78
|
-
});
|
|
79
|
-
await buildPromise.catch(() => {
|
|
80
|
-
});
|
|
81
|
-
return void 0;
|
|
82
|
-
}
|
|
83
52
|
async function cleanOutputPath(context) {
|
|
84
53
|
if (context.clean !== false && context.outputPath) {
|
|
85
54
|
writeDebug(
|
|
@@ -92,7 +61,7 @@ async function cleanOutputPath(context) {
|
|
|
92
61
|
}
|
|
93
62
|
return context;
|
|
94
63
|
}
|
|
95
|
-
async function
|
|
64
|
+
async function build(options) {
|
|
96
65
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
97
66
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
98
67
|
try {
|
|
@@ -103,7 +72,7 @@ async function build2(options) {
|
|
|
103
72
|
const context = await resolveContext(options);
|
|
104
73
|
await cleanOutputPath(context);
|
|
105
74
|
await Promise.all([
|
|
106
|
-
dependencyCheck(context.options),
|
|
75
|
+
// dependencyCheck(context.options),
|
|
107
76
|
generatePackageJson(context),
|
|
108
77
|
copyBuildAssets(context),
|
|
109
78
|
executeTsup(context)
|
|
@@ -121,5 +90,5 @@ async function build2(options) {
|
|
|
121
90
|
}
|
|
122
91
|
|
|
123
92
|
export {
|
|
124
|
-
|
|
93
|
+
build
|
|
125
94
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
joinPaths
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B4VYSTGG.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CKFE6AY5.js";
|
|
8
8
|
import {
|
|
9
9
|
__commonJS,
|
|
10
10
|
__dirname,
|
|
11
11
|
__require,
|
|
12
12
|
__toESM,
|
|
13
13
|
init_esm_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5OCVL4NC.js";
|
|
15
15
|
|
|
16
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
16
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-BYH4XDRH.js
|
|
17
17
|
var require_chunk_BYH4XDRH = __commonJS({
|
|
18
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
18
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
|
|
19
19
|
"use strict";
|
|
20
20
|
init_esm_shims();
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -24,13 +24,13 @@ var require_chunk_BYH4XDRH = __commonJS({
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
27
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-TWFEYLU4.js
|
|
28
28
|
import * as __import_fs from "fs";
|
|
29
29
|
import * as __import_path from "path";
|
|
30
30
|
import * as __import_resolveFrom from "resolve-from";
|
|
31
31
|
import * as __import_tinyglobby from "tinyglobby";
|
|
32
32
|
var require_chunk_TWFEYLU4 = __commonJS({
|
|
33
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
33
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
|
|
34
34
|
init_esm_shims();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
function _interopRequireDefault(obj) {
|
|
@@ -406,7 +406,7 @@ var require_chunk_TWFEYLU4 = __commonJS({
|
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
|
|
409
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
409
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-VGC3FXLU.js
|
|
410
410
|
import * as __import_fs2 from "fs";
|
|
411
411
|
import * as __import_path2 from "path";
|
|
412
412
|
import * as __import_joycon from "joycon";
|
|
@@ -415,7 +415,7 @@ import * as __import_util from "util";
|
|
|
415
415
|
import * as __import_worker_threads from "worker_threads";
|
|
416
416
|
import * as __import_picocolors from "picocolors";
|
|
417
417
|
var require_chunk_VGC3FXLU = __commonJS({
|
|
418
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
418
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
|
|
419
419
|
init_esm_shims();
|
|
420
420
|
var __import___chunkTWFEYLU4_js = __toESM(require_chunk_TWFEYLU4());
|
|
421
421
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -642,11 +642,11 @@ var require_chunk_VGC3FXLU = __commonJS({
|
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
|
|
645
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
645
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-JZ25TPTY.js
|
|
646
646
|
import * as __import_worker_threads2 from "worker_threads";
|
|
647
647
|
import * as __import_picocolors2 from "picocolors";
|
|
648
648
|
var require_chunk_JZ25TPTY = __commonJS({
|
|
649
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
649
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
|
|
650
650
|
init_esm_shims();
|
|
651
651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
652
652
|
function _interopRequireDefault(obj) {
|
|
@@ -694,11 +694,11 @@ var require_chunk_JZ25TPTY = __commonJS({
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
|
|
697
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
697
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/commonjs-plugin.js
|
|
698
698
|
import * as __import_fs3 from "fs";
|
|
699
699
|
import * as __import_esbuild from "esbuild";
|
|
700
700
|
var require_commonjs_plugin = __commonJS({
|
|
701
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
701
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
|
|
702
702
|
init_esm_shims();
|
|
703
703
|
var __defProp = Object.defineProperty;
|
|
704
704
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1026,7 +1026,7 @@ var require_commonjs_plugin = __commonJS({
|
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
|
|
1029
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1029
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/index.js
|
|
1030
1030
|
import * as __import_path3 from "path";
|
|
1031
1031
|
import * as __import_fs4 from "fs";
|
|
1032
1032
|
import * as __import_worker_threads3 from "worker_threads";
|
|
@@ -1042,7 +1042,7 @@ import * as __import_rollup from "rollup";
|
|
|
1042
1042
|
import * as __import_typescript from "typescript";
|
|
1043
1043
|
import * as __import_chokidar from "chokidar";
|
|
1044
1044
|
var require_dist = __commonJS({
|
|
1045
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1045
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/dist/index.js"(exports) {
|
|
1046
1046
|
init_esm_shims();
|
|
1047
1047
|
var __import___chunkBYH4XDRH_js = __toESM(require_chunk_BYH4XDRH());
|
|
1048
1048
|
var __import___chunkVGC3FXLU_js = __toESM(require_chunk_VGC3FXLU());
|
|
@@ -33,12 +33,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/assets/esm_shims.js
|
|
37
37
|
import { fileURLToPath } from "url";
|
|
38
38
|
import path from "path";
|
|
39
39
|
var getFilename, getDirname, __dirname;
|
|
40
40
|
var init_esm_shims = __esm({
|
|
41
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
41
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/assets/esm_shims.js"() {
|
|
42
42
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
43
43
|
getDirname = () => path.dirname(getFilename());
|
|
44
44
|
__dirname = /* @__PURE__ */ getDirname();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4KTFAYGLcjs = require('./chunk-4KTFAYGL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJG7MZJV2cjs = require('./chunk-JG7MZJV2.cjs');
|
|
7
7
|
|
|
8
8
|
// src/config.ts
|
|
9
|
-
|
|
9
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var DEFAULT_BUILD_OPTIONS = {
|
|
11
11
|
platform: "node",
|
|
12
12
|
target: "node22",
|
|
@@ -44,8 +44,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
44
44
|
".woff2": "file"
|
|
45
45
|
},
|
|
46
46
|
banner: {
|
|
47
|
-
js:
|
|
48
|
-
css:
|
|
47
|
+
js: _chunk4KTFAYGLcjs.DEFAULT_COMPILED_BANNER,
|
|
48
|
+
css: _chunk4KTFAYGLcjs.DEFAULT_COMPILED_BANNER
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunkJG7MZJV2cjs = require('./chunk-JG7MZJV2.cjs');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/logger/console.ts
|
|
6
|
-
|
|
6
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
7
7
|
|
|
8
8
|
// ../config-tools/src/types.ts
|
|
9
|
-
|
|
9
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var LogLevel = {
|
|
11
11
|
SILENT: 0,
|
|
12
12
|
FATAL: 10,
|
|
@@ -31,7 +31,7 @@ var LogLevelLabel = {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// ../config-tools/src/utilities/colors.ts
|
|
34
|
-
|
|
34
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
35
35
|
var DEFAULT_COLOR_CONFIG = {
|
|
36
36
|
light: {
|
|
37
37
|
background: "#fafafa",
|
|
@@ -68,7 +68,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
// ../config-tools/src/logger/chalk.ts
|
|
71
|
-
|
|
71
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
72
72
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
73
73
|
var chalkDefault = {
|
|
74
74
|
hex: (_) => (message) => message,
|
|
@@ -102,10 +102,10 @@ var getChalk = () => {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
// ../config-tools/src/logger/console-icons.ts
|
|
105
|
-
|
|
105
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
106
106
|
|
|
107
107
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
108
|
-
|
|
108
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
109
109
|
function isUnicodeSupported() {
|
|
110
110
|
if (process.platform !== "win32") {
|
|
111
111
|
return process.env.TERM !== "linux";
|
|
@@ -130,13 +130,13 @@ var CONSOLE_ICONS = {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
133
|
-
|
|
133
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
134
134
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
135
135
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
// ../config-tools/src/logger/get-log-level.ts
|
|
139
|
-
|
|
139
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
140
140
|
var getLogLevel = (label) => {
|
|
141
141
|
switch (label) {
|
|
142
142
|
case "all":
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7DZ3NOLBcjs = require('./chunk-7DZ3NOLB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJG7MZJV2cjs = require('./chunk-JG7MZJV2.cjs');
|
|
8
8
|
|
|
9
9
|
// src/clean.ts
|
|
10
|
-
|
|
10
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
var _promises = require('fs/promises');
|
|
12
12
|
async function clean(name = "ESBuild", directory, config) {
|
|
13
|
-
|
|
14
|
-
const stopwatch =
|
|
13
|
+
_chunk7DZ3NOLBcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
14
|
+
const stopwatch = _chunk7DZ3NOLBcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
15
15
|
await cleanDirectories(directory);
|
|
16
16
|
stopwatch();
|
|
17
17
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunk5R2QF7FGcjs = require('./chunk-5R2QF7FG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4KTFAYGLcjs = require('./chunk-4KTFAYGL.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkI7VU53I5cjs = require('./chunk-I7VU53I5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk7DZ3NOLBcjs = require('./chunk-7DZ3NOLB.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkJG7MZJV2cjs = require('./chunk-JG7MZJV2.cjs');
|
|
19
19
|
|
|
20
20
|
// src/context.ts
|
|
21
|
-
|
|
21
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,15 +33,15 @@ async function resolveContext(userOptions) {
|
|
|
33
33
|
if (!workspaceRoot) {
|
|
34
34
|
throw new Error("Cannot find Nx workspace root");
|
|
35
35
|
}
|
|
36
|
-
const workspaceConfig = await
|
|
36
|
+
const workspaceConfig = await _chunk4KTFAYGLcjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunk7DZ3NOLBcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunk7DZ3NOLBcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
41
41
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
42
42
|
exitOnError: true
|
|
43
43
|
});
|
|
44
|
-
const projectJsonPath =
|
|
44
|
+
const projectJsonPath = _chunkI7VU53I5cjs.joinPaths.call(void 0,
|
|
45
45
|
workspaceRoot.dir,
|
|
46
46
|
projectRoot,
|
|
47
47
|
"project.json"
|
|
@@ -58,9 +58,9 @@ async function resolveContext(userOptions) {
|
|
|
58
58
|
"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."
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
61
|
+
const options = _defu2.default.call(void 0, userOptions, _chunk5R2QF7FGcjs.DEFAULT_BUILD_OPTIONS);
|
|
62
62
|
options.name ??= projectName;
|
|
63
|
-
const packageJsonPath =
|
|
63
|
+
const packageJsonPath = _chunkI7VU53I5cjs.joinPaths.call(void 0,
|
|
64
64
|
workspaceRoot.dir,
|
|
65
65
|
options.projectRoot,
|
|
66
66
|
"package.json"
|
|
@@ -68,11 +68,11 @@ async function resolveContext(userOptions) {
|
|
|
68
68
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
69
69
|
throw new Error("Cannot find package.json configuration");
|
|
70
70
|
}
|
|
71
|
-
const env =
|
|
71
|
+
const env = _chunk4KTFAYGLcjs.getEnv.call(void 0, "esbuild", options);
|
|
72
72
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
73
73
|
const resolvedOptions = {
|
|
74
74
|
...options,
|
|
75
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
75
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkI7VU53I5cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
76
76
|
metafile: userOptions.mode === "development",
|
|
77
77
|
clean: false,
|
|
78
78
|
env,
|
|
@@ -97,8 +97,8 @@ async function resolveContext(userOptions) {
|
|
|
97
97
|
projectConfigurations,
|
|
98
98
|
projectName,
|
|
99
99
|
projectGraph,
|
|
100
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
101
|
-
outputPath: resolvedOptions.outputPath ||
|
|
100
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkI7VU53I5cjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
101
|
+
outputPath: resolvedOptions.outputPath || _chunkI7VU53I5cjs.joinPaths.call(void 0,
|
|
102
102
|
workspaceConfig.workspaceRoot,
|
|
103
103
|
"dist",
|
|
104
104
|
resolvedOptions.projectRoot
|
|
@@ -107,10 +107,10 @@ async function resolveContext(userOptions) {
|
|
|
107
107
|
};
|
|
108
108
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
109
109
|
if (context.options.verbose) {
|
|
110
|
-
|
|
110
|
+
_chunk7DZ3NOLBcjs.writeDebug.call(void 0,
|
|
111
111
|
` \u2699\uFE0F Build options resolved:
|
|
112
112
|
|
|
113
|
-
${
|
|
113
|
+
${_chunk7DZ3NOLBcjs.formatLogMessage.call(void 0, context.options)}`,
|
|
114
114
|
workspaceConfig
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunk4KTFAYGLcjs = require('./chunk-4KTFAYGL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7DZ3NOLBcjs = require('./chunk-7DZ3NOLB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJG7MZJV2cjs = require('./chunk-JG7MZJV2.cjs');
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
|
-
|
|
13
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
async function copyBuildAssets(context) {
|
|
15
15
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
16
|
-
|
|
16
|
+
_chunk7DZ3NOLBcjs.writeDebug.call(void 0,
|
|
17
17
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
18
18
|
context.workspaceConfig
|
|
19
19
|
);
|
|
20
|
-
const stopwatch =
|
|
21
|
-
await
|
|
20
|
+
const stopwatch = _chunk7DZ3NOLBcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunk4KTFAYGLcjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJG7MZJV2cjs = require('./chunk-JG7MZJV2.cjs');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
-
|
|
6
|
+
_chunkJG7MZJV2cjs.init_cjs_shims.call(void 0, );
|
|
7
7
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
8
8
|
function normalizeWindowsPath(input = "") {
|
|
9
9
|
if (!input) {
|
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths,
|
|
3
3
|
joinPaths
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B4VYSTGG.js";
|
|
5
5
|
import {
|
|
6
6
|
LogLevel,
|
|
7
7
|
formatLogMessage,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
writeDebug,
|
|
11
11
|
writeTrace,
|
|
12
12
|
writeWarning
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CKFE6AY5.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esm_shims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5OCVL4NC.js";
|
|
17
17
|
|
|
18
18
|
// ../build-tools/src/config.ts
|
|
19
19
|
init_esm_shims();
|
|
@@ -1187,7 +1187,7 @@ var getConfigEnv = () => {
|
|
|
1187
1187
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1188
1188
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1189
1189
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1190
|
-
configFile: process.env[`${prefix}
|
|
1190
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1191
1191
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1192
1192
|
directories: {
|
|
1193
1193
|
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
@@ -1250,7 +1250,7 @@ var getConfigEnv = () => {
|
|
|
1250
1250
|
config.licensing = `${config.homepage}/docs`;
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
const serializedConfig = process.env[`${prefix}
|
|
1253
|
+
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1254
1254
|
if (serializedConfig) {
|
|
1255
1255
|
const parsed = JSON.parse(serializedConfig);
|
|
1256
1256
|
config = {
|
|
@@ -1483,7 +1483,9 @@ var setConfigEnv = (config) => {
|
|
|
1483
1483
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1484
1484
|
}
|
|
1485
1485
|
if (config.configFile) {
|
|
1486
|
-
process.env[`${prefix}
|
|
1486
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
1487
|
+
config.configFile
|
|
1488
|
+
);
|
|
1487
1489
|
}
|
|
1488
1490
|
if (config.workspaceRoot) {
|
|
1489
1491
|
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
@@ -1587,7 +1589,7 @@ var setConfigEnv = (config) => {
|
|
|
1587
1589
|
config.skipConfigLogging
|
|
1588
1590
|
);
|
|
1589
1591
|
}
|
|
1590
|
-
process.env[`${prefix}
|
|
1592
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1591
1593
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
1592
1594
|
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1593
1595
|
setExtensionEnv(key, config.extensions[key]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NVYTS7UE.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CKFE6AY5.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5OCVL4NC.js";
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
13
|
init_esm_shims();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NVYTS7UE.js";
|
|
5
5
|
import {
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B4VYSTGG.js";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CKFE6AY5.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esm_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5OCVL4NC.js";
|
|
15
15
|
|
|
16
16
|
// src/package-json.ts
|
|
17
17
|
init_esm_shims();
|