@storm-software/esbuild 0.44.0 → 0.44.2
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 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +13 -13
- package/dist/build.js +12 -12
- package/dist/{chunk-KAVAYRRT.cjs → chunk-2NASLF52.cjs} +20 -20
- package/dist/chunk-5OLNQTRT.cjs +6 -0
- package/dist/{chunk-22Y32YFI.cjs → chunk-7YZNI6SK.cjs} +64 -64
- package/dist/{chunk-KZKQIIWT.js → chunk-AQLVPEJX.js} +1 -1
- package/dist/{chunk-MAU5D7AT.cjs → chunk-BRYAEE3A.cjs} +6 -6
- package/dist/{chunk-APZBBHBH.js → chunk-C6UMMVRR.js} +8 -8
- package/dist/{chunk-L4TWXFIY.cjs → chunk-CVYJDETI.cjs} +7 -7
- package/dist/{chunk-4GQ6VEDS.js → chunk-ECTRYKRL.js} +2 -2
- package/dist/{chunk-EGEZ5E36.js → chunk-F4PL6OZA.js} +1 -1
- package/dist/{chunk-GVOLTKQ7.js → chunk-I52SUD5S.js} +2 -2
- package/dist/{chunk-EQKXL4UE.cjs → chunk-NK5TQHD2.cjs} +18 -18
- package/dist/{chunk-CMGKATE3.js → chunk-NRIUSJPQ.js} +3 -3
- package/dist/{chunk-Q6RVGOQC.js → chunk-Q7QIB4PW.js} +5 -5
- package/dist/{chunk-PJO5UO4I.js → chunk-QIE7UPFI.js} +15 -15
- package/dist/{chunk-BWA66YXK.js → chunk-R2WT7MNW.js} +4 -4
- package/dist/{chunk-AFE2UT4Q.cjs → chunk-S4IHFCX6.cjs} +24 -24
- package/dist/{chunk-EVDYZUME.js → chunk-THGA5VBT.js} +2 -2
- package/dist/{chunk-HXSSSITW.cjs → chunk-TXMGS44F.cjs} +13 -13
- package/dist/{chunk-UNQ5U2S4.cjs → chunk-UF7MZTGE.cjs} +2 -2
- package/dist/{chunk-YBYGEWSU.cjs → chunk-UJ4OTVZW.cjs} +5 -5
- package/dist/{chunk-2MLKNJIP.cjs → chunk-VRHF33Y5.cjs} +2 -2
- package/dist/{chunk-CBJD4ZVH.js → chunk-WXTPFPYQ.js} +3 -3
- package/dist/{chunk-F7CMBEUZ.cjs → chunk-X5VQN6HG.cjs} +5 -5
- package/dist/{chunk-SKNDSL4F.js → chunk-YSMJ2XNW.js} +2 -2
- package/dist/{chunk-KAK4OSJG.js → chunk-Z5Q2GKYR.js} +2 -2
- package/dist/{chunk-Z425RPHD.cjs → chunk-ZKU4LHIG.cjs} +85 -85
- package/dist/clean.cjs +5 -5
- package/dist/clean.js +4 -4
- 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 +15 -15
- package/dist/index.js +13 -13
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +5 -5
- package/dist/plugins/deps-check.js +4 -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 +7 -7
- package/dist/watch.js +3 -3
- package/package.json +4 -4
- package/dist/chunk-O6V6IV3F.cjs +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
depsCheckPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THGA5VBT.js";
|
|
4
4
|
import {
|
|
5
5
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NRIUSJPQ.js";
|
|
7
7
|
import {
|
|
8
8
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ECTRYKRL.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q7QIB4PW.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R2WT7MNW.js";
|
|
16
16
|
import {
|
|
17
17
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QIE7UPFI.js";
|
|
19
19
|
import {
|
|
20
20
|
getStopwatch,
|
|
21
21
|
writeDebug,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
writeFatal,
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Z5Q2GKYR.js";
|
|
27
27
|
import {
|
|
28
28
|
init_esm_shims
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-I52SUD5S.js";
|
|
30
30
|
|
|
31
31
|
// src/build.ts
|
|
32
32
|
init_esm_shims();
|
|
@@ -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 _chunkZKU4LHIGcjs = require('./chunk-ZKU4LHIG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2NASLF52cjs = require('./chunk-2NASLF52.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
|
-
|
|
13
|
+
_chunkVRHF33Y5cjs.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]) === 0) {
|
|
16
|
-
|
|
16
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0,
|
|
17
17
|
` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
|
|
18
18
|
context.workspaceConfig
|
|
19
19
|
);
|
|
20
|
-
const stopwatch =
|
|
21
|
-
await
|
|
20
|
+
const stopwatch = _chunk2NASLF52cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunkZKU4LHIGcjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|
|
@@ -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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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,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 _chunkX5VQN6HGcjs = require('./chunk-X5VQN6HG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZKU4LHIGcjs = require('./chunk-ZKU4LHIG.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk2NASLF52cjs = require('./chunk-2NASLF52.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
19
19
|
|
|
20
20
|
// src/context.ts
|
|
21
|
-
|
|
21
|
+
_chunkVRHF33Y5cjs.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 _chunkZKU4LHIGcjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunk2NASLF52cjs.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 = _chunkUF7MZTGEcjs.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, _chunkX5VQN6HGcjs.DEFAULT_BUILD_OPTIONS);
|
|
62
62
|
options.name ??= projectName;
|
|
63
|
-
const packageJsonPath =
|
|
63
|
+
const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
|
|
64
64
|
workspaceRoot.dir,
|
|
65
65
|
options.projectRoot,
|
|
66
66
|
"package.json"
|
|
@@ -68,10 +68,10 @@ 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 = _chunkZKU4LHIGcjs.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
|
-
tsconfig:
|
|
74
|
+
tsconfig: _chunkUF7MZTGEcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
75
75
|
...options,
|
|
76
76
|
metafile: userOptions.mode === "development",
|
|
77
77
|
clean: false,
|
|
@@ -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 || _chunkUF7MZTGEcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
101
|
+
outputPath: resolvedOptions.outputPath || _chunkUF7MZTGEcjs.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
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0,
|
|
111
111
|
` \u2699\uFE0F Build options resolved:
|
|
112
112
|
|
|
113
|
-
${
|
|
113
|
+
${_chunk2NASLF52cjs.formatLogMessage.call(void 0, context.options)}`,
|
|
114
114
|
workspaceConfig
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WXTPFPYQ.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z5Q2GKYR.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I52SUD5S.js";
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
13
|
init_esm_shims();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSMJ2XNW.js";
|
|
4
4
|
import {
|
|
5
5
|
getEnv,
|
|
6
6
|
getWorkspaceConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WXTPFPYQ.js";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
11
11
|
writeDebug
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z5Q2GKYR.js";
|
|
13
13
|
import {
|
|
14
14
|
joinPaths
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AQLVPEJX.js";
|
|
16
16
|
import {
|
|
17
17
|
init_esm_shims
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I52SUD5S.js";
|
|
19
19
|
|
|
20
20
|
// src/context.ts
|
|
21
21
|
init_esm_shims();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStopwatch,
|
|
3
3
|
writeDebug
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z5Q2GKYR.js";
|
|
5
5
|
import {
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AQLVPEJX.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-I52SUD5S.js";
|
|
15
15
|
|
|
16
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
16
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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__bfb917e2b8480b4c6bc56e8a9e3bf7af/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,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WXTPFPYQ.js";
|
|
5
5
|
import {
|
|
6
6
|
getStopwatch,
|
|
7
7
|
writeDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z5Q2GKYR.js";
|
|
9
9
|
import {
|
|
10
10
|
joinPaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AQLVPEJX.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esm_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I52SUD5S.js";
|
|
15
15
|
|
|
16
16
|
// src/package-json.ts
|
|
17
17
|
init_esm_shims();
|
|
@@ -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 _chunkBRYAEE3Acjs = require('./chunk-BRYAEE3A.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCVYJDETIcjs = require('./chunk-CVYJDETI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkUJ4OTVZWcjs = require('./chunk-UJ4OTVZW.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNK5TQHD2cjs = require('./chunk-NK5TQHD2.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkTXMGS44Fcjs = require('./chunk-TXMGS44F.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk7YZNI6SKcjs = require('./chunk-7YZNI6SK.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,29 +23,29 @@ var _chunk22Y32YFIcjs = require('./chunk-22Y32YFI.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk2NASLF52cjs = require('./chunk-2NASLF52.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
30
30
|
|
|
31
31
|
// src/build.ts
|
|
32
|
-
|
|
32
|
+
_chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
33
33
|
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
34
34
|
var _globby = require('globby');
|
|
35
35
|
async function reportResults(context) {
|
|
36
36
|
if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
|
|
37
37
|
if (context.result.warnings.length > 0) {
|
|
38
|
-
|
|
38
|
+
_chunk2NASLF52cjs.writeWarning.call(void 0,
|
|
39
39
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
40
40
|
context.workspaceConfig
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
_chunk2NASLF52cjs.writeSuccess.call(void 0,
|
|
44
44
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
45
45
|
context.workspaceConfig
|
|
46
46
|
);
|
|
47
47
|
} 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) {
|
|
48
|
-
|
|
48
|
+
_chunk2NASLF52cjs.writeError.call(void 0,
|
|
49
49
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
50
50
|
context.workspaceConfig
|
|
51
51
|
);
|
|
@@ -74,7 +74,7 @@ async function dependencyCheck(options) {
|
|
|
74
74
|
write: false,
|
|
75
75
|
// no need to write for analysis
|
|
76
76
|
outdir: "out",
|
|
77
|
-
plugins: [
|
|
77
|
+
plugins: [_chunkBRYAEE3Acjs.depsCheckPlugin.call(void 0, options.bundle)]
|
|
78
78
|
});
|
|
79
79
|
await buildPromise.catch(() => {
|
|
80
80
|
});
|
|
@@ -82,36 +82,36 @@ async function dependencyCheck(options) {
|
|
|
82
82
|
}
|
|
83
83
|
async function cleanOutputPath(context) {
|
|
84
84
|
if (context.clean !== false && context.outputPath) {
|
|
85
|
-
|
|
85
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0,
|
|
86
86
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
87
87
|
context.workspaceConfig
|
|
88
88
|
);
|
|
89
|
-
const stopwatch =
|
|
90
|
-
await
|
|
89
|
+
const stopwatch = _chunk2NASLF52cjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
90
|
+
await _chunkUJ4OTVZWcjs.cleanDirectories.call(void 0, context.outputPath);
|
|
91
91
|
stopwatch();
|
|
92
92
|
}
|
|
93
93
|
return context;
|
|
94
94
|
}
|
|
95
95
|
async function build2(options) {
|
|
96
|
-
|
|
97
|
-
const stopwatch =
|
|
96
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
97
|
+
const stopwatch = _chunk2NASLF52cjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
98
98
|
try {
|
|
99
99
|
const opts = Array.isArray(options) ? options : [options];
|
|
100
100
|
if (opts.length === 0) {
|
|
101
101
|
throw new Error("No build options were provided");
|
|
102
102
|
}
|
|
103
|
-
const context = await
|
|
103
|
+
const context = await _chunkNK5TQHD2cjs.resolveContext.call(void 0, options);
|
|
104
104
|
await cleanOutputPath(context);
|
|
105
105
|
await Promise.all([
|
|
106
106
|
dependencyCheck(context.options),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_chunkTXMGS44Fcjs.generatePackageJson.call(void 0, context),
|
|
108
|
+
_chunkCVYJDETIcjs.copyBuildAssets.call(void 0, context),
|
|
109
|
+
_chunk7YZNI6SKcjs.executeTsup.call(void 0, context)
|
|
110
110
|
]);
|
|
111
111
|
await reportResults(context);
|
|
112
|
-
|
|
112
|
+
_chunk2NASLF52cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
113
113
|
} catch (error) {
|
|
114
|
-
|
|
114
|
+
_chunk2NASLF52cjs.writeFatal.call(void 0,
|
|
115
115
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
116
116
|
);
|
|
117
117
|
throw error;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeWarning
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z5Q2GKYR.js";
|
|
5
5
|
import {
|
|
6
6
|
__require,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I52SUD5S.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZKU4LHIGcjs = require('./chunk-ZKU4LHIG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2NASLF52cjs = require('./chunk-2NASLF52.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
15
15
|
|
|
16
16
|
// src/package-json.ts
|
|
17
|
-
|
|
17
|
+
_chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _fs = require('fs');
|
|
20
20
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
21
21
|
async function generatePackageJson(context) {
|
|
22
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
23
|
-
|
|
24
|
-
const stopwatch =
|
|
25
|
-
const packageJsonPath =
|
|
22
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkUF7MZTGEcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
23
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
24
|
+
const stopwatch = _chunk2NASLF52cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
25
|
+
const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
|
|
26
26
|
context.options.projectRoot,
|
|
27
27
|
"project.json"
|
|
28
28
|
);
|
|
@@ -30,7 +30,7 @@ async function generatePackageJson(context) {
|
|
|
30
30
|
throw new Error("Cannot find package.json configuration");
|
|
31
31
|
}
|
|
32
32
|
const packageJsonFile = await _promises2.default.readFile(
|
|
33
|
-
|
|
33
|
+
_chunkUF7MZTGEcjs.joinPaths.call(void 0,
|
|
34
34
|
context.workspaceConfig.workspaceRoot,
|
|
35
35
|
context.options.projectRoot,
|
|
36
36
|
"package.json"
|
|
@@ -41,13 +41,13 @@ async function generatePackageJson(context) {
|
|
|
41
41
|
if (!packageJson) {
|
|
42
42
|
throw new Error("Cannot find package.json configuration file");
|
|
43
43
|
}
|
|
44
|
-
packageJson = await
|
|
44
|
+
packageJson = await _chunkZKU4LHIGcjs.addPackageDependencies.call(void 0,
|
|
45
45
|
context.workspaceConfig.workspaceRoot,
|
|
46
46
|
context.options.projectRoot,
|
|
47
47
|
context.projectName,
|
|
48
48
|
packageJson
|
|
49
49
|
);
|
|
50
|
-
packageJson = await
|
|
50
|
+
packageJson = await _chunkZKU4LHIGcjs.addWorkspacePackageJsonFields.call(void 0,
|
|
51
51
|
context.workspaceConfig,
|
|
52
52
|
context.options.projectRoot,
|
|
53
53
|
context.sourceRoot,
|
|
@@ -136,7 +136,7 @@ async function generatePackageJson(context) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
await _devkit.writeJsonFile.call(void 0,
|
|
139
|
-
|
|
139
|
+
_chunkUF7MZTGEcjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
140
140
|
packageJson
|
|
141
141
|
);
|
|
142
142
|
stopwatch();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
-
|
|
6
|
+
_chunkVRHF33Y5cjs.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) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2NASLF52cjs = require('./chunk-2NASLF52.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
8
8
|
|
|
9
9
|
// src/clean.ts
|
|
10
|
-
|
|
10
|
+
_chunkVRHF33Y5cjs.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
|
+
_chunk2NASLF52cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
14
|
+
const stopwatch = _chunk2NASLF52cjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
15
15
|
await cleanDirectories(directory);
|
|
16
16
|
stopwatch();
|
|
17
17
|
}
|