@storm-software/esbuild 0.17.3 → 0.18.0
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/dist/build.cjs +8 -8
- package/dist/build.js +7 -7
- package/dist/{chunk-MPTQJ2NM.cjs → chunk-2C3TGE3A.cjs} +32 -32
- package/dist/{chunk-PQ6YIJ72.cjs → chunk-2GDH4JSN.cjs} +2 -2
- package/dist/{chunk-HYM243U5.js → chunk-6B4WCVK3.js} +4 -4
- package/dist/{chunk-7KR3YBS6.js → chunk-B6XATEM4.js} +1 -1
- package/dist/{chunk-CSIA25K2.js → chunk-C7RQ2QZM.js} +3 -3
- package/dist/{chunk-HQGUIF4U.js → chunk-IMZK22U3.js} +54 -8
- package/dist/{chunk-NVWDQVN6.js → chunk-JETLWBVI.js} +1 -1
- package/dist/{chunk-4JLYXTKD.cjs → chunk-MQBIMPCE.cjs} +2 -2
- package/dist/{chunk-VRIMJ7BT.cjs → chunk-O5KQUB74.cjs} +37 -37
- package/dist/{chunk-VZBOWHCM.cjs → chunk-QJCTL2UQ.cjs} +3 -3
- package/dist/{chunk-TP5EOMRD.cjs → chunk-UJM4BCSP.cjs} +3 -3
- package/dist/{chunk-KOK4WCHS.js → chunk-UY5T74KN.js} +1 -1
- package/dist/{chunk-KE5DL2BG.js → chunk-Y67WRXQG.js} +1 -1
- package/dist/{chunk-VBINBV4Z.cjs → chunk-ZKJVN5D7.cjs} +54 -8
- package/dist/clean.cjs +3 -3
- package/dist/clean.d.cts +57 -57
- package/dist/clean.d.ts +57 -57
- 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/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm ESBuild Package](#storm-esbuild-package)
|
package/dist/build.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkO5KQUB74cjs = require('./chunk-O5KQUB74.cjs');
|
|
4
|
+
require('./chunk-UJM4BCSP.cjs');
|
|
5
|
+
require('./chunk-2C3TGE3A.cjs');
|
|
6
6
|
require('./chunk-S6M44SSZ.cjs');
|
|
7
7
|
require('./chunk-WRBUO7H6.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-MQBIMPCE.cjs');
|
|
9
9
|
require('./chunk-RMB62XEL.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-2GDH4JSN.cjs');
|
|
11
|
+
require('./chunk-QJCTL2UQ.cjs');
|
|
12
|
+
require('./chunk-ZKJVN5D7.cjs');
|
|
13
13
|
require('./chunk-LVWQSCJM.cjs');
|
|
14
14
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
15
15
|
require('./chunk-EZGTDCYM.cjs');
|
|
16
16
|
require('./chunk-BGYQAVKQ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.build =
|
|
19
|
+
exports.build = _chunkO5KQUB74cjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6B4WCVK3.js";
|
|
4
|
+
import "./chunk-JETLWBVI.js";
|
|
5
|
+
import "./chunk-C7RQ2QZM.js";
|
|
6
6
|
import "./chunk-T5272PC2.js";
|
|
7
7
|
import "./chunk-LYDEMC26.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Y67WRXQG.js";
|
|
9
9
|
import "./chunk-DAGDNKO5.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-UY5T74KN.js";
|
|
11
|
+
import "./chunk-B6XATEM4.js";
|
|
12
|
+
import "./chunk-IMZK22U3.js";
|
|
13
13
|
import "./chunk-7MDMXJ5V.js";
|
|
14
14
|
import "./chunk-YNQ45EAM.js";
|
|
15
15
|
import "./chunk-GWG4HOQ6.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 _chunkMQBIMPCEcjs = require('./chunk-MQBIMPCE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkRMB62XELcjs = require('./chunk-RMB62XEL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2GDH4JSNcjs = require('./chunk-2GDH4JSN.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -29,7 +29,7 @@ var _chunkPQ6YIJ72cjs = require('./chunk-PQ6YIJ72.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkZKJVN5D7cjs = require('./chunk-ZKJVN5D7.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -81,7 +81,7 @@ var _glob = require('glob');
|
|
|
81
81
|
var _c12 = require('c12');
|
|
82
82
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
83
83
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
84
|
-
const workspacePath = filePath ||
|
|
84
|
+
const workspacePath = filePath || _chunkZKJVN5D7cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
85
85
|
let config = _c12.loadConfig.call(void 0, {
|
|
86
86
|
cwd: workspacePath,
|
|
87
87
|
packageJson: true,
|
|
@@ -110,12 +110,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
110
110
|
return config;
|
|
111
111
|
}, "getConfigFileByName");
|
|
112
112
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
113
|
-
const workspacePath = filePath ? filePath :
|
|
113
|
+
const workspacePath = filePath ? filePath : _chunkZKJVN5D7cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
114
114
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
115
115
|
let config = result.config;
|
|
116
116
|
const configFile = result.configFile;
|
|
117
117
|
if (config && configFile && Object.keys(config).length > 0) {
|
|
118
|
-
|
|
118
|
+
_chunkZKJVN5D7cjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
119
119
|
logLevel: "all"
|
|
120
120
|
});
|
|
121
121
|
}
|
|
@@ -123,7 +123,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
123
123
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
124
124
|
for (const result2 of results) {
|
|
125
125
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
126
|
-
|
|
126
|
+
_chunkZKJVN5D7cjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
127
127
|
logLevel: "all"
|
|
128
128
|
});
|
|
129
129
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
@@ -191,23 +191,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
191
191
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
192
192
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
193
193
|
},
|
|
194
|
-
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`])) ?
|
|
194
|
+
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`])) ? _chunkZKJVN5D7cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
195
195
|
};
|
|
196
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
196
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkZKJVN5D7cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
197
197
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
198
198
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
199
199
|
return ret;
|
|
200
200
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
201
|
-
if (config.docs ===
|
|
202
|
-
if (config.homepage ===
|
|
203
|
-
config.docs = `${
|
|
201
|
+
if (config.docs === _chunkZKJVN5D7cjs.STORM_DEFAULT_DOCS) {
|
|
202
|
+
if (config.homepage === _chunkZKJVN5D7cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
203
|
+
config.docs = `${_chunkZKJVN5D7cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
204
204
|
} else {
|
|
205
205
|
config.docs = `${config.homepage}/docs`;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
if (config.licensing ===
|
|
209
|
-
if (config.homepage ===
|
|
210
|
-
config.licensing = `${
|
|
208
|
+
if (config.licensing === _chunkZKJVN5D7cjs.STORM_DEFAULT_LICENSING) {
|
|
209
|
+
if (config.homepage === _chunkZKJVN5D7cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
210
|
+
config.licensing = `${_chunkZKJVN5D7cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
211
211
|
} else {
|
|
212
212
|
config.licensing = `${config.homepage}/docs`;
|
|
213
213
|
}
|
|
@@ -423,8 +423,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
423
423
|
if (config.logLevel) {
|
|
424
424
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
425
425
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
426
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
427
|
-
process.env.RUST_BACKTRACE =
|
|
426
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkZKJVN5D7cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkZKJVN5D7cjs.LogLevel.DEBUG ? true : false);
|
|
427
|
+
process.env.RUST_BACKTRACE = _chunkZKJVN5D7cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkZKJVN5D7cjs.LogLevel.DEBUG ? "full" : "none";
|
|
428
428
|
}
|
|
429
429
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
430
430
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -534,23 +534,23 @@ var _static_cache = void 0;
|
|
|
534
534
|
var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot) => {
|
|
535
535
|
let config = {};
|
|
536
536
|
if (_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) && _optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
537
|
-
|
|
537
|
+
_chunkZKJVN5D7cjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
|
|
538
538
|
return _static_cache.data;
|
|
539
539
|
}
|
|
540
540
|
let _workspaceRoot = workspaceRoot;
|
|
541
541
|
if (!_workspaceRoot) {
|
|
542
|
-
_workspaceRoot =
|
|
542
|
+
_workspaceRoot = _chunkZKJVN5D7cjs.findWorkspaceRoot.call(void 0, );
|
|
543
543
|
}
|
|
544
544
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
545
545
|
if (!configFile) {
|
|
546
|
-
|
|
546
|
+
_chunkZKJVN5D7cjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
547
547
|
logLevel: "all"
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
config = _defu2.default.call(void 0, getConfigEnv(), configFile,
|
|
550
|
+
config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkZKJVN5D7cjs.getDefaultConfig.call(void 0, _workspaceRoot));
|
|
551
551
|
setConfigEnv(config);
|
|
552
|
-
|
|
553
|
-
${
|
|
552
|
+
_chunkZKJVN5D7cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
553
|
+
${_chunkZKJVN5D7cjs.formatLogMessage.call(void 0, config)}`, config);
|
|
554
554
|
return config;
|
|
555
555
|
}, "loadStormConfig");
|
|
556
556
|
|
|
@@ -624,13 +624,13 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
|
|
|
624
624
|
projectsConfigurations,
|
|
625
625
|
nxJsonConfiguration: nxJson,
|
|
626
626
|
cwd: config.workspaceRoot,
|
|
627
|
-
isVerbose:
|
|
627
|
+
isVerbose: _chunkZKJVN5D7cjs.isVerbose.call(void 0, config.logLevel)
|
|
628
628
|
});
|
|
629
629
|
if (!result.success) {
|
|
630
630
|
throw new Error("The Build process failed trying to copy assets");
|
|
631
631
|
}
|
|
632
632
|
if (includeSrc === true) {
|
|
633
|
-
|
|
633
|
+
_chunkZKJVN5D7cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkLVWQSCJMcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
634
634
|
const files = await _glob.glob.call(void 0, [
|
|
635
635
|
_chunkLVWQSCJMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
636
636
|
_chunkLVWQSCJMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -680,7 +680,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
if (localPackages.length > 0) {
|
|
683
|
-
|
|
683
|
+
_chunkZKJVN5D7cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
684
684
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
685
685
|
if (!ret[localPackage.name]) {
|
|
686
686
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -702,12 +702,12 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
702
702
|
return ret;
|
|
703
703
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
704
704
|
} else {
|
|
705
|
-
|
|
705
|
+
_chunkZKJVN5D7cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
706
706
|
}
|
|
707
707
|
return packageJson;
|
|
708
708
|
}, "addPackageDependencies");
|
|
709
709
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
710
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
710
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkZKJVN5D7cjs.findWorkspaceRoot.call(void 0, );
|
|
711
711
|
const workspacePackageJson = await _node.hfs.json(_chunkLVWQSCJMcjs.joinPaths.call(void 0, workspaceRoot, "package.json"));
|
|
712
712
|
packageJson.type ??= "module";
|
|
713
713
|
packageJson.sideEffects ??= false;
|
|
@@ -774,7 +774,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
774
774
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
775
775
|
|
|
776
776
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
777
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
777
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkZKJVN5D7cjs.findWorkspaceRoot.call(void 0, );
|
|
778
778
|
const entryPoints = [];
|
|
779
779
|
if (entry) {
|
|
780
780
|
if (Array.isArray(entry)) {
|
|
@@ -797,7 +797,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
797
797
|
results.push(...files.reduce((ret, filePath) => {
|
|
798
798
|
const result = _chunkLVWQSCJMcjs.correctPaths.call(void 0, _chunkLVWQSCJMcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkLVWQSCJMcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkLVWQSCJMcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
799
799
|
if (result) {
|
|
800
|
-
|
|
800
|
+
_chunkZKJVN5D7cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkLVWQSCJMcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
801
801
|
if (!results.includes(result)) {
|
|
802
802
|
results.push(result);
|
|
803
803
|
}
|
|
@@ -860,8 +860,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
860
860
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
861
861
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
862
862
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
863
|
-
|
|
864
|
-
|
|
863
|
+
_chunk2GDH4JSNcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
864
|
+
_chunkMQBIMPCEcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
865
865
|
], "getDefaultBuildPlugins");
|
|
866
866
|
var DEFAULT_BUILD_OPTIONS = {
|
|
867
867
|
platform: "node",
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkZKJVN5D7cjs = require('./chunk-ZKJVN5D7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkLVWQSCJMcjs = require('./chunk-LVWQSCJM.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
|
+
_chunkZKJVN5D7cjs.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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clean
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JETLWBVI.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
getEnv,
|
|
15
15
|
getOutputExtensionMap,
|
|
16
16
|
loadStormConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-C7RQ2QZM.js";
|
|
18
18
|
import {
|
|
19
19
|
depsCheckPlugin
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B6XATEM4.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-IMZK22U3.js";
|
|
31
31
|
import {
|
|
32
32
|
joinPaths
|
|
33
33
|
} from "./chunk-7MDMXJ5V.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y67WRXQG.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePathsPlugin
|
|
12
12
|
} from "./chunk-DAGDNKO5.js";
|
|
13
13
|
import {
|
|
14
14
|
tscPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UY5T74KN.js";
|
|
16
16
|
import {
|
|
17
17
|
COLOR_KEYS,
|
|
18
18
|
LogLevel,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
writeSystem,
|
|
30
30
|
writeTrace,
|
|
31
31
|
writeWarning
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IMZK22U3.js";
|
|
33
33
|
import {
|
|
34
34
|
correctPaths,
|
|
35
35
|
joinPaths
|
|
@@ -22,6 +22,7 @@ var LogLevelLabel = {
|
|
|
22
22
|
FATAL: "fatal",
|
|
23
23
|
ERROR: "error",
|
|
24
24
|
WARN: "warn",
|
|
25
|
+
SUCCESS: "success",
|
|
25
26
|
INFO: "info",
|
|
26
27
|
DEBUG: "debug",
|
|
27
28
|
TRACE: "trace",
|
|
@@ -80,7 +81,7 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
80
81
|
}, "getLogLevelLabel");
|
|
81
82
|
var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
|
|
82
83
|
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
83
|
-
return logLevel
|
|
84
|
+
return logLevel >= LogLevel.DEBUG;
|
|
84
85
|
}, "isVerbose");
|
|
85
86
|
|
|
86
87
|
// ../config/src/constants.ts
|
|
@@ -221,6 +222,7 @@ var StormConfigSchema = z.object({
|
|
|
221
222
|
"fatal",
|
|
222
223
|
"error",
|
|
223
224
|
"warn",
|
|
225
|
+
"success",
|
|
224
226
|
"info",
|
|
225
227
|
"debug",
|
|
226
228
|
"trace",
|
|
@@ -406,12 +408,17 @@ var chalkDefault = {
|
|
|
406
408
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
407
409
|
}), "bgHex"),
|
|
408
410
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
|
|
411
|
+
gray: /* @__PURE__ */ __name((message) => message, "gray"),
|
|
409
412
|
bold: {
|
|
410
413
|
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
411
414
|
bgHex: /* @__PURE__ */ __name((_) => ({
|
|
412
415
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
413
416
|
}), "bgHex"),
|
|
414
417
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
418
|
+
},
|
|
419
|
+
dim: {
|
|
420
|
+
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
421
|
+
gray: /* @__PURE__ */ __name((message) => message, "gray")
|
|
415
422
|
}
|
|
416
423
|
};
|
|
417
424
|
var getChalk = /* @__PURE__ */ __name(() => {
|
|
@@ -422,6 +429,38 @@ var getChalk = /* @__PURE__ */ __name(() => {
|
|
|
422
429
|
return _chalk;
|
|
423
430
|
}, "getChalk");
|
|
424
431
|
|
|
432
|
+
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
433
|
+
import process2 from "node:process";
|
|
434
|
+
function isUnicodeSupported() {
|
|
435
|
+
const { env } = process2;
|
|
436
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
437
|
+
if (process2.platform !== "win32") {
|
|
438
|
+
return TERM !== "linux";
|
|
439
|
+
}
|
|
440
|
+
return Boolean(env.WT_SESSION) || // Windows Terminal
|
|
441
|
+
Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
442
|
+
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
443
|
+
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
444
|
+
}
|
|
445
|
+
__name(isUnicodeSupported, "isUnicodeSupported");
|
|
446
|
+
|
|
447
|
+
// ../config-tools/src/logger/console-icons.ts
|
|
448
|
+
var useIcon = /* @__PURE__ */ __name((c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
449
|
+
var CONSOLE_ICONS = {
|
|
450
|
+
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
451
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
452
|
+
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
453
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
454
|
+
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
455
|
+
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
456
|
+
[LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
// ../config-tools/src/logger/format-timestamp.ts
|
|
460
|
+
var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date()) => {
|
|
461
|
+
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
462
|
+
}, "formatTimestamp");
|
|
463
|
+
|
|
425
464
|
// ../config-tools/src/logger/console.ts
|
|
426
465
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) => {
|
|
427
466
|
const _chalk = getChalk();
|
|
@@ -433,42 +472,49 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
433
472
|
}
|
|
434
473
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
435
474
|
return (message) => {
|
|
436
|
-
console.error(
|
|
475
|
+
console.error(`
|
|
476
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
437
477
|
`);
|
|
438
478
|
};
|
|
439
479
|
}
|
|
440
480
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
441
481
|
return (message) => {
|
|
442
|
-
console.error(
|
|
482
|
+
console.error(`
|
|
483
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
443
484
|
`);
|
|
444
485
|
};
|
|
445
486
|
}
|
|
446
487
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
447
488
|
return (message) => {
|
|
448
|
-
console.warn(
|
|
489
|
+
console.warn(`
|
|
490
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
449
491
|
`);
|
|
450
492
|
};
|
|
451
493
|
}
|
|
452
494
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
453
495
|
return (message) => {
|
|
454
|
-
console.info(
|
|
496
|
+
console.info(`
|
|
497
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
455
498
|
`);
|
|
456
499
|
};
|
|
457
500
|
}
|
|
458
501
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
459
502
|
return (message) => {
|
|
460
|
-
console.info(
|
|
503
|
+
console.info(`
|
|
504
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
461
505
|
`);
|
|
462
506
|
};
|
|
463
507
|
}
|
|
464
508
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
465
509
|
return (message) => {
|
|
466
|
-
console.debug(
|
|
510
|
+
console.debug(`
|
|
511
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
467
512
|
`);
|
|
468
513
|
};
|
|
469
514
|
}
|
|
470
515
|
return (message) => {
|
|
471
|
-
console.log(
|
|
516
|
+
console.log(`
|
|
517
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
472
518
|
`);
|
|
473
519
|
};
|
|
474
520
|
}, "getLogFn");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZKJVN5D7cjs = require('./chunk-ZKJVN5D7.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
|
+
_chunkZKJVN5D7cjs.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);
|