@storm-software/esbuild 0.41.4 → 0.41.6
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 -2
- package/bin/esbuild.cjs +10 -10
- 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-5T7LV3VF.cjs → chunk-5JSRSHEO.cjs} +64 -64
- package/dist/{chunk-FAL7YAO3.cjs → chunk-5Q5D5KXU.cjs} +84 -84
- package/dist/{chunk-GJGUIJAB.cjs → chunk-5SH5JYCH.cjs} +13 -13
- package/dist/{chunk-WCPIVIQK.js → chunk-AHPJROFI.js} +2 -2
- package/dist/{chunk-KGNFKVEH.js → chunk-BPCPTEEN.js} +5 -5
- package/dist/{chunk-KEVRLQE4.cjs → chunk-ERN6S5PZ.cjs} +20 -20
- package/dist/{chunk-IC54RIRD.js → chunk-F5UNQT4I.js} +1 -1
- package/dist/{chunk-62Y6Y42O.cjs → chunk-FYOYVWLV.cjs} +2 -2
- package/dist/{chunk-YCGENY4P.js → chunk-GQHCGKUH.js} +8 -8
- package/dist/{chunk-NNYGWF35.js → chunk-I4I4LVFE.js} +3 -3
- package/dist/{chunk-LDSRC54X.cjs → chunk-J3NLC5XP.cjs} +16 -16
- package/dist/{chunk-NCWOG3XF.cjs → chunk-KUO4BKRA.cjs} +5 -5
- package/dist/{chunk-5YNL6VNW.cjs → chunk-LMTUTP6F.cjs} +24 -24
- package/dist/{chunk-HVQQWRMH.js → chunk-MCAQJBXG.js} +3 -3
- package/dist/{chunk-WRR5M4KJ.js → chunk-MHBCYKCD.js} +4 -4
- package/dist/{chunk-HSJ2BWA7.cjs → chunk-NBS4OYN3.cjs} +5 -5
- package/dist/{chunk-YU5AMY3Q.cjs → chunk-NDLGLF4H.cjs} +6 -6
- package/dist/chunk-QC6ICIFT.cjs +6 -0
- package/dist/{chunk-NEVF2Z32.js → chunk-RP7QPKMS.js} +2 -2
- package/dist/{chunk-KHAZPE4L.cjs → chunk-SRXJPQBE.cjs} +7 -7
- package/dist/{chunk-Y2TMW2OD.js → chunk-UIZDGUH3.js} +15 -15
- package/dist/{chunk-E3PX7E5J.js → chunk-VKCYJZVE.js} +2 -2
- package/dist/{chunk-4V73TPC7.cjs → chunk-W3C5XSSN.cjs} +2 -2
- package/dist/{chunk-4NWQIND4.js → chunk-WOAQXYUT.js} +1 -1
- package/dist/{chunk-3NHHHWA2.js → chunk-XPQNCRAX.js} +2 -2
- package/dist/{chunk-XUY5SM57.js → chunk-Z45RNPYZ.js} +2 -2
- 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 +7 -7
- package/dist/chunk-EN26FAA2.cjs +0 -6
|
@@ -1,16 +1,16 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkW3C5XSSNcjs = require('./chunk-W3C5XSSN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
8
8
|
|
|
9
9
|
// ../config-tools/src/logger/console.ts
|
|
10
|
-
|
|
10
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
|
|
12
12
|
// ../config-tools/src/types.ts
|
|
13
|
-
|
|
13
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
var LogLevel = {
|
|
15
15
|
SILENT: 0,
|
|
16
16
|
FATAL: 10,
|
|
@@ -35,13 +35,13 @@ var LogLevelLabel = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
38
|
-
|
|
38
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
39
39
|
|
|
40
40
|
// ../config/src/index.ts
|
|
41
|
-
|
|
41
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
42
42
|
|
|
43
43
|
// ../config/src/constants.ts
|
|
44
|
-
|
|
44
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
45
45
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
46
46
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
47
47
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -64,10 +64,10 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
64
64
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
65
65
|
|
|
66
66
|
// ../config/src/define-config.ts
|
|
67
|
-
|
|
67
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
68
68
|
|
|
69
69
|
// ../config/src/schema.ts
|
|
70
|
-
|
|
70
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
71
71
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
72
72
|
var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
73
73
|
var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
@@ -275,7 +275,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
275
275
|
);
|
|
276
276
|
|
|
277
277
|
// ../config/src/types.ts
|
|
278
|
-
|
|
278
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
279
279
|
var COLOR_KEYS = [
|
|
280
280
|
"dark",
|
|
281
281
|
"light",
|
|
@@ -300,10 +300,10 @@ var _promises = require('fs/promises');
|
|
|
300
300
|
var _path = require('path');
|
|
301
301
|
|
|
302
302
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
303
|
-
|
|
303
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
304
304
|
|
|
305
305
|
// ../config-tools/src/utilities/find-up.ts
|
|
306
|
-
|
|
306
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -372,11 +372,11 @@ var rootDirectories = [
|
|
|
372
372
|
];
|
|
373
373
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
374
374
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
375
|
-
return
|
|
375
|
+
return _chunkW3C5XSSNcjs.correctPaths.call(void 0,
|
|
376
376
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
|
-
return
|
|
379
|
+
return _chunkW3C5XSSNcjs.correctPaths.call(void 0,
|
|
380
380
|
findFolderUp(
|
|
381
381
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
382
382
|
rootFiles,
|
|
@@ -436,7 +436,7 @@ var getDefaultConfig = async (root) => {
|
|
|
436
436
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
437
437
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
438
438
|
const file = await _promises.readFile.call(void 0,
|
|
439
|
-
|
|
439
|
+
_chunkW3C5XSSNcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
440
440
|
"utf8"
|
|
441
441
|
);
|
|
442
442
|
if (file) {
|
|
@@ -478,7 +478,7 @@ var getDefaultConfig = async (root) => {
|
|
|
478
478
|
};
|
|
479
479
|
|
|
480
480
|
// ../config-tools/src/logger/chalk.ts
|
|
481
|
-
|
|
481
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
482
482
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
483
483
|
var chalkDefault = {
|
|
484
484
|
hex: (_) => (message) => message,
|
|
@@ -508,10 +508,10 @@ var getChalk = () => {
|
|
|
508
508
|
};
|
|
509
509
|
|
|
510
510
|
// ../config-tools/src/logger/console-icons.ts
|
|
511
|
-
|
|
511
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
512
512
|
|
|
513
513
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
514
|
-
|
|
514
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
515
515
|
function isUnicodeSupported() {
|
|
516
516
|
if (process.platform !== "win32") {
|
|
517
517
|
return process.env.TERM !== "linux";
|
|
@@ -536,13 +536,13 @@ var CONSOLE_ICONS = {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
539
|
-
|
|
539
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
540
540
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
541
541
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
542
542
|
};
|
|
543
543
|
|
|
544
544
|
// ../config-tools/src/logger/get-log-level.ts
|
|
545
|
-
|
|
545
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
546
546
|
var getLogLevel = (label) => {
|
|
547
547
|
switch (label) {
|
|
548
548
|
case "all":
|
|
@@ -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__954ae7dac9bca61c20aa20d91ee91417/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__954ae7dac9bca61c20aa20d91ee91417/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
depsCheckPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XPQNCRAX.js";
|
|
4
4
|
import {
|
|
5
5
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MCAQJBXG.js";
|
|
7
7
|
import {
|
|
8
8
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z45RNPYZ.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BPCPTEEN.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MHBCYKCD.js";
|
|
16
16
|
import {
|
|
17
17
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UIZDGUH3.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-AHPJROFI.js";
|
|
27
27
|
import {
|
|
28
28
|
init_esm_shims
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VKCYJZVE.js";
|
|
30
30
|
|
|
31
31
|
// src/build.ts
|
|
32
32
|
init_esm_shims();
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
writeDebug,
|
|
14
14
|
writeTrace,
|
|
15
15
|
writeWarning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AHPJROFI.js";
|
|
17
17
|
import {
|
|
18
18
|
correctPaths,
|
|
19
19
|
joinPaths
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F5UNQT4I.js";
|
|
21
21
|
import {
|
|
22
22
|
init_esm_shims
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VKCYJZVE.js";
|
|
24
24
|
|
|
25
25
|
// ../build-tools/src/config.ts
|
|
26
26
|
init_esm_shims();
|
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkNBS4OYN3cjs = require('./chunk-NBS4OYN3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5Q5D5KXUcjs = require('./chunk-5Q5D5KXU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkW3C5XSSNcjs = require('./chunk-W3C5XSSN.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
18
18
|
|
|
19
19
|
// src/context.ts
|
|
20
|
-
|
|
20
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -32,15 +32,15 @@ async function resolveContext(userOptions) {
|
|
|
32
32
|
if (!workspaceRoot) {
|
|
33
33
|
throw new Error("Cannot find Nx workspace root");
|
|
34
34
|
}
|
|
35
|
-
const workspaceConfig = await
|
|
35
|
+
const workspaceConfig = await _chunk5Q5D5KXUcjs.getWorkspaceConfig.call(void 0, true, {
|
|
36
36
|
workspaceRoot: workspaceRoot.dir
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
const stopwatch =
|
|
38
|
+
_chunkERN6S5PZcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
39
|
+
const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
40
40
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
41
41
|
exitOnError: true
|
|
42
42
|
});
|
|
43
|
-
const projectJsonPath =
|
|
43
|
+
const projectJsonPath = _chunkW3C5XSSNcjs.joinPaths.call(void 0,
|
|
44
44
|
workspaceRoot.dir,
|
|
45
45
|
projectRoot,
|
|
46
46
|
"project.json"
|
|
@@ -57,9 +57,9 @@ async function resolveContext(userOptions) {
|
|
|
57
57
|
"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."
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
60
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkNBS4OYN3cjs.DEFAULT_BUILD_OPTIONS);
|
|
61
61
|
options.name ??= projectName;
|
|
62
|
-
const packageJsonPath =
|
|
62
|
+
const packageJsonPath = _chunkW3C5XSSNcjs.joinPaths.call(void 0,
|
|
63
63
|
workspaceRoot.dir,
|
|
64
64
|
options.projectRoot,
|
|
65
65
|
"package.json"
|
|
@@ -67,10 +67,10 @@ async function resolveContext(userOptions) {
|
|
|
67
67
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
68
68
|
throw new Error("Cannot find package.json configuration");
|
|
69
69
|
}
|
|
70
|
-
const env =
|
|
70
|
+
const env = _chunk5Q5D5KXUcjs.getEnv.call(void 0, "esbuild", options);
|
|
71
71
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
72
72
|
const resolvedOptions = {
|
|
73
|
-
tsconfig:
|
|
73
|
+
tsconfig: _chunkW3C5XSSNcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
74
74
|
...options,
|
|
75
75
|
metafile: userOptions.mode === "development",
|
|
76
76
|
clean: false,
|
|
@@ -96,8 +96,8 @@ async function resolveContext(userOptions) {
|
|
|
96
96
|
projectConfigurations,
|
|
97
97
|
projectName,
|
|
98
98
|
projectGraph,
|
|
99
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
100
|
-
outputPath: resolvedOptions.outputPath ||
|
|
99
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkW3C5XSSNcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
100
|
+
outputPath: resolvedOptions.outputPath || _chunkW3C5XSSNcjs.joinPaths.call(void 0,
|
|
101
101
|
workspaceConfig.workspaceRoot,
|
|
102
102
|
"dist",
|
|
103
103
|
resolvedOptions.projectRoot
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
8
8
|
|
|
9
9
|
// src/clean.ts
|
|
10
|
-
|
|
10
|
+
_chunkFYOYVWLVcjs.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
|
+
_chunkERN6S5PZcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
14
|
+
const stopwatch = _chunkERN6S5PZcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
15
15
|
await cleanDirectories(directory);
|
|
16
16
|
stopwatch();
|
|
17
17
|
}
|
|
@@ -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 _chunkNDLGLF4Hcjs = require('./chunk-NDLGLF4H.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSRXJPQBEcjs = require('./chunk-SRXJPQBE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkKUO4BKRAcjs = require('./chunk-KUO4BKRA.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkJ3NLC5XPcjs = require('./chunk-J3NLC5XP.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5SH5JYCHcjs = require('./chunk-5SH5JYCH.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5JSRSHEOcjs = require('./chunk-5JSRSHEO.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,29 +23,29 @@ var _chunk5T7LV3VFcjs = require('./chunk-5T7LV3VF.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
30
30
|
|
|
31
31
|
// src/build.ts
|
|
32
|
-
|
|
32
|
+
_chunkFYOYVWLVcjs.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
|
+
_chunkERN6S5PZcjs.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
|
+
_chunkERN6S5PZcjs.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
|
+
_chunkERN6S5PZcjs.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: [_chunkNDLGLF4Hcjs.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
|
+
_chunkERN6S5PZcjs.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 = _chunkERN6S5PZcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
90
|
+
await _chunkKUO4BKRAcjs.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
|
+
_chunkERN6S5PZcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
97
|
+
const stopwatch = _chunkERN6S5PZcjs.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 _chunkJ3NLC5XPcjs.resolveContext.call(void 0, options);
|
|
104
104
|
await cleanOutputPath(context);
|
|
105
105
|
await Promise.all([
|
|
106
106
|
dependencyCheck(context.options),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_chunk5SH5JYCHcjs.generatePackageJson.call(void 0, context),
|
|
108
|
+
_chunkSRXJPQBEcjs.copyBuildAssets.call(void 0, context),
|
|
109
|
+
_chunk5JSRSHEOcjs.executeTsup.call(void 0, context)
|
|
110
110
|
]);
|
|
111
111
|
await reportResults(context);
|
|
112
|
-
|
|
112
|
+
_chunkERN6S5PZcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
113
113
|
} catch (error) {
|
|
114
|
-
|
|
114
|
+
_chunkERN6S5PZcjs.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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I4I4LVFE.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AHPJROFI.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VKCYJZVE.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-I4I4LVFE.js";
|
|
5
5
|
import {
|
|
6
6
|
getStopwatch,
|
|
7
7
|
writeDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AHPJROFI.js";
|
|
9
9
|
import {
|
|
10
10
|
joinPaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F5UNQT4I.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esm_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VKCYJZVE.js";
|
|
15
15
|
|
|
16
16
|
// src/package-json.ts
|
|
17
17
|
init_esm_shims();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5Q5D5KXUcjs = require('./chunk-5Q5D5KXU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
7
7
|
|
|
8
8
|
// src/config.ts
|
|
9
|
-
|
|
9
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var DEFAULT_BUILD_OPTIONS = {
|
|
11
11
|
assets: [],
|
|
12
12
|
platform: "node",
|
|
@@ -46,8 +46,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
46
46
|
".woff2": "file"
|
|
47
47
|
},
|
|
48
48
|
banner: {
|
|
49
|
-
js:
|
|
50
|
-
css:
|
|
49
|
+
js: _chunk5Q5D5KXUcjs.DEFAULT_COMPILED_BANNER,
|
|
50
|
+
css: _chunk5Q5D5KXUcjs.DEFAULT_COMPILED_BANNER
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -1,14 +1,14 @@
|
|
|
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(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
|
-
|
|
11
|
+
_chunkFYOYVWLVcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _module = require('module');
|
|
13
13
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
14
14
|
var unusedIgnore = [
|
|
@@ -40,7 +40,7 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
40
40
|
name: "storm:deps-check",
|
|
41
41
|
setup(build) {
|
|
42
42
|
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
43
|
-
const pkgContents =
|
|
43
|
+
const pkgContents = _chunkFYOYVWLVcjs.__require.call(void 0, pkgJsonPath);
|
|
44
44
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
45
45
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
46
46
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -75,10 +75,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
75
75
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
76
76
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
_chunkERN6S5PZcjs.writeWarning.call(void 0,
|
|
79
79
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
_chunkERN6S5PZcjs.writeError.call(void 0,
|
|
82
82
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
83
83
|
);
|
|
84
84
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -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 _chunk5Q5D5KXUcjs = require('./chunk-5Q5D5KXU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkERN6S5PZcjs = require('./chunk-ERN6S5PZ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFYOYVWLVcjs = require('./chunk-FYOYVWLV.cjs');
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
|
-
|
|
13
|
+
_chunkFYOYVWLVcjs.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
|
+
_chunkERN6S5PZcjs.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 = _chunkERN6S5PZcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunk5Q5D5KXUcjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|