@storm-software/esbuild 0.52.15 → 0.52.17
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/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +12 -12
- package/dist/build.js +11 -11
- package/dist/{chunk-67XPXJX4.js → chunk-3F47E3CC.js} +15 -15
- package/dist/{chunk-EB4HTS47.cjs → chunk-3K52NDWD.cjs} +18 -18
- package/dist/{chunk-OVLGTAMB.js → chunk-3K6UVBCV.js} +1 -1
- package/dist/{chunk-XIUTBYIK.cjs → chunk-4ZXSQJXL.cjs} +64 -64
- package/dist/{chunk-6XYFWB4B.js → chunk-6IW7JIUR.js} +2 -2
- package/dist/{chunk-WEUZFDUV.js → chunk-6MLU5VBN.js} +7 -7
- package/dist/{chunk-PCK3ESVJ.cjs → chunk-6SFGWUAO.cjs} +84 -84
- package/dist/{chunk-O32NO722.cjs → chunk-AU3V4AYC.cjs} +2 -2
- package/dist/{chunk-JSUC37QC.cjs → chunk-BM3ARHU6.cjs} +9 -9
- package/dist/{chunk-O222QOIW.js → chunk-E327PFHD.js} +2 -2
- package/dist/{chunk-RNYQQ4HZ.js → chunk-E6AGXX4I.js} +2 -2
- package/dist/{chunk-6U52C7CW.js → chunk-EWFP337Y.js} +4 -4
- package/dist/{chunk-ASY6PY7S.js → chunk-FJKFJ5FG.js} +5 -5
- package/dist/{chunk-HBEOET4R.cjs → chunk-FPIJK3XG.cjs} +5 -5
- package/dist/{chunk-OBCA3XAV.js → chunk-IAPLJUG4.js} +3 -3
- package/dist/{chunk-ERGPLC4Y.js → chunk-ICZAYSVN.js} +1 -1
- package/dist/{chunk-MK4H4WIJ.cjs → chunk-N3PJX5RT.cjs} +7 -7
- package/dist/chunk-O53NX6NM.cjs +6 -0
- package/dist/{chunk-X3NNY4H5.js → chunk-PCCMHWLK.js} +3 -3
- package/dist/{chunk-XKMAROJE.cjs → chunk-TYVTZQO4.cjs} +13 -13
- package/dist/{chunk-J23Z3PGJ.js → chunk-UIWBVEQL.js} +1 -1
- package/dist/{chunk-HU237W3M.cjs → chunk-WWBRFML4.cjs} +2 -2
- package/dist/{chunk-MUQOFYB6.cjs → chunk-XUBTRKPU.cjs} +5 -5
- package/dist/{chunk-TC2HDCLC.cjs → chunk-ZGDJQUWB.cjs} +22 -22
- 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 -14
- package/dist/index.js +12 -12
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +6 -6
- package/dist/plugins/deps-check.js +2 -2
- 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 +5 -5
- package/dist/chunk-S544LLV4.cjs +0 -6
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 -->
|
|
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
+
|
|
43
44
|
## Table of Contents
|
|
44
45
|
|
|
45
46
|
- [Storm ESBuild Package](#storm-esbuild-package)
|
package/dist/assets.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkN3PJX5RTcjs = require('./chunk-N3PJX5RT.cjs');
|
|
4
|
+
require('./chunk-6SFGWUAO.cjs');
|
|
5
|
+
require('./chunk-AU3V4AYC.cjs');
|
|
6
|
+
require('./chunk-BM3ARHU6.cjs');
|
|
7
|
+
require('./chunk-WWBRFML4.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkN3PJX5RTcjs.copyBuildAssets;
|
package/dist/assets.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IAPLJUG4.js";
|
|
4
|
+
import "./chunk-PCCMHWLK.js";
|
|
5
|
+
import "./chunk-3K6UVBCV.js";
|
|
6
|
+
import "./chunk-ICZAYSVN.js";
|
|
7
|
+
import "./chunk-E327PFHD.js";
|
|
8
8
|
export {
|
|
9
9
|
copyBuildAssets
|
|
10
10
|
};
|
package/dist/build.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
3
|
+
var _chunkZGDJQUWBcjs = require('./chunk-ZGDJQUWB.cjs');
|
|
4
|
+
require('./chunk-N3PJX5RT.cjs');
|
|
5
|
+
require('./chunk-FPIJK3XG.cjs');
|
|
6
|
+
require('./chunk-3K52NDWD.cjs');
|
|
7
|
+
require('./chunk-XUBTRKPU.cjs');
|
|
8
|
+
require('./chunk-TYVTZQO4.cjs');
|
|
9
|
+
require('./chunk-6SFGWUAO.cjs');
|
|
10
|
+
require('./chunk-4ZXSQJXL.cjs');
|
|
11
|
+
require('./chunk-AU3V4AYC.cjs');
|
|
12
|
+
require('./chunk-BM3ARHU6.cjs');
|
|
13
|
+
require('./chunk-WWBRFML4.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.build =
|
|
16
|
+
exports.build = _chunkZGDJQUWBcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6MLU5VBN.js";
|
|
4
|
+
import "./chunk-IAPLJUG4.js";
|
|
5
|
+
import "./chunk-E6AGXX4I.js";
|
|
6
|
+
import "./chunk-FJKFJ5FG.js";
|
|
7
|
+
import "./chunk-6IW7JIUR.js";
|
|
8
|
+
import "./chunk-EWFP337Y.js";
|
|
9
|
+
import "./chunk-PCCMHWLK.js";
|
|
10
|
+
import "./chunk-3F47E3CC.js";
|
|
11
|
+
import "./chunk-3K6UVBCV.js";
|
|
12
|
+
import "./chunk-ICZAYSVN.js";
|
|
13
|
+
import "./chunk-E327PFHD.js";
|
|
14
14
|
export {
|
|
15
15
|
build
|
|
16
16
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
joinPaths
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3K6UVBCV.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ICZAYSVN.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-E327PFHD.js";
|
|
15
15
|
|
|
16
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
16
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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__e2bfae77dab123b3b7f92991a884d555/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());
|
|
@@ -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 _chunkXUBTRKPUcjs = require('./chunk-XUBTRKPU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6SFGWUAOcjs = require('./chunk-6SFGWUAO.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkAU3V4AYCcjs = require('./chunk-AU3V4AYC.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkBM3ARHU6cjs = require('./chunk-BM3ARHU6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkWWBRFML4cjs = require('./chunk-WWBRFML4.cjs');
|
|
19
19
|
|
|
20
20
|
// src/context.ts
|
|
21
|
-
|
|
21
|
+
_chunkWWBRFML4cjs.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 _chunk6SFGWUAOcjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunkBM3ARHU6cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunkBM3ARHU6cjs.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 = _chunkAU3V4AYCcjs.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, _chunkXUBTRKPUcjs.DEFAULT_BUILD_OPTIONS);
|
|
62
62
|
options.name ??= projectName;
|
|
63
|
-
const packageJsonPath =
|
|
63
|
+
const packageJsonPath = _chunkAU3V4AYCcjs.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 = _chunk6SFGWUAOcjs.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 : _chunkAU3V4AYCcjs.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 || _chunkAU3V4AYCcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
101
|
+
outputPath: resolvedOptions.outputPath || _chunkAU3V4AYCcjs.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
|
+
_chunkBM3ARHU6cjs.writeDebug.call(void 0,
|
|
111
111
|
` \u2699\uFE0F Build options resolved:
|
|
112
112
|
|
|
113
|
-
${
|
|
113
|
+
${_chunkBM3ARHU6cjs.formatLogMessage.call(void 0, context.options)}`,
|
|
114
114
|
workspaceConfig
|
|
115
115
|
);
|
|
116
116
|
}
|