@storm-software/esbuild 0.31.51 → 0.31.53
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-VA5LCHQG.js → chunk-6AQHAXIU.js} +1 -1
- package/dist/{chunk-5P5D4BFV.js → chunk-ADHPYHOT.js} +1 -1
- package/dist/{chunk-OYFVAL4X.cjs → chunk-ASASYO7N.cjs} +3 -3
- package/dist/{chunk-QAMBH2EX.cjs → chunk-DNS6VZGL.cjs} +2 -2
- package/dist/{chunk-CMVUI2JL.js → chunk-E2ITHLMT.js} +2 -1
- package/dist/{chunk-NECSRTH6.js → chunk-E4SGSVQK.js} +1 -1
- package/dist/{chunk-TPPC2KGE.cjs → chunk-HTG42YEH.cjs} +3 -3
- package/dist/{chunk-UM3465YR.cjs → chunk-KYYHVNV4.cjs} +2 -2
- package/dist/{chunk-G6MLFLYW.js → chunk-L2BA5U5E.js} +3 -3
- package/dist/{chunk-YGTIQ2IA.cjs → chunk-LT3W6G2F.cjs} +30 -30
- package/dist/{chunk-QVWQRHQZ.cjs → chunk-OFHMWQZF.cjs} +2 -1
- package/dist/{chunk-VLJIDKWJ.js → chunk-SLCDPX5I.js} +1 -1
- package/dist/{chunk-P7PJ2PJU.cjs → chunk-TBKEDSCT.cjs} +40 -40
- package/dist/{chunk-DW7UGIVL.js → chunk-UPETSYAV.js} +4 -4
- 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 _chunkTBKEDSCTcjs = require('./chunk-TBKEDSCT.cjs');
|
|
5
|
+
require('./chunk-HTG42YEH.cjs');
|
|
6
|
+
require('./chunk-LT3W6G2F.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-KYYHVNV4.cjs');
|
|
10
10
|
require('./chunk-SSEYS7LI.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-DNS6VZGL.cjs');
|
|
12
|
+
require('./chunk-ASASYO7N.cjs');
|
|
13
|
+
require('./chunk-OFHMWQZF.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 = _chunkTBKEDSCTcjs.build; exports.cleanOutputPath = _chunkTBKEDSCTcjs.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-UPETSYAV.js";
|
|
5
|
+
import "./chunk-6AQHAXIU.js";
|
|
6
|
+
import "./chunk-L2BA5U5E.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-E4SGSVQK.js";
|
|
10
10
|
import "./chunk-Q3LOGZKI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ADHPYHOT.js";
|
|
12
|
+
import "./chunk-SLCDPX5I.js";
|
|
13
|
+
import "./chunk-E2ITHLMT.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 _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.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
|
+
_chunkOFHMWQZFcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkOFHMWQZFcjs.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 _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.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
|
+
_chunkOFHMWQZFcjs.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
|
}
|
|
@@ -105,6 +105,7 @@ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, re
|
|
|
105
105
|
|
|
106
106
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
107
107
|
`;
|
|
108
|
+
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
108
109
|
|
|
109
110
|
// ../config/src/schema.ts
|
|
110
111
|
import z from "zod";
|
|
@@ -217,7 +218,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
217
218
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
218
219
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
219
220
|
var errorConfigSchema = z.object({
|
|
220
|
-
codesFile: z.string().trim().default(
|
|
221
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
221
222
|
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
222
223
|
}).describe("The workspace's error config used during the error process");
|
|
223
224
|
var stormWorkspaceConfigSchema = z.object({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.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
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
13
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
14
14
|
await cleanDirectories(name, directory, config);
|
|
15
15
|
stopwatch();
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.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
|
+
_chunkOFHMWQZFcjs.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);
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-LYDEMC26.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E4SGSVQK.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-ADHPYHOT.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-E2ITHLMT.js";
|
|
32
32
|
import {
|
|
33
33
|
correctPaths,
|
|
34
34
|
joinPaths
|
|
@@ -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 _chunkKYYHVNV4cjs = require('./chunk-KYYHVNV4.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkDNS6VZGLcjs = require('./chunk-DNS6VZGL.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunkQAMBH2EXcjs = require('./chunk-QAMBH2EX.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.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
|
+
_chunkOFHMWQZFcjs.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
|
+
_chunkOFHMWQZFcjs.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
|
+
_chunkOFHMWQZFcjs.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
|
+
_chunkOFHMWQZFcjs.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 : _chunkOFHMWQZFcjs.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";
|
|
@@ -234,7 +234,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
|
|
|
234
234
|
var _c12 = require('c12');
|
|
235
235
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
236
236
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
237
|
-
const workspacePath = filePath ||
|
|
237
|
+
const workspacePath = filePath || _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
238
238
|
const configs = await Promise.all([
|
|
239
239
|
_c12.loadConfig.call(void 0, {
|
|
240
240
|
cwd: workspacePath,
|
|
@@ -263,12 +263,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
263
263
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
264
264
|
}, "getConfigFileByName");
|
|
265
265
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
266
|
-
const workspacePath = filePath ? filePath :
|
|
266
|
+
const workspacePath = filePath ? filePath : _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
267
267
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
268
268
|
let config = result.config;
|
|
269
269
|
const configFile = result.configFile;
|
|
270
270
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
271
|
-
|
|
271
|
+
_chunkOFHMWQZFcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
272
272
|
logLevel: "all"
|
|
273
273
|
});
|
|
274
274
|
}
|
|
@@ -277,7 +277,7 @@ var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
277
277
|
for (const result2 of results) {
|
|
278
278
|
if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
|
|
279
279
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
280
|
-
|
|
280
|
+
_chunkOFHMWQZFcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
281
281
|
logLevel: "all"
|
|
282
282
|
});
|
|
283
283
|
}
|
|
@@ -374,24 +374,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
374
374
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
375
375
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
376
376
|
},
|
|
377
|
-
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`])) ?
|
|
377
|
+
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`])) ? _chunkOFHMWQZFcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
378
378
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
379
379
|
};
|
|
380
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
380
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkOFHMWQZFcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
381
381
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
382
382
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
383
383
|
return ret;
|
|
384
384
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
385
|
-
if (config.docs ===
|
|
386
|
-
if (config.homepage ===
|
|
387
|
-
config.docs = `${
|
|
385
|
+
if (config.docs === _chunkOFHMWQZFcjs.STORM_DEFAULT_DOCS) {
|
|
386
|
+
if (config.homepage === _chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
387
|
+
config.docs = `${_chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
388
388
|
} else {
|
|
389
389
|
config.docs = `${config.homepage}/docs`;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
if (config.licensing ===
|
|
393
|
-
if (config.homepage ===
|
|
394
|
-
config.licensing = `${
|
|
392
|
+
if (config.licensing === _chunkOFHMWQZFcjs.STORM_DEFAULT_LICENSING) {
|
|
393
|
+
if (config.homepage === _chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
394
|
+
config.licensing = `${_chunkOFHMWQZFcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
395
395
|
} else {
|
|
396
396
|
config.licensing = `${config.homepage}/docs`;
|
|
397
397
|
}
|
|
@@ -639,8 +639,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
639
639
|
if (config.logLevel) {
|
|
640
640
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
641
641
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
642
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
643
|
-
process.env.RUST_BACKTRACE =
|
|
642
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkOFHMWQZFcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOFHMWQZFcjs.LogLevel.DEBUG ? true : false);
|
|
643
|
+
process.env.RUST_BACKTRACE = _chunkOFHMWQZFcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOFHMWQZFcjs.LogLevel.DEBUG ? "full" : "none";
|
|
644
644
|
}
|
|
645
645
|
if (config.skipConfigLogging !== void 0) {
|
|
646
646
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -758,17 +758,17 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(v
|
|
|
758
758
|
if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
759
759
|
let _workspaceRoot = workspaceRoot;
|
|
760
760
|
if (!_workspaceRoot) {
|
|
761
|
-
_workspaceRoot =
|
|
761
|
+
_workspaceRoot = _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, );
|
|
762
762
|
}
|
|
763
763
|
const configEnv = getConfigEnv();
|
|
764
|
-
const defaultConfig = await
|
|
764
|
+
const defaultConfig = await _chunkOFHMWQZFcjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
765
765
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
766
766
|
if (!configFile && !skipLogs) {
|
|
767
|
-
|
|
767
|
+
_chunkOFHMWQZFcjs.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", {
|
|
768
768
|
logLevel: "all"
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
|
-
result = await
|
|
771
|
+
result = await _chunkOFHMWQZFcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
772
772
|
result.workspaceRoot ??= _workspaceRoot;
|
|
773
773
|
} else {
|
|
774
774
|
result = _static_cache.data;
|
|
@@ -803,8 +803,8 @@ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(voi
|
|
|
803
803
|
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
804
804
|
setConfigEnv(config);
|
|
805
805
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
806
|
-
|
|
807
|
-
${
|
|
806
|
+
_chunkOFHMWQZFcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
807
|
+
${_chunkOFHMWQZFcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
808
808
|
}
|
|
809
809
|
return config;
|
|
810
810
|
}, "loadStormWorkspaceConfig");
|
|
@@ -845,8 +845,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
845
845
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
846
846
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
847
847
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
_chunkDNS6VZGLcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
849
|
+
_chunkKYYHVNV4cjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
850
850
|
], "getDefaultBuildPlugins");
|
|
851
851
|
var DEFAULT_BUILD_OPTIONS = {
|
|
852
852
|
platform: "node",
|
|
@@ -105,6 +105,7 @@ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, re
|
|
|
105
105
|
|
|
106
106
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
107
107
|
`;
|
|
108
|
+
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
108
109
|
|
|
109
110
|
// ../config/src/schema.ts
|
|
110
111
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
@@ -217,7 +218,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
217
218
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
218
219
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
219
220
|
var errorConfigSchema = _zod2.default.object({
|
|
220
|
-
codesFile: _zod2.default.string().trim().default(
|
|
221
|
+
codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
221
222
|
url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
222
223
|
}).describe("The workspace's error config used during the error process");
|
|
223
224
|
var stormWorkspaceConfigSchema = _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 _chunkHTG42YEHcjs = require('./chunk-HTG42YEH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -11,10 +11,10 @@ var _chunkTPPC2KGEcjs = require('./chunk-TPPC2KGE.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkLT3W6G2Fcjs = require('./chunk-LT3W6G2F.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkASASYO7Ncjs = require('./chunk-ASASYO7N.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ var _chunkOYFVAL4Xcjs = require('./chunk-OYFVAL4X.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkOFHMWQZFcjs = require('./chunk-OFHMWQZF.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -201,7 +201,7 @@ var shebangRenderer = {
|
|
|
201
201
|
// src/utilities/get-entry-points.ts
|
|
202
202
|
var _glob = require('glob');
|
|
203
203
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
204
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
204
|
+
const workspaceRoot = config.workspaceRoot || _chunkOFHMWQZFcjs.findWorkspaceRoot.call(void 0, );
|
|
205
205
|
const entryPoints = [];
|
|
206
206
|
if (entry) {
|
|
207
207
|
if (typeof entry === "string") {
|
|
@@ -248,7 +248,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
248
248
|
paths.push(...files.reduce((ret, filePath) => {
|
|
249
249
|
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), ""));
|
|
250
250
|
if (result) {
|
|
251
|
-
|
|
251
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
252
252
|
if (!paths.some((p) => p.in === result)) {
|
|
253
253
|
paths.push({
|
|
254
254
|
in: result,
|
|
@@ -259,7 +259,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
259
259
|
return ret;
|
|
260
260
|
}, []));
|
|
261
261
|
} else {
|
|
262
|
-
|
|
262
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, `Adding ESBuild entry point
|
|
263
263
|
- Input: ${entryPoint.in}
|
|
264
264
|
- Output: ${entryPoint.out}`, config);
|
|
265
265
|
if (!paths.some((p) => p.out === entryPoint.out)) {
|
|
@@ -358,9 +358,9 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
358
358
|
if (!workspaceRoot) {
|
|
359
359
|
throw new Error("Cannot find Nx workspace root");
|
|
360
360
|
}
|
|
361
|
-
const config = await
|
|
362
|
-
|
|
363
|
-
const stopwatch =
|
|
361
|
+
const config = await _chunkLT3W6G2Fcjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
362
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
363
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
364
364
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
365
365
|
exitOnError: true
|
|
366
366
|
});
|
|
@@ -375,14 +375,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
375
375
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
376
376
|
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.");
|
|
377
377
|
}
|
|
378
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
378
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkLT3W6G2Fcjs.DEFAULT_BUILD_OPTIONS);
|
|
379
379
|
options.name ??= `${projectName}-${options.format}`;
|
|
380
|
-
options.target ??=
|
|
380
|
+
options.target ??= _chunkLT3W6G2Fcjs.DEFAULT_TARGET;
|
|
381
381
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
382
382
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
383
383
|
throw new Error("Cannot find package.json configuration");
|
|
384
384
|
}
|
|
385
|
-
const env =
|
|
385
|
+
const env = _chunkLT3W6G2Fcjs.getEnv.call(void 0, "esbuild", options);
|
|
386
386
|
const result = {
|
|
387
387
|
...options,
|
|
388
388
|
config,
|
|
@@ -407,7 +407,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
407
407
|
projectGraph,
|
|
408
408
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
409
409
|
minify: userOptions.minify || !userOptions.debug,
|
|
410
|
-
verbose: userOptions.verbose ||
|
|
410
|
+
verbose: userOptions.verbose || _chunkOFHMWQZFcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
411
411
|
includeSrc: userOptions.includeSrc === true,
|
|
412
412
|
metafile: userOptions.metafile !== false,
|
|
413
413
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -419,8 +419,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
419
419
|
watch: userOptions.watch === true,
|
|
420
420
|
footer: userOptions.footer,
|
|
421
421
|
banner: {
|
|
422
|
-
js: options.banner ||
|
|
423
|
-
css: options.banner ||
|
|
422
|
+
js: options.banner || _chunkLT3W6G2Fcjs.DEFAULT_COMPILED_BANNER,
|
|
423
|
+
css: options.banner || _chunkLT3W6G2Fcjs.DEFAULT_COMPILED_BANNER
|
|
424
424
|
},
|
|
425
425
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
426
426
|
treeShaking: options.format === "esm",
|
|
@@ -446,7 +446,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
446
446
|
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
447
447
|
].filter(Boolean)
|
|
448
448
|
};
|
|
449
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
449
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkLT3W6G2Fcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
450
450
|
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
451
451
|
result.inject = options.inject.reduce((ret, inj) => {
|
|
452
452
|
if (inj && typeof inj === "string" && ret.includes(inj)) {
|
|
@@ -462,8 +462,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
462
462
|
}, "resolveOptions");
|
|
463
463
|
async function generatePackageJson(context2) {
|
|
464
464
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
465
|
-
|
|
466
|
-
const stopwatch =
|
|
465
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
466
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
467
467
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
468
468
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
469
469
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -473,8 +473,8 @@ async function generatePackageJson(context2) {
|
|
|
473
473
|
if (!packageJson) {
|
|
474
474
|
throw new Error("Cannot find package.json configuration file");
|
|
475
475
|
}
|
|
476
|
-
packageJson = await
|
|
477
|
-
packageJson = await
|
|
476
|
+
packageJson = await _chunkLT3W6G2Fcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
477
|
+
packageJson = await _chunkLT3W6G2Fcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
478
478
|
packageJson.exports ??= {};
|
|
479
479
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
480
480
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
@@ -522,8 +522,8 @@ async function generateContext(getOptions) {
|
|
|
522
522
|
}
|
|
523
523
|
_chunkBGYQAVKQcjs.__name.call(void 0, generateContext, "generateContext");
|
|
524
524
|
async function executeEsBuild(context2) {
|
|
525
|
-
|
|
526
|
-
const stopwatch =
|
|
525
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
526
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
527
527
|
if (process.env.STORM_WATCH) {
|
|
528
528
|
const ctx = await esbuild.context(context2.options);
|
|
529
529
|
watch(ctx, context2.options);
|
|
@@ -556,8 +556,8 @@ async function executeEsBuild(context2) {
|
|
|
556
556
|
delete options.config;
|
|
557
557
|
delete options.injectShims;
|
|
558
558
|
delete options.external;
|
|
559
|
-
|
|
560
|
-
${
|
|
559
|
+
_chunkOFHMWQZFcjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
560
|
+
${_chunkOFHMWQZFcjs.formatLogMessage.call(void 0, {
|
|
561
561
|
...options,
|
|
562
562
|
define: "<Hidden>"
|
|
563
563
|
})}`, context2.options.config);
|
|
@@ -573,9 +573,9 @@ ${_chunkQVWQRHQZcjs.formatLogMessage.call(void 0, {
|
|
|
573
573
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
574
574
|
async function copyBuildAssets(context2) {
|
|
575
575
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
576
|
-
|
|
577
|
-
const stopwatch =
|
|
578
|
-
await
|
|
576
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
577
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
578
|
+
await _chunkLT3W6G2Fcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
579
579
|
stopwatch();
|
|
580
580
|
}
|
|
581
581
|
return context2;
|
|
@@ -584,9 +584,9 @@ _chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
584
584
|
async function reportResults(context2) {
|
|
585
585
|
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
586
586
|
if (context2.result.warnings.length > 0) {
|
|
587
|
-
|
|
587
|
+
_chunkOFHMWQZFcjs.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);
|
|
588
588
|
}
|
|
589
|
-
|
|
589
|
+
_chunkOFHMWQZFcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
_chunkBGYQAVKQcjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -612,7 +612,7 @@ async function dependencyCheck(options) {
|
|
|
612
612
|
write: false,
|
|
613
613
|
outdir: "out",
|
|
614
614
|
plugins: [
|
|
615
|
-
|
|
615
|
+
_chunkASASYO7Ncjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
616
616
|
]
|
|
617
617
|
});
|
|
618
618
|
await buildPromise.catch(() => {
|
|
@@ -622,17 +622,17 @@ async function dependencyCheck(options) {
|
|
|
622
622
|
_chunkBGYQAVKQcjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
623
623
|
async function cleanOutputPath(context2) {
|
|
624
624
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
625
|
-
|
|
626
|
-
const stopwatch =
|
|
627
|
-
await
|
|
625
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
626
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
627
|
+
await _chunkHTG42YEHcjs.cleanDirectories.call(void 0, context2.options.name, context2.options.outdir, context2.options.config);
|
|
628
628
|
stopwatch();
|
|
629
629
|
}
|
|
630
630
|
return context2;
|
|
631
631
|
}
|
|
632
632
|
_chunkBGYQAVKQcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
633
633
|
async function build2(options) {
|
|
634
|
-
|
|
635
|
-
const stopwatch =
|
|
634
|
+
_chunkOFHMWQZFcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
635
|
+
const stopwatch = _chunkOFHMWQZFcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
636
636
|
try {
|
|
637
637
|
const opts = Array.isArray(options) ? options : [
|
|
638
638
|
options
|
|
@@ -642,9 +642,9 @@ async function build2(options) {
|
|
|
642
642
|
}
|
|
643
643
|
void transduce.async(opts, dependencyCheck);
|
|
644
644
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
645
|
-
|
|
645
|
+
_chunkOFHMWQZFcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
646
646
|
} catch (error) {
|
|
647
|
-
|
|
647
|
+
_chunkOFHMWQZFcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
648
648
|
throw error;
|
|
649
649
|
} finally {
|
|
650
650
|
stopwatch();
|
|
@@ -672,9 +672,9 @@ var watch = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (context2, opt
|
|
|
672
672
|
return context2.rebuild();
|
|
673
673
|
});
|
|
674
674
|
if (rebuildResult instanceof Error) {
|
|
675
|
-
|
|
675
|
+
_chunkOFHMWQZFcjs.writeError.call(void 0, rebuildResult.message);
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
_chunkOFHMWQZFcjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
678
678
|
}, 10);
|
|
679
679
|
changeWatcher.on("change", fastRebuild);
|
|
680
680
|
return void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6AQHAXIU.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_BUILD_OPTIONS,
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
getConfig,
|
|
12
12
|
getDefaultBuildPlugins,
|
|
13
13
|
getEnv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L2BA5U5E.js";
|
|
15
15
|
import {
|
|
16
16
|
depsCheckPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SLCDPX5I.js";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot,
|
|
20
20
|
formatLogMessage,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
writeSuccess,
|
|
27
27
|
writeTrace,
|
|
28
28
|
writeWarning
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-E2ITHLMT.js";
|
|
30
30
|
import {
|
|
31
31
|
correctPaths,
|
|
32
32
|
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 _chunkHTG42YEHcjs = require('./chunk-HTG42YEH.cjs');
|
|
5
|
+
require('./chunk-OFHMWQZF.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 = _chunkHTG42YEHcjs.clean; exports.cleanDirectories = _chunkHTG42YEHcjs.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 _chunkLT3W6G2Fcjs = require('./chunk-LT3W6G2F.cjs');
|
|
5
5
|
require('./chunk-S6M44SSZ.cjs');
|
|
6
6
|
require('./chunk-WRBUO7H6.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-KYYHVNV4.cjs');
|
|
8
8
|
require('./chunk-SSEYS7LI.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-DNS6VZGL.cjs');
|
|
10
|
+
require('./chunk-OFHMWQZF.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 = _chunkLT3W6G2Fcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkLT3W6G2Fcjs.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-L2BA5U5E.js";
|
|
5
5
|
import "./chunk-T5272PC2.js";
|
|
6
6
|
import "./chunk-LYDEMC26.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-E4SGSVQK.js";
|
|
8
8
|
import "./chunk-Q3LOGZKI.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ADHPYHOT.js";
|
|
10
|
+
import "./chunk-E2ITHLMT.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 _chunkTBKEDSCTcjs = require('./chunk-TBKEDSCT.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHTG42YEHcjs = require('./chunk-HTG42YEH.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkLT3W6G2Fcjs = require('./chunk-LT3W6G2F.cjs');
|
|
19
19
|
require('./chunk-S6M44SSZ.cjs');
|
|
20
20
|
require('./chunk-WRBUO7H6.cjs');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-KYYHVNV4.cjs');
|
|
22
22
|
require('./chunk-SSEYS7LI.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-DNS6VZGL.cjs');
|
|
24
24
|
require('./chunk-SFZRYJZ2.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-ASASYO7N.cjs');
|
|
26
|
+
require('./chunk-OFHMWQZF.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 = _chunkLT3W6G2Fcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkTBKEDSCTcjs.Filter; exports.Mapper = _chunkTBKEDSCTcjs.Mapper; exports.build = _chunkTBKEDSCTcjs.build; exports.clean = _chunkHTG42YEHcjs.clean; exports.cleanDirectories = _chunkHTG42YEHcjs.cleanDirectories; exports.cleanOutputPath = _chunkTBKEDSCTcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkLT3W6G2Fcjs.getDefaultBuildPlugins; exports.handle = _chunkTBKEDSCTcjs.handle; exports.pipe = _chunkTBKEDSCTcjs.pipe; exports.skip = _chunkTBKEDSCTcjs.skip; exports.transduce = _chunkTBKEDSCTcjs.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-UPETSYAV.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6AQHAXIU.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L2BA5U5E.js";
|
|
19
19
|
import "./chunk-T5272PC2.js";
|
|
20
20
|
import "./chunk-LYDEMC26.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-E4SGSVQK.js";
|
|
22
22
|
import "./chunk-Q3LOGZKI.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ADHPYHOT.js";
|
|
24
24
|
import "./chunk-GGNOJ77I.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-SLCDPX5I.js";
|
|
26
|
+
import "./chunk-E2ITHLMT.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 _chunkASASYO7Ncjs = require('../chunk-ASASYO7N.cjs');
|
|
4
|
+
require('../chunk-OFHMWQZF.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.depsCheckPlugin =
|
|
9
|
+
exports.depsCheckPlugin = _chunkASASYO7Ncjs.depsCheckPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkKYYHVNV4cjs = require('../chunk-KYYHVNV4.cjs');
|
|
4
|
+
require('../chunk-OFHMWQZF.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.onErrorPlugin =
|
|
9
|
+
exports.onErrorPlugin = _chunkKYYHVNV4cjs.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 _chunkDNS6VZGLcjs = require('../chunk-DNS6VZGL.cjs');
|
|
4
|
+
require('../chunk-OFHMWQZF.cjs');
|
|
5
5
|
require('../chunk-XITTOHOG.cjs');
|
|
6
6
|
require('../chunk-BGYQAVKQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.tscPlugin =
|
|
9
|
+
exports.tscPlugin = _chunkDNS6VZGLcjs.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.31.
|
|
3
|
+
"version": "0.31.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
"@microsoft/api-extractor": "^7.48.1",
|
|
173
173
|
"@nx/devkit": "20.6.0",
|
|
174
174
|
"@nx/js": "20.6.0",
|
|
175
|
-
"@storm-software/build-tools": "0.143.
|
|
176
|
-
"@storm-software/config": "1.112.
|
|
177
|
-
"@storm-software/config-tools": "1.162.
|
|
175
|
+
"@storm-software/build-tools": "0.143.41",
|
|
176
|
+
"@storm-software/config": "1.112.23",
|
|
177
|
+
"@storm-software/config-tools": "1.162.15",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"rollup": "^4.29.1",
|
|
180
180
|
"spdx-exceptions": "^2.5.0",
|