@storm-software/esbuild 0.26.12 → 0.26.13
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-5IEA3WKU.cjs → chunk-3ENEOIKE.cjs} +2 -2
- package/dist/{chunk-2HAHXU54.js → chunk-4ATDIKBQ.js} +1 -1
- package/dist/{chunk-B5TAG2NH.cjs → chunk-5F7O7BRG.cjs} +32 -32
- package/dist/{chunk-VWP2SU7A.cjs → chunk-DEO4HWIA.cjs} +3 -3
- package/dist/{chunk-62KAIAWT.cjs → chunk-DITM26C7.cjs} +3 -3
- package/dist/{chunk-XZED6WF3.cjs → chunk-F665CCSS.cjs} +1 -1
- package/dist/{chunk-WTBR5HER.cjs → chunk-H7G4L4A7.cjs} +38 -38
- package/dist/{chunk-GQQQCEJN.cjs → chunk-I2FH4C27.cjs} +2 -2
- package/dist/{chunk-ZDPALE64.js → chunk-KFFQSANO.js} +4 -4
- package/dist/{chunk-WYGGQUX3.js → chunk-LUJTYV5C.js} +1 -1
- package/dist/{chunk-7NZ2E6EC.js → chunk-NCMOSDGN.js} +1 -1
- package/dist/{chunk-DNJAV4NQ.js → chunk-TUAAYWUJ.js} +1 -1
- package/dist/{chunk-JG2TBFYI.js → chunk-VZIK4SOK.js} +3 -3
- package/dist/{chunk-IW7GZHF7.js → chunk-YWKYHSIN.js} +1 -1
- 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 +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 -->
|
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 _chunkH7G4L4A7cjs = require('./chunk-H7G4L4A7.cjs');
|
|
5
|
+
require('./chunk-DITM26C7.cjs');
|
|
6
|
+
require('./chunk-5F7O7BRG.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-I2FH4C27.cjs');
|
|
10
10
|
require('./chunk-SSEYS7LI.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-3ENEOIKE.cjs');
|
|
12
|
+
require('./chunk-DEO4HWIA.cjs');
|
|
13
|
+
require('./chunk-F665CCSS.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 = _chunkH7G4L4A7cjs.build; exports.cleanOutputPath = _chunkH7G4L4A7cjs.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-KFFQSANO.js";
|
|
5
|
+
import "./chunk-TUAAYWUJ.js";
|
|
6
|
+
import "./chunk-VZIK4SOK.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-YWKYHSIN.js";
|
|
10
10
|
import "./chunk-Q3LOGZKI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-LUJTYV5C.js";
|
|
12
|
+
import "./chunk-NCMOSDGN.js";
|
|
13
|
+
import "./chunk-4ATDIKBQ.js";
|
|
14
14
|
import "./chunk-YMTDVMD6.js";
|
|
15
15
|
import "./chunk-YNQ45EAM.js";
|
|
16
16
|
import "./chunk-GWG4HOQ6.js";
|
|
@@ -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 _chunkF665CCSScjs = require('./chunk-F665CCSS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -85,7 +85,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
85
85
|
localBuild: true
|
|
86
86
|
});
|
|
87
87
|
if (extractorResult.succeeded === false) {
|
|
88
|
-
|
|
88
|
+
_chunkF665CCSScjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
89
89
|
throw new Error("API Extractor completed with errors");
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -177,7 +177,7 @@ var ColorConfigMapSchema = z.union([
|
|
|
177
177
|
var ExtendsItemSchema = z.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
178
178
|
var ExtendsSchema = ExtendsItemSchema.or(z.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
179
179
|
var WorkspaceBotConfigSchema = z.object({
|
|
180
|
-
name: z.string().trim().default("
|
|
180
|
+
name: z.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
181
181
|
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
182
182
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
183
183
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
@@ -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 _chunkI2FH4C27cjs = require('./chunk-I2FH4C27.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk3ENEOIKEcjs = require('./chunk-3ENEOIKE.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunk5IEA3WKUcjs = require('./chunk-5IEA3WKU.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkF665CCSScjs = require('./chunk-F665CCSS.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
|
+
_chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.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 : _chunkF665CCSScjs.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 || _chunkF665CCSScjs.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 : _chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.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`])) ? _chunkF665CCSScjs.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_`) && _chunkF665CCSScjs.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 === _chunkF665CCSScjs.STORM_DEFAULT_DOCS) {
|
|
388
|
+
if (config.homepage === _chunkF665CCSScjs.STORM_DEFAULT_HOMEPAGE) {
|
|
389
|
+
config.docs = `${_chunkF665CCSScjs.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 === _chunkF665CCSScjs.STORM_DEFAULT_LICENSING) {
|
|
395
|
+
if (config.homepage === _chunkF665CCSScjs.STORM_DEFAULT_HOMEPAGE) {
|
|
396
|
+
config.licensing = `${_chunkF665CCSScjs.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(_chunkF665CCSScjs.getLogLevel.call(void 0, config.logLevel) >= _chunkF665CCSScjs.LogLevel.DEBUG ? true : false);
|
|
613
|
+
process.env.RUST_BACKTRACE = _chunkF665CCSScjs.getLogLevel.call(void 0, config.logLevel) >= _chunkF665CCSScjs.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 = _chunkF665CCSScjs.findWorkspaceRoot.call(void 0, );
|
|
730
730
|
}
|
|
731
731
|
const configEnv = getConfigEnv();
|
|
732
|
-
const defaultConfig = await
|
|
732
|
+
const defaultConfig = await _chunkF665CCSScjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
733
733
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
734
734
|
if (!configFile && !skipLogs) {
|
|
735
|
-
|
|
735
|
+
_chunkF665CCSScjs.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 _chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
775
|
+
${_chunkF665CCSScjs.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 : _chunkF665CCSScjs.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
|
+
_chunkF665CCSScjs.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
|
}
|
|
@@ -850,8 +850,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
850
850
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
851
851
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
852
852
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
853
|
-
|
|
854
|
-
|
|
853
|
+
_chunk3ENEOIKEcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
854
|
+
_chunkI2FH4C27cjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
855
855
|
], "getDefaultBuildPlugins");
|
|
856
856
|
var DEFAULT_BUILD_OPTIONS = {
|
|
857
857
|
platform: "node",
|
|
@@ -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 _chunkF665CCSScjs = require('./chunk-F665CCSS.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
|
+
_chunkF665CCSScjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkF665CCSScjs.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,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkF665CCSScjs = require('./chunk-F665CCSS.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
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
13
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
14
14
|
await cleanDirectories(name, directory, config);
|
|
15
15
|
stopwatch();
|
|
16
16
|
}
|
|
@@ -177,7 +177,7 @@ var ColorConfigMapSchema = _zod2.default.union([
|
|
|
177
177
|
var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
178
178
|
var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
179
179
|
var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
180
|
-
name: _zod2.default.string().trim().default("
|
|
180
|
+
name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
181
181
|
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
182
182
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
183
183
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
@@ -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 _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,10 +13,10 @@ var _chunk62KAIAWTcjs = require('./chunk-62KAIAWT.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk5F7O7BRGcjs = require('./chunk-5F7O7BRG.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkDEO4HWIAcjs = require('./chunk-DEO4HWIA.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ var _chunkVWP2SU7Acjs = require('./chunk-VWP2SU7A.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkF665CCSScjs = require('./chunk-F665CCSS.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -277,9 +277,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
277
277
|
if (!workspaceRoot) {
|
|
278
278
|
throw new Error("Cannot find Nx workspace root");
|
|
279
279
|
}
|
|
280
|
-
const config = await
|
|
281
|
-
|
|
282
|
-
const stopwatch =
|
|
280
|
+
const config = await _chunk5F7O7BRGcjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
281
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
282
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, "Build options resolution");
|
|
283
283
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
284
284
|
exitOnError: true
|
|
285
285
|
});
|
|
@@ -294,14 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
294
294
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
295
295
|
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.");
|
|
296
296
|
}
|
|
297
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
297
|
+
const options = _defu2.default.call(void 0, userOptions, _chunk5F7O7BRGcjs.DEFAULT_BUILD_OPTIONS);
|
|
298
298
|
options.name ??= `${projectName}-${options.format}`;
|
|
299
|
-
options.target ??=
|
|
299
|
+
options.target ??= _chunk5F7O7BRGcjs.DEFAULT_TARGET;
|
|
300
300
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
301
301
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
302
302
|
throw new Error("Cannot find package.json configuration");
|
|
303
303
|
}
|
|
304
|
-
const env =
|
|
304
|
+
const env = _chunk5F7O7BRGcjs.getEnv.call(void 0, "esbuild", options);
|
|
305
305
|
const result = {
|
|
306
306
|
...options,
|
|
307
307
|
config,
|
|
@@ -321,7 +321,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
321
321
|
...userOptions,
|
|
322
322
|
tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
323
323
|
format: options.format || "cjs",
|
|
324
|
-
entryPoints: await
|
|
324
|
+
entryPoints: await _chunk5F7O7BRGcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
325
325
|
"./src/index.ts"
|
|
326
326
|
], userOptions.emitOnAll),
|
|
327
327
|
outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -332,7 +332,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
332
332
|
projectGraph,
|
|
333
333
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
334
334
|
minify: userOptions.minify || !userOptions.debug,
|
|
335
|
-
verbose: userOptions.verbose ||
|
|
335
|
+
verbose: userOptions.verbose || _chunkF665CCSScjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
336
336
|
includeSrc: userOptions.includeSrc === true,
|
|
337
337
|
metafile: userOptions.metafile !== false,
|
|
338
338
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -345,8 +345,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
345
345
|
watch: userOptions.watch === true,
|
|
346
346
|
footer: userOptions.footer,
|
|
347
347
|
banner: {
|
|
348
|
-
js: options.banner ||
|
|
349
|
-
css: options.banner ||
|
|
348
|
+
js: options.banner || _chunk5F7O7BRGcjs.DEFAULT_COMPILED_BANNER,
|
|
349
|
+
css: options.banner || _chunk5F7O7BRGcjs.DEFAULT_COMPILED_BANNER
|
|
350
350
|
},
|
|
351
351
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
352
352
|
treeShaking: options.format === "esm",
|
|
@@ -372,7 +372,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
372
372
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
373
373
|
].filter(Boolean)
|
|
374
374
|
};
|
|
375
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
375
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunk5F7O7BRGcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
376
376
|
delete result.entry;
|
|
377
377
|
delete result.outputPath;
|
|
378
378
|
stopwatch();
|
|
@@ -380,8 +380,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
380
380
|
}, "resolveOptions");
|
|
381
381
|
async function generatePackageJson(context2) {
|
|
382
382
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
383
|
-
|
|
384
|
-
const stopwatch =
|
|
383
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
384
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, "Write package.json file");
|
|
385
385
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
386
386
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
387
387
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -391,11 +391,11 @@ async function generatePackageJson(context2) {
|
|
|
391
391
|
if (!packageJson) {
|
|
392
392
|
throw new Error("Cannot find package.json configuration file");
|
|
393
393
|
}
|
|
394
|
-
packageJson = await
|
|
395
|
-
packageJson = await
|
|
394
|
+
packageJson = await _chunk5F7O7BRGcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
395
|
+
packageJson = await _chunk5F7O7BRGcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
396
396
|
packageJson.exports ??= {};
|
|
397
397
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
398
|
-
packageJson.exports["."] ??=
|
|
398
|
+
packageJson.exports["."] ??= _chunk5F7O7BRGcjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
399
399
|
let entryPoints = [
|
|
400
400
|
{
|
|
401
401
|
in: "./src/index.ts",
|
|
@@ -413,7 +413,7 @@ async function generatePackageJson(context2) {
|
|
|
413
413
|
const split = entryPoint.out.split(".");
|
|
414
414
|
split.pop();
|
|
415
415
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
416
|
-
packageJson.exports[`./${entry}`] ??=
|
|
416
|
+
packageJson.exports[`./${entry}`] ??= _chunk5F7O7BRGcjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -451,8 +451,8 @@ async function generateContext(getOptions) {
|
|
|
451
451
|
}
|
|
452
452
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
453
453
|
async function executeEsBuild(context2) {
|
|
454
|
-
|
|
455
|
-
const stopwatch =
|
|
454
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
455
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
456
456
|
if (process.env.STORM_WATCH) {
|
|
457
457
|
const ctx = await esbuild.context(context2.options);
|
|
458
458
|
watch(ctx, context2.options);
|
|
@@ -490,9 +490,9 @@ async function executeEsBuild(context2) {
|
|
|
490
490
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
491
491
|
async function copyBuildAssets(context2) {
|
|
492
492
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
493
|
-
|
|
494
|
-
const stopwatch =
|
|
495
|
-
await
|
|
493
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
494
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
495
|
+
await _chunk5F7O7BRGcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
496
496
|
stopwatch();
|
|
497
497
|
}
|
|
498
498
|
return context2;
|
|
@@ -501,9 +501,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
501
501
|
async function reportResults(context2) {
|
|
502
502
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
503
503
|
if (context2.result.warnings.length > 0) {
|
|
504
|
-
|
|
504
|
+
_chunkF665CCSScjs.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);
|
|
505
505
|
}
|
|
506
|
-
|
|
506
|
+
_chunkF665CCSScjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -529,7 +529,7 @@ async function dependencyCheck(options) {
|
|
|
529
529
|
write: false,
|
|
530
530
|
outdir: "out",
|
|
531
531
|
plugins: [
|
|
532
|
-
|
|
532
|
+
_chunkDEO4HWIAcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
533
533
|
]
|
|
534
534
|
});
|
|
535
535
|
await buildPromise.catch(() => {
|
|
@@ -539,17 +539,17 @@ async function dependencyCheck(options) {
|
|
|
539
539
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
540
540
|
async function cleanOutputPath(context2) {
|
|
541
541
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
542
|
-
|
|
543
|
-
const stopwatch =
|
|
544
|
-
await
|
|
542
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
543
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
544
|
+
await _chunkDITM26C7cjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
545
545
|
stopwatch();
|
|
546
546
|
}
|
|
547
547
|
return context2;
|
|
548
548
|
}
|
|
549
549
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
550
550
|
async function build2(options) {
|
|
551
|
-
|
|
552
|
-
const stopwatch =
|
|
551
|
+
_chunkF665CCSScjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
552
|
+
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
553
553
|
try {
|
|
554
554
|
const opts = Array.isArray(options) ? options : [
|
|
555
555
|
options
|
|
@@ -559,9 +559,9 @@ async function build2(options) {
|
|
|
559
559
|
}
|
|
560
560
|
void transduce.async(opts, dependencyCheck);
|
|
561
561
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
562
|
-
|
|
562
|
+
_chunkF665CCSScjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
563
563
|
} catch (error) {
|
|
564
|
-
|
|
564
|
+
_chunkF665CCSScjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
565
565
|
throw error;
|
|
566
566
|
} finally {
|
|
567
567
|
stopwatch();
|
|
@@ -589,9 +589,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
589
589
|
return context2.rebuild();
|
|
590
590
|
});
|
|
591
591
|
if (rebuildResult instanceof Error) {
|
|
592
|
-
|
|
592
|
+
_chunkF665CCSScjs.writeError.call(void 0, rebuildResult.message);
|
|
593
593
|
}
|
|
594
|
-
|
|
594
|
+
_chunkF665CCSScjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
595
595
|
}, 10);
|
|
596
596
|
changeWatcher.on("change", fastRebuild);
|
|
597
597
|
return void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkF665CCSScjs = require('./chunk-F665CCSS.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
|
+
_chunkF665CCSScjs.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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TUAAYWUJ.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
getDefaultBuildPlugins,
|
|
14
14
|
getEntryPoints,
|
|
15
15
|
getEnv
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VZIK4SOK.js";
|
|
17
17
|
import {
|
|
18
18
|
depsCheckPlugin
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NCMOSDGN.js";
|
|
20
20
|
import {
|
|
21
21
|
getStopwatch,
|
|
22
22
|
isVerbose,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
writeSuccess,
|
|
27
27
|
writeTrace,
|
|
28
28
|
writeWarning
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4ATDIKBQ.js";
|
|
30
30
|
import {
|
|
31
31
|
joinPaths
|
|
32
32
|
} from "./chunk-YMTDVMD6.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YWKYHSIN.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-LUJTYV5C.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-4ATDIKBQ.js";
|
|
32
32
|
import {
|
|
33
33
|
correctPaths,
|
|
34
34
|
joinPaths
|
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 _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
|
|
5
|
+
require('./chunk-F665CCSS.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 = _chunkDITM26C7cjs.clean; exports.cleanDirectories = _chunkDITM26C7cjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5F7O7BRGcjs = require('./chunk-5F7O7BRG.cjs');
|
|
5
5
|
require('./chunk-S6M44SSZ.cjs');
|
|
6
6
|
require('./chunk-WRBUO7H6.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-I2FH4C27.cjs');
|
|
8
8
|
require('./chunk-SSEYS7LI.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-3ENEOIKE.cjs');
|
|
10
|
+
require('./chunk-F665CCSS.cjs');
|
|
11
11
|
require('./chunk-XITTOHOG.cjs');
|
|
12
12
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
13
13
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -15,4 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
18
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunk5F7O7BRGcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunk5F7O7BRGcjs.getDefaultBuildPlugins;
|
package/dist/config.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS,
|
|
3
3
|
getDefaultBuildPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VZIK4SOK.js";
|
|
5
5
|
import "./chunk-T5272PC2.js";
|
|
6
6
|
import "./chunk-LYDEMC26.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YWKYHSIN.js";
|
|
8
8
|
import "./chunk-Q3LOGZKI.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LUJTYV5C.js";
|
|
10
|
+
import "./chunk-4ATDIKBQ.js";
|
|
11
11
|
import "./chunk-YMTDVMD6.js";
|
|
12
12
|
import "./chunk-YNQ45EAM.js";
|
|
13
13
|
import "./chunk-GWG4HOQ6.js";
|
package/dist/index.cjs
CHANGED
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkH7G4L4A7cjs = require('./chunk-H7G4L4A7.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5F7O7BRGcjs = require('./chunk-5F7O7BRG.cjs');
|
|
19
19
|
require('./chunk-S6M44SSZ.cjs');
|
|
20
20
|
require('./chunk-WRBUO7H6.cjs');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-I2FH4C27.cjs');
|
|
22
22
|
require('./chunk-SSEYS7LI.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-3ENEOIKE.cjs');
|
|
24
24
|
require('./chunk-SFZRYJZ2.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-DEO4HWIA.cjs');
|
|
26
|
+
require('./chunk-F665CCSS.cjs');
|
|
27
27
|
require('./chunk-XITTOHOG.cjs');
|
|
28
28
|
require('./chunk-CGFDQ5AJ.cjs');
|
|
29
29
|
require('./chunk-EZGTDCYM.cjs');
|
|
@@ -41,4 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
44
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunk5F7O7BRGcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkH7G4L4A7cjs.Filter; exports.Mapper = _chunkH7G4L4A7cjs.Mapper; exports.build = _chunkH7G4L4A7cjs.build; exports.clean = _chunkDITM26C7cjs.clean; exports.cleanDirectories = _chunkDITM26C7cjs.cleanDirectories; exports.cleanOutputPath = _chunkH7G4L4A7cjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunk5F7O7BRGcjs.getDefaultBuildPlugins; exports.handle = _chunkH7G4L4A7cjs.handle; exports.pipe = _chunkH7G4L4A7cjs.pipe; exports.skip = _chunkH7G4L4A7cjs.skip; exports.transduce = _chunkH7G4L4A7cjs.transduce;
|
package/dist/index.js
CHANGED
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
pipe,
|
|
8
8
|
skip,
|
|
9
9
|
transduce
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KFFQSANO.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TUAAYWUJ.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VZIK4SOK.js";
|
|
19
19
|
import "./chunk-T5272PC2.js";
|
|
20
20
|
import "./chunk-LYDEMC26.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YWKYHSIN.js";
|
|
22
22
|
import "./chunk-Q3LOGZKI.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-LUJTYV5C.js";
|
|
24
24
|
import "./chunk-GGNOJ77I.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-NCMOSDGN.js";
|
|
26
|
+
import "./chunk-4ATDIKBQ.js";
|
|
27
27
|
import "./chunk-YMTDVMD6.js";
|
|
28
28
|
import "./chunk-YNQ45EAM.js";
|
|
29
29
|
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 _chunkDEO4HWIAcjs = require('../chunk-DEO4HWIA.cjs');
|
|
4
|
+
require('../chunk-F665CCSS.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.depsCheckPlugin =
|
|
9
|
+
exports.depsCheckPlugin = _chunkDEO4HWIAcjs.depsCheckPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkI2FH4C27cjs = require('../chunk-I2FH4C27.cjs');
|
|
4
|
+
require('../chunk-F665CCSS.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.onErrorPlugin =
|
|
9
|
+
exports.onErrorPlugin = _chunkI2FH4C27cjs.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 _chunk3ENEOIKEcjs = require('../chunk-3ENEOIKE.cjs');
|
|
4
|
+
require('../chunk-F665CCSS.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.tscPlugin =
|
|
9
|
+
exports.tscPlugin = _chunk3ENEOIKEcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED