@storm-software/esbuild 0.23.34 → 0.24.1
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/build.cjs +8 -8
- package/dist/build.js +7 -7
- package/dist/{chunk-U4Y35CZ5.cjs → chunk-2MIBIYGU.cjs} +3 -3
- package/dist/{chunk-PWNUMPV7.cjs → chunk-6RYUOHHQ.cjs} +2 -2
- package/dist/{chunk-R5YFMUOJ.js → chunk-7UYZTNGE.js} +3 -3
- package/dist/{chunk-5TOJ2XFN.js → chunk-D6KDL53G.js} +6 -9
- package/dist/{chunk-TDOUCUR4.js → chunk-DEQ3NJFX.js} +1 -1
- package/dist/{chunk-JR7OMMDW.cjs → chunk-M3OOEUTH.cjs} +2 -2
- package/dist/{chunk-SEAWJJ3P.js → chunk-M4U64EJG.js} +1 -1
- package/dist/{chunk-N6TS5EDI.cjs → chunk-Q7K2MKJS.cjs} +3 -3
- package/dist/{chunk-H465AHUQ.js → chunk-UOMGQ2T3.js} +1 -1
- package/dist/{chunk-I267PZCN.cjs → chunk-UTVDQAK2.cjs} +6 -9
- package/dist/{chunk-FNL7KZFK.cjs → chunk-VKJZVZO3.cjs} +39 -39
- package/dist/{chunk-FPLNOSCD.js → chunk-WQPBFWHA.js} +4 -4
- package/dist/{chunk-WLU27MMK.js → chunk-YXP75YVC.js} +1 -1
- package/dist/{chunk-WAFL2K22.cjs → chunk-ZPV4MFLS.cjs} +32 -32
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/config.cjs +5 -5
- package/dist/config.js +4 -4
- package/dist/index.cjs +8 -8
- package/dist/index.js +7 -7
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +4 -4
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 -->
|
package/dist/build.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkVKJZVZO3cjs = require('./chunk-VKJZVZO3.cjs');
|
|
5
|
+
require('./chunk-Q7K2MKJS.cjs');
|
|
6
|
+
require('./chunk-ZPV4MFLS.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-M3OOEUTH.cjs');
|
|
10
10
|
require('./chunk-SSEYS7LI.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-6RYUOHHQ.cjs');
|
|
12
|
+
require('./chunk-2MIBIYGU.cjs');
|
|
13
|
+
require('./chunk-UTVDQAK2.cjs');
|
|
14
14
|
require('./chunk-XITTOHOG.cjs');
|
|
15
15
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
16
16
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkVKJZVZO3cjs.build; exports.cleanOutputPath = _chunkVKJZVZO3cjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
cleanOutputPath
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WQPBFWHA.js";
|
|
5
|
+
import "./chunk-M4U64EJG.js";
|
|
6
|
+
import "./chunk-7UYZTNGE.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-DEQ3NJFX.js";
|
|
10
10
|
import "./chunk-Q3LOGZKI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-YXP75YVC.js";
|
|
12
|
+
import "./chunk-UOMGQ2T3.js";
|
|
13
|
+
import "./chunk-D6KDL53G.js";
|
|
14
14
|
import "./chunk-YMTDVMD6.js";
|
|
15
15
|
import "./chunk-YNQ45EAM.js";
|
|
16
16
|
import "./chunk-GWG4HOQ6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -86,8 +86,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bun
|
|
|
86
86
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
87
87
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
88
88
|
});
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
_chunkUTVDQAK2cjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkUTVDQAK2cjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
91
91
|
if (filteredMissingDeps.length > 0) {
|
|
92
92
|
throw new Error(`Missing dependencies detected - please install them:
|
|
93
93
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -84,7 +84,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
84
84
|
localBuild: true
|
|
85
85
|
});
|
|
86
86
|
if (extractorResult.succeeded === false) {
|
|
87
|
-
|
|
87
|
+
_chunkUTVDQAK2cjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
88
88
|
throw new Error("API Extractor completed with errors");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DEQ3NJFX.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePathsPlugin
|
|
12
12
|
} from "./chunk-Q3LOGZKI.js";
|
|
13
13
|
import {
|
|
14
14
|
tscPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YXP75YVC.js";
|
|
16
16
|
import {
|
|
17
17
|
COLOR_KEYS,
|
|
18
18
|
LogLevel,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
writeDebug,
|
|
29
29
|
writeTrace,
|
|
30
30
|
writeWarning
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-D6KDL53G.js";
|
|
32
32
|
import {
|
|
33
33
|
correctPaths,
|
|
34
34
|
joinPaths
|
|
@@ -447,17 +447,14 @@ var getChalk = /* @__PURE__ */ __name(() => {
|
|
|
447
447
|
}, "getChalk");
|
|
448
448
|
|
|
449
449
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
450
|
-
import process2 from "node:process";
|
|
451
450
|
function isUnicodeSupported() {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
if (process2.platform !== "win32") {
|
|
455
|
-
return TERM !== "linux";
|
|
451
|
+
if (process.platform !== "win32") {
|
|
452
|
+
return process.env.TERM !== "linux";
|
|
456
453
|
}
|
|
457
|
-
return Boolean(env.WT_SESSION) || // Windows Terminal
|
|
458
|
-
Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
459
|
-
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
460
|
-
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
454
|
+
return Boolean(process.env.WT_SESSION) || // Windows Terminal
|
|
455
|
+
Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
456
|
+
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
457
|
+
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
461
458
|
}
|
|
462
459
|
__name(isUnicodeSupported, "isUnicodeSupported");
|
|
463
460
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -11,7 +11,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
|
|
|
11
11
|
setup(build) {
|
|
12
12
|
build.onEnd((result) => {
|
|
13
13
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
14
|
-
|
|
14
|
+
_chunkUTVDQAK2cjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
15
15
|
${result.errors.map((error) => error.text).join("\n")}
|
|
16
16
|
|
|
17
17
|
`, resolvedOptions.config);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -9,8 +9,8 @@ var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
|
9
9
|
// src/clean.ts
|
|
10
10
|
var _promises = require('fs/promises');
|
|
11
11
|
async function clean(name = "ESBuild", directory, config) {
|
|
12
|
-
|
|
13
|
-
const stopwatch =
|
|
12
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
13
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
14
14
|
await cleanDirectories(name, directory, config);
|
|
15
15
|
stopwatch();
|
|
16
16
|
}
|
|
@@ -447,17 +447,14 @@ var getChalk = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
447
447
|
}, "getChalk");
|
|
448
448
|
|
|
449
449
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
450
|
-
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
451
450
|
function isUnicodeSupported() {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
if (_process2.default.platform !== "win32") {
|
|
455
|
-
return TERM !== "linux";
|
|
451
|
+
if (process.platform !== "win32") {
|
|
452
|
+
return process.env.TERM !== "linux";
|
|
456
453
|
}
|
|
457
|
-
return Boolean(env.WT_SESSION) || // Windows Terminal
|
|
458
|
-
Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
459
|
-
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
460
|
-
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
454
|
+
return Boolean(process.env.WT_SESSION) || // Windows Terminal
|
|
455
|
+
Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
456
|
+
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
457
|
+
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
461
458
|
}
|
|
462
459
|
_chunkBGYQAVKQcjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
463
460
|
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _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 _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -14,10 +14,10 @@ var _chunkN6TS5EDIcjs = require('./chunk-N6TS5EDI.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZPV4MFLScjs = require('./chunk-ZPV4MFLS.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2MIBIYGUcjs = require('./chunk-2MIBIYGU.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ var _chunkU4Y35CZ5cjs = require('./chunk-U4Y35CZ5.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -278,9 +278,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
278
278
|
if (!workspaceRoot) {
|
|
279
279
|
throw new Error("Cannot find Nx workspace root");
|
|
280
280
|
}
|
|
281
|
-
const config = await
|
|
282
|
-
|
|
283
|
-
const stopwatch =
|
|
281
|
+
const config = await _chunkZPV4MFLScjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
282
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
283
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
284
284
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
285
285
|
exitOnError: true
|
|
286
286
|
});
|
|
@@ -295,17 +295,17 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
295
295
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
296
296
|
throw new Error("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.");
|
|
297
297
|
}
|
|
298
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
298
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkZPV4MFLScjs.DEFAULT_BUILD_OPTIONS);
|
|
299
299
|
options.name ??= `${projectName}-${options.format}`;
|
|
300
|
-
options.target ??=
|
|
300
|
+
options.target ??= _chunkZPV4MFLScjs.DEFAULT_TARGET;
|
|
301
301
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
302
302
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
303
303
|
throw new Error("Cannot find package.json configuration");
|
|
304
304
|
}
|
|
305
305
|
const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
|
|
306
306
|
const packageJson = JSON.parse(packageJsonFile);
|
|
307
|
-
const outExtension =
|
|
308
|
-
const env =
|
|
307
|
+
const outExtension = _chunkZPV4MFLScjs.getOutputExtensionMap.call(void 0, options, packageJson.type);
|
|
308
|
+
const env = _chunkZPV4MFLScjs.getEnv.call(void 0, "esbuild", options);
|
|
309
309
|
const result = {
|
|
310
310
|
...options,
|
|
311
311
|
config,
|
|
@@ -325,7 +325,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
325
325
|
...userOptions,
|
|
326
326
|
tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
327
327
|
format: options.format || "cjs",
|
|
328
|
-
entryPoints: await
|
|
328
|
+
entryPoints: await _chunkZPV4MFLScjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
329
329
|
"./src/index.ts"
|
|
330
330
|
], userOptions.emitOnAll),
|
|
331
331
|
outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -336,7 +336,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
336
336
|
projectGraph,
|
|
337
337
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
338
338
|
minify: userOptions.minify || !userOptions.debug,
|
|
339
|
-
verbose: userOptions.verbose ||
|
|
339
|
+
verbose: userOptions.verbose || _chunkUTVDQAK2cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
340
340
|
includeSrc: userOptions.includeSrc === true,
|
|
341
341
|
metafile: userOptions.metafile !== false,
|
|
342
342
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -350,8 +350,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
350
350
|
outExtension,
|
|
351
351
|
footer: userOptions.footer,
|
|
352
352
|
banner: {
|
|
353
|
-
js: options.banner ||
|
|
354
|
-
css: options.banner ||
|
|
353
|
+
js: options.banner || _chunkZPV4MFLScjs.DEFAULT_COMPILED_BANNER,
|
|
354
|
+
css: options.banner || _chunkZPV4MFLScjs.DEFAULT_COMPILED_BANNER
|
|
355
355
|
},
|
|
356
356
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
357
357
|
treeShaking: options.format === "esm",
|
|
@@ -377,14 +377,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
377
377
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
378
378
|
].filter(Boolean)
|
|
379
379
|
};
|
|
380
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
380
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkZPV4MFLScjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
381
381
|
stopwatch();
|
|
382
382
|
return result;
|
|
383
383
|
}, "resolveOptions");
|
|
384
384
|
async function generatePackageJson(context2) {
|
|
385
385
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
386
|
-
|
|
387
|
-
const stopwatch =
|
|
386
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
387
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
388
388
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
389
389
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
390
390
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -394,11 +394,11 @@ async function generatePackageJson(context2) {
|
|
|
394
394
|
if (!packageJson) {
|
|
395
395
|
throw new Error("Cannot find package.json configuration file");
|
|
396
396
|
}
|
|
397
|
-
packageJson = await
|
|
398
|
-
packageJson = await
|
|
397
|
+
packageJson = await _chunkZPV4MFLScjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
398
|
+
packageJson = await _chunkZPV4MFLScjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
399
399
|
packageJson.exports ??= {};
|
|
400
400
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
401
|
-
packageJson.exports["."] ??=
|
|
401
|
+
packageJson.exports["."] ??= _chunkZPV4MFLScjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
402
402
|
let entryPoints = [
|
|
403
403
|
{
|
|
404
404
|
in: "./src/index.ts",
|
|
@@ -416,7 +416,7 @@ async function generatePackageJson(context2) {
|
|
|
416
416
|
const split = entryPoint.out.split(".");
|
|
417
417
|
split.pop();
|
|
418
418
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
419
|
-
packageJson.exports[`./${entry}`] ??=
|
|
419
|
+
packageJson.exports[`./${entry}`] ??= _chunkZPV4MFLScjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -454,8 +454,8 @@ async function generateContext(getOptions) {
|
|
|
454
454
|
}
|
|
455
455
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
456
456
|
async function executeEsBuild(context2) {
|
|
457
|
-
|
|
458
|
-
const stopwatch =
|
|
457
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
458
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
459
459
|
if (process.env.WATCH === "true") {
|
|
460
460
|
const ctx = await esbuild.context(context2.options);
|
|
461
461
|
watch(ctx, context2.options);
|
|
@@ -471,9 +471,9 @@ async function executeEsBuild(context2) {
|
|
|
471
471
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
472
472
|
async function copyBuildAssets(context2) {
|
|
473
473
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
474
|
-
|
|
475
|
-
const stopwatch =
|
|
476
|
-
await
|
|
474
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
475
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
476
|
+
await _chunkZPV4MFLScjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
477
477
|
stopwatch();
|
|
478
478
|
}
|
|
479
479
|
return context2;
|
|
@@ -482,9 +482,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
482
482
|
async function reportResults(context2) {
|
|
483
483
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
484
484
|
if (context2.result.warnings.length > 0) {
|
|
485
|
-
|
|
485
|
+
_chunkUTVDQAK2cjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
_chunkUTVDQAK2cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -510,7 +510,7 @@ async function dependencyCheck(options) {
|
|
|
510
510
|
write: false,
|
|
511
511
|
outdir: "out",
|
|
512
512
|
plugins: [
|
|
513
|
-
|
|
513
|
+
_chunk2MIBIYGUcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
514
514
|
]
|
|
515
515
|
});
|
|
516
516
|
await buildPromise.catch(() => {
|
|
@@ -520,17 +520,17 @@ async function dependencyCheck(options) {
|
|
|
520
520
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
521
521
|
async function cleanOutputPath(context2) {
|
|
522
522
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
523
|
-
|
|
524
|
-
const stopwatch =
|
|
525
|
-
await
|
|
523
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
524
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
525
|
+
await _chunkQ7K2MKJScjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
526
526
|
stopwatch();
|
|
527
527
|
}
|
|
528
528
|
return context2;
|
|
529
529
|
}
|
|
530
530
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
531
531
|
async function build2(options) {
|
|
532
|
-
|
|
533
|
-
const stopwatch =
|
|
532
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
533
|
+
const stopwatch = _chunkUTVDQAK2cjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
534
534
|
try {
|
|
535
535
|
const opts = Array.isArray(options) ? options : [
|
|
536
536
|
options
|
|
@@ -540,9 +540,9 @@ async function build2(options) {
|
|
|
540
540
|
}
|
|
541
541
|
void transduce.async(opts, dependencyCheck);
|
|
542
542
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
543
|
-
|
|
543
|
+
_chunkUTVDQAK2cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
544
544
|
} catch (error) {
|
|
545
|
-
|
|
545
|
+
_chunkUTVDQAK2cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
546
546
|
throw error;
|
|
547
547
|
} finally {
|
|
548
548
|
stopwatch();
|
|
@@ -570,9 +570,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
570
570
|
return context2.rebuild();
|
|
571
571
|
});
|
|
572
572
|
if (rebuildResult instanceof Error) {
|
|
573
|
-
|
|
573
|
+
_chunkUTVDQAK2cjs.writeError.call(void 0, rebuildResult.message);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
576
576
|
}, 10);
|
|
577
577
|
changeWatcher.on("change", fastRebuild);
|
|
578
578
|
return void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M4U64EJG.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
getEntryPoints,
|
|
15
15
|
getEnv,
|
|
16
16
|
getOutputExtensionMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7UYZTNGE.js";
|
|
18
18
|
import {
|
|
19
19
|
depsCheckPlugin
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UOMGQ2T3.js";
|
|
21
21
|
import {
|
|
22
22
|
getStopwatch,
|
|
23
23
|
isVerbose,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
writeSuccess,
|
|
28
28
|
writeTrace,
|
|
29
29
|
writeWarning
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D6KDL53G.js";
|
|
31
31
|
import {
|
|
32
32
|
joinPaths
|
|
33
33
|
} from "./chunk-YMTDVMD6.js";
|
|
@@ -6,13 +6,13 @@ var _chunkS6M44SSZcjs = require('./chunk-S6M44SSZ.cjs');
|
|
|
6
6
|
var _chunkWRBUO7H6cjs = require('./chunk-WRBUO7H6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkM3OOEUTHcjs = require('./chunk-M3OOEUTH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk6RYUOHHQcjs = require('./chunk-6RYUOHHQ.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunkPWNUMPV7cjs = require('./chunk-PWNUMPV7.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkUTVDQAK2cjs = require('./chunk-UTVDQAK2.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -97,7 +97,7 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
|
|
|
97
97
|
output: "src/"
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
101
101
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
102
102
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
103
103
|
projectDir: projectRoot,
|
|
@@ -107,7 +107,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
107
107
|
});
|
|
108
108
|
await assetHandler.processAllAssetsOnce();
|
|
109
109
|
if (includeSrc === true) {
|
|
110
|
-
|
|
110
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
111
111
|
const files = await _glob.glob.call(void 0, [
|
|
112
112
|
_chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
113
113
|
_chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -146,7 +146,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
if (localPackages.length > 0) {
|
|
149
|
-
|
|
149
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
150
150
|
const projectJsonFile = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
151
151
|
const projectJson = JSON.parse(projectJsonFile);
|
|
152
152
|
const projectName2 = projectJson.name;
|
|
@@ -180,12 +180,12 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
180
180
|
return ret;
|
|
181
181
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
182
182
|
} else {
|
|
183
|
-
|
|
183
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
184
184
|
}
|
|
185
185
|
return packageJson;
|
|
186
186
|
}, "addPackageDependencies");
|
|
187
187
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
188
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
188
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, );
|
|
189
189
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
190
190
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
191
191
|
packageJson.type ??= "module";
|
|
@@ -254,7 +254,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
254
254
|
var _c12 = require('c12');
|
|
255
255
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
256
256
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
257
|
-
const workspacePath = filePath ||
|
|
257
|
+
const workspacePath = filePath || _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
258
258
|
const configs = await Promise.all([
|
|
259
259
|
_c12.loadConfig.call(void 0, {
|
|
260
260
|
cwd: workspacePath,
|
|
@@ -283,12 +283,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
283
283
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
284
284
|
}, "getConfigFileByName");
|
|
285
285
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
286
|
-
const workspacePath = filePath ? filePath :
|
|
286
|
+
const workspacePath = filePath ? filePath : _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
287
287
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
288
288
|
let config = result.config;
|
|
289
289
|
const configFile = result.configFile;
|
|
290
290
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
291
|
-
|
|
291
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
292
292
|
logLevel: "all"
|
|
293
293
|
});
|
|
294
294
|
}
|
|
@@ -297,7 +297,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
297
297
|
for (const result2 of results) {
|
|
298
298
|
if (_optionalChain([result2, 'optionalAccess', _18 => _18.config]) && _optionalChain([result2, 'optionalAccess', _19 => _19.configFile]) && Object.keys(result2.config).length > 0) {
|
|
299
299
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
300
|
-
|
|
300
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
301
301
|
logLevel: "all"
|
|
302
302
|
});
|
|
303
303
|
}
|
|
@@ -376,24 +376,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
376
376
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
377
377
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
378
378
|
},
|
|
379
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ?
|
|
379
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkUTVDQAK2cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
380
380
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
381
381
|
};
|
|
382
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
382
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkUTVDQAK2cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
383
383
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
384
384
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
385
385
|
return ret;
|
|
386
386
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
387
|
-
if (config.docs ===
|
|
388
|
-
if (config.homepage ===
|
|
389
|
-
config.docs = `${
|
|
387
|
+
if (config.docs === _chunkUTVDQAK2cjs.STORM_DEFAULT_DOCS) {
|
|
388
|
+
if (config.homepage === _chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
389
|
+
config.docs = `${_chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
390
390
|
} else {
|
|
391
391
|
config.docs = `${config.homepage}/docs`;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
if (config.licensing ===
|
|
395
|
-
if (config.homepage ===
|
|
396
|
-
config.licensing = `${
|
|
394
|
+
if (config.licensing === _chunkUTVDQAK2cjs.STORM_DEFAULT_LICENSING) {
|
|
395
|
+
if (config.homepage === _chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
396
|
+
config.licensing = `${_chunkUTVDQAK2cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
397
397
|
} else {
|
|
398
398
|
config.licensing = `${config.homepage}/docs`;
|
|
399
399
|
}
|
|
@@ -609,8 +609,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
609
609
|
if (config.logLevel) {
|
|
610
610
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
611
611
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
612
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
613
|
-
process.env.RUST_BACKTRACE =
|
|
612
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkUTVDQAK2cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkUTVDQAK2cjs.LogLevel.DEBUG ? true : false);
|
|
613
|
+
process.env.RUST_BACKTRACE = _chunkUTVDQAK2cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkUTVDQAK2cjs.LogLevel.DEBUG ? "full" : "none";
|
|
614
614
|
}
|
|
615
615
|
if (config.skipConfigLogging !== void 0) {
|
|
616
616
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -726,17 +726,17 @@ var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, as
|
|
|
726
726
|
if (!_optionalChain([_static_cache, 'optionalAccess', _42 => _42.data]) || !_optionalChain([_static_cache, 'optionalAccess', _43 => _43.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
727
727
|
let _workspaceRoot = workspaceRoot;
|
|
728
728
|
if (!_workspaceRoot) {
|
|
729
|
-
_workspaceRoot =
|
|
729
|
+
_workspaceRoot = _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, );
|
|
730
730
|
}
|
|
731
731
|
const configEnv = getConfigEnv();
|
|
732
|
-
const defaultConfig = await
|
|
732
|
+
const defaultConfig = await _chunkUTVDQAK2cjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
733
733
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
734
734
|
if (!configFile && !skipLogs) {
|
|
735
|
-
|
|
735
|
+
_chunkUTVDQAK2cjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
736
736
|
logLevel: "all"
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
|
-
result = await
|
|
739
|
+
result = await _chunkUTVDQAK2cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
740
740
|
result.workspaceRoot ??= _workspaceRoot;
|
|
741
741
|
} else {
|
|
742
742
|
result = _static_cache.data;
|
|
@@ -771,8 +771,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, asyn
|
|
|
771
771
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
772
772
|
setConfigEnv(config);
|
|
773
773
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
774
|
-
|
|
775
|
-
${
|
|
774
|
+
_chunkUTVDQAK2cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
775
|
+
${_chunkUTVDQAK2cjs.formatLogMessage.call(void 0, config)}`, config);
|
|
776
776
|
}
|
|
777
777
|
return config;
|
|
778
778
|
}, "loadStormConfig");
|
|
@@ -785,7 +785,7 @@ var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspace
|
|
|
785
785
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
786
786
|
|
|
787
787
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
788
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
788
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkUTVDQAK2cjs.findWorkspaceRoot.call(void 0, );
|
|
789
789
|
const entryPoints = [];
|
|
790
790
|
if (entry) {
|
|
791
791
|
if (Array.isArray(entry)) {
|
|
@@ -808,7 +808,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
808
808
|
results.push(...files.reduce((ret, filePath) => {
|
|
809
809
|
const result = _chunkXITTOHOGcjs.correctPaths.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
810
810
|
if (result) {
|
|
811
|
-
|
|
811
|
+
_chunkUTVDQAK2cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
812
812
|
if (!results.includes(result)) {
|
|
813
813
|
results.push(result);
|
|
814
814
|
}
|
|
@@ -875,8 +875,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
875
875
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
876
876
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
877
877
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
_chunk6RYUOHHQcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
879
|
+
_chunkM3OOEUTHcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
880
880
|
], "getDefaultBuildPlugins");
|
|
881
881
|
var DEFAULT_BUILD_OPTIONS = {
|
|
882
882
|
platform: "node",
|
package/dist/clean.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
|
|
5
|
+
require('./chunk-UTVDQAK2.cjs');
|
|
6
6
|
require('./chunk-XITTOHOG.cjs');
|
|
7
7
|
require('./chunk-BGYQAVKQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.clean =
|
|
11
|
+
exports.clean = _chunkQ7K2MKJScjs.clean; exports.cleanDirectories = _chunkQ7K2MKJScjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZPV4MFLScjs = require('./chunk-ZPV4MFLS.cjs');
|
|
6
6
|
require('./chunk-S6M44SSZ.cjs');
|
|
7
7
|
require('./chunk-WRBUO7H6.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-M3OOEUTH.cjs');
|
|
9
9
|
require('./chunk-SSEYS7LI.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-6RYUOHHQ.cjs');
|
|
11
|
+
require('./chunk-UTVDQAK2.cjs');
|
|
12
12
|
require('./chunk-XITTOHOG.cjs');
|
|
13
13
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
14
14
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -17,4 +17,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
20
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkZPV4MFLScjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkZPV4MFLScjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkZPV4MFLScjs.getOutputExtensionMap;
|
package/dist/config.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
DEFAULT_BUILD_OPTIONS,
|
|
3
3
|
getDefaultBuildPlugins,
|
|
4
4
|
getOutputExtensionMap
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7UYZTNGE.js";
|
|
6
6
|
import "./chunk-T5272PC2.js";
|
|
7
7
|
import "./chunk-LYDEMC26.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DEQ3NJFX.js";
|
|
9
9
|
import "./chunk-Q3LOGZKI.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YXP75YVC.js";
|
|
11
|
+
import "./chunk-D6KDL53G.js";
|
|
12
12
|
import "./chunk-YMTDVMD6.js";
|
|
13
13
|
import "./chunk-YNQ45EAM.js";
|
|
14
14
|
import "./chunk-GWG4HOQ6.js";
|
package/dist/index.cjs
CHANGED
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVKJZVZO3cjs = require('./chunk-VKJZVZO3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkQ7K2MKJScjs = require('./chunk-Q7K2MKJS.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkZPV4MFLScjs = require('./chunk-ZPV4MFLS.cjs');
|
|
20
20
|
require('./chunk-S6M44SSZ.cjs');
|
|
21
21
|
require('./chunk-WRBUO7H6.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-M3OOEUTH.cjs');
|
|
23
23
|
require('./chunk-SSEYS7LI.cjs');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-6RYUOHHQ.cjs');
|
|
25
25
|
require('./chunk-SFZRYJZ2.cjs');
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-2MIBIYGU.cjs');
|
|
27
|
+
require('./chunk-UTVDQAK2.cjs');
|
|
28
28
|
require('./chunk-XITTOHOG.cjs');
|
|
29
29
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
30
30
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -43,4 +43,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
46
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkZPV4MFLScjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkVKJZVZO3cjs.Filter; exports.Mapper = _chunkVKJZVZO3cjs.Mapper; exports.build = _chunkVKJZVZO3cjs.build; exports.clean = _chunkQ7K2MKJScjs.clean; exports.cleanDirectories = _chunkQ7K2MKJScjs.cleanDirectories; exports.cleanOutputPath = _chunkVKJZVZO3cjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkZPV4MFLScjs.getDefaultBuildPlugins; exports.getOutputExtensionMap = _chunkZPV4MFLScjs.getOutputExtensionMap; exports.handle = _chunkVKJZVZO3cjs.handle; exports.pipe = _chunkVKJZVZO3cjs.pipe; exports.skip = _chunkVKJZVZO3cjs.skip; exports.transduce = _chunkVKJZVZO3cjs.transduce;
|
package/dist/index.js
CHANGED
|
@@ -7,24 +7,24 @@ import {
|
|
|
7
7
|
pipe,
|
|
8
8
|
skip,
|
|
9
9
|
transduce
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WQPBFWHA.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M4U64EJG.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins,
|
|
18
18
|
getOutputExtensionMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7UYZTNGE.js";
|
|
20
20
|
import "./chunk-T5272PC2.js";
|
|
21
21
|
import "./chunk-LYDEMC26.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-DEQ3NJFX.js";
|
|
23
23
|
import "./chunk-Q3LOGZKI.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-YXP75YVC.js";
|
|
25
25
|
import "./chunk-GGNOJ77I.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-UOMGQ2T3.js";
|
|
27
|
+
import "./chunk-D6KDL53G.js";
|
|
28
28
|
import "./chunk-YMTDVMD6.js";
|
|
29
29
|
import "./chunk-YNQ45EAM.js";
|
|
30
30
|
import "./chunk-GWG4HOQ6.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk2MIBIYGUcjs = require('../chunk-2MIBIYGU.cjs');
|
|
4
|
+
require('../chunk-UTVDQAK2.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.depsCheckPlugin =
|
|
9
|
+
exports.depsCheckPlugin = _chunk2MIBIYGUcjs.depsCheckPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkM3OOEUTHcjs = require('../chunk-M3OOEUTH.cjs');
|
|
4
|
+
require('../chunk-UTVDQAK2.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.onErrorPlugin =
|
|
9
|
+
exports.onErrorPlugin = _chunkM3OOEUTHcjs.onErrorPlugin;
|
package/dist/plugins/on-error.js
CHANGED
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk6RYUOHHQcjs = require('../chunk-6RYUOHHQ.cjs');
|
|
4
|
+
require('../chunk-UTVDQAK2.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.tscPlugin =
|
|
9
|
+
exports.tscPlugin = _chunk6RYUOHHQcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"license": "Apache-2.0",
|
|
42
42
|
"private": false,
|
|
43
|
-
"packageManager": "pnpm@
|
|
44
|
-
"engines": { "node": ">=22.4.0", "pnpm": ">=
|
|
43
|
+
"packageManager": "pnpm@10.3.0",
|
|
44
|
+
"engines": { "node": ">=22.4.0", "pnpm": ">=10.3.0" },
|
|
45
45
|
"bin": {
|
|
46
46
|
"storm-esbuild": "./bin/esbuild.js",
|
|
47
47
|
"storm-esbuild-cjs": "./bin/esbuild.cjs",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"@nx/js": "^20.3.1",
|
|
174
174
|
"@storm-software/build-tools": "0.138.33",
|
|
175
175
|
"@storm-software/config": "1.101.26",
|
|
176
|
-
"@storm-software/config-tools": "1.
|
|
176
|
+
"@storm-software/config-tools": "1.153.3",
|
|
177
177
|
"@types/node": "^22.10.2",
|
|
178
178
|
"defu": "6.1.4",
|
|
179
179
|
"esbuild": "^0.24.0",
|