@storm-software/esbuild 0.45.2 → 0.45.3
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/assets.cjs +4 -4
- package/dist/assets.js +3 -3
- package/dist/build.cjs +11 -11
- package/dist/build.js +10 -10
- package/dist/{chunk-TXMGS44F.cjs → chunk-2UVDRFO7.cjs} +6 -6
- package/dist/{chunk-ECTRYKRL.js → chunk-3IZVDKCD.js} +1 -1
- package/dist/{chunk-LMFNDVSP.js → chunk-4FDCADS4.js} +2 -2
- package/dist/{chunk-WXTPFPYQ.js → chunk-4X2ID2CD.js} +6 -2
- package/dist/{chunk-R2WT7MNW.js → chunk-6HRIZYNW.js} +2 -2
- package/dist/{chunk-ZKU4LHIG.cjs → chunk-F3RSGQZH.cjs} +33 -29
- package/dist/{chunk-ESE3Q5J4.cjs → chunk-J4JQBPNB.cjs} +22 -22
- package/dist/{chunk-SOPEJUPU.cjs → chunk-KE66Z7IC.cjs} +5 -5
- package/dist/{chunk-THGA5VBT.js → chunk-KLZ2SML6.js} +1 -1
- package/dist/{chunk-Z5Q2GKYR.js → chunk-L2SAFC2E.js} +1 -0
- package/dist/{chunk-BRYAEE3A.cjs → chunk-LU3VPU4P.cjs} +3 -3
- package/dist/{chunk-CS5OVZIS.js → chunk-N6SRJ3MW.js} +3 -3
- package/dist/{chunk-7YZNI6SK.cjs → chunk-NLSJKLSC.cjs} +3 -3
- package/dist/{chunk-A3PTDBM4.js → chunk-NZ3FE3ZT.js} +7 -7
- package/dist/{chunk-XQK2G64D.cjs → chunk-NZ6JCAUU.cjs} +3 -3
- package/dist/{chunk-ZKOU7C3U.js → chunk-P7E4FGWI.js} +1 -1
- package/dist/{chunk-UJ4OTVZW.cjs → chunk-RBQ2BQCC.cjs} +3 -3
- package/dist/{chunk-QIE7UPFI.js → chunk-W4MPEWRT.js} +1 -1
- package/dist/{chunk-2NASLF52.cjs → chunk-YBSO5IT4.cjs} +1 -0
- package/dist/{chunk-3EKFW7Z7.cjs → chunk-ZASUM7XP.cjs} +10 -10
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/config.cjs +4 -4
- package/dist/config.js +3 -3
- package/dist/context.cjs +5 -5
- package/dist/context.js +4 -4
- package/dist/index.cjs +11 -11
- package/dist/index.js +10 -10
- package/dist/package-json.cjs +4 -4
- package/dist/package-json.js +3 -3
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/tsup.cjs +3 -3
- package/dist/tsup.js +2 -2
- package/dist/watch.cjs +3 -3
- package/dist/watch.js +1 -1
- package/package.json +5 -5
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/assets.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkKE66Z7ICcjs = require('./chunk-KE66Z7IC.cjs');
|
|
4
|
+
require('./chunk-F3RSGQZH.cjs');
|
|
5
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
6
6
|
require('./chunk-UF7MZTGE.cjs');
|
|
7
7
|
require('./chunk-VRHF33Y5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkKE66Z7ICcjs.copyBuildAssets;
|
package/dist/assets.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4FDCADS4.js";
|
|
4
|
+
import "./chunk-4X2ID2CD.js";
|
|
5
|
+
import "./chunk-L2SAFC2E.js";
|
|
6
6
|
import "./chunk-AQLVPEJX.js";
|
|
7
7
|
import "./chunk-I52SUD5S.js";
|
|
8
8
|
export {
|
package/dist/build.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
3
|
+
var _chunkJ4JQBPNBcjs = require('./chunk-J4JQBPNB.cjs');
|
|
4
|
+
require('./chunk-LU3VPU4P.cjs');
|
|
5
|
+
require('./chunk-KE66Z7IC.cjs');
|
|
6
|
+
require('./chunk-RBQ2BQCC.cjs');
|
|
7
|
+
require('./chunk-ZASUM7XP.cjs');
|
|
8
|
+
require('./chunk-NZ6JCAUU.cjs');
|
|
9
|
+
require('./chunk-2UVDRFO7.cjs');
|
|
10
|
+
require('./chunk-F3RSGQZH.cjs');
|
|
11
|
+
require('./chunk-NLSJKLSC.cjs');
|
|
12
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
13
13
|
require('./chunk-UF7MZTGE.cjs');
|
|
14
14
|
require('./chunk-VRHF33Y5.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.build =
|
|
17
|
+
exports.build = _chunkJ4JQBPNBcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NZ3FE3ZT.js";
|
|
4
|
+
import "./chunk-KLZ2SML6.js";
|
|
5
|
+
import "./chunk-4FDCADS4.js";
|
|
6
|
+
import "./chunk-3IZVDKCD.js";
|
|
7
|
+
import "./chunk-N6SRJ3MW.js";
|
|
8
|
+
import "./chunk-P7E4FGWI.js";
|
|
9
|
+
import "./chunk-6HRIZYNW.js";
|
|
10
|
+
import "./chunk-4X2ID2CD.js";
|
|
11
|
+
import "./chunk-W4MPEWRT.js";
|
|
12
|
+
import "./chunk-L2SAFC2E.js";
|
|
13
13
|
import "./chunk-AQLVPEJX.js";
|
|
14
14
|
import "./chunk-I52SUD5S.js";
|
|
15
15
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkF3RSGQZHcjs = require('./chunk-F3RSGQZH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
|
|
@@ -20,8 +20,8 @@ var _fs = require('fs');
|
|
|
20
20
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
21
21
|
async function generatePackageJson(context) {
|
|
22
22
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkUF7MZTGEcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
23
|
-
|
|
24
|
-
const stopwatch =
|
|
23
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
24
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
25
25
|
const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
|
|
26
26
|
context.options.projectRoot,
|
|
27
27
|
"project.json"
|
|
@@ -41,13 +41,13 @@ async function generatePackageJson(context) {
|
|
|
41
41
|
if (!packageJson) {
|
|
42
42
|
throw new Error("Cannot find package.json configuration file");
|
|
43
43
|
}
|
|
44
|
-
packageJson = await
|
|
44
|
+
packageJson = await _chunkF3RSGQZHcjs.addPackageDependencies.call(void 0,
|
|
45
45
|
context.workspaceConfig.workspaceRoot,
|
|
46
46
|
context.options.projectRoot,
|
|
47
47
|
context.projectName,
|
|
48
48
|
packageJson
|
|
49
49
|
);
|
|
50
|
-
packageJson = await
|
|
50
|
+
packageJson = await _chunkF3RSGQZHcjs.addWorkspacePackageJsonFields.call(void 0,
|
|
51
51
|
context.workspaceConfig,
|
|
52
52
|
context.options.projectRoot,
|
|
53
53
|
context.sourceRoot,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeDebug,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L2SAFC2E.js";
|
|
18
18
|
import {
|
|
19
19
|
correctPaths,
|
|
20
20
|
joinPaths
|
|
@@ -391,6 +391,7 @@ var getConfigEnv = () => {
|
|
|
391
391
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
392
392
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
393
393
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
394
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
394
395
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
395
396
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
396
397
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
@@ -607,6 +608,9 @@ var setConfigEnv = (config) => {
|
|
|
607
608
|
if (config.docs) {
|
|
608
609
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
609
610
|
}
|
|
611
|
+
if (config.portal) {
|
|
612
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
613
|
+
}
|
|
610
614
|
if (config.licensing) {
|
|
611
615
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
612
616
|
}
|
|
@@ -922,7 +926,7 @@ ${formatLogMessage(config)}`,
|
|
|
922
926
|
var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
923
927
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
924
928
|
};
|
|
925
|
-
var getWorkspaceConfig = (skipLogs =
|
|
929
|
+
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
926
930
|
let workspaceRoot = options.workspaceRoot;
|
|
927
931
|
if (!workspaceRoot) {
|
|
928
932
|
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4X2ID2CD.js";
|
|
5
5
|
import {
|
|
6
6
|
getStopwatch,
|
|
7
7
|
writeDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L2SAFC2E.js";
|
|
9
9
|
import {
|
|
10
10
|
joinPaths
|
|
11
11
|
} from "./chunk-AQLVPEJX.js";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -65,7 +65,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
65
65
|
output: "src/"
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0,
|
|
69
69
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
70
70
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkUF7MZTGEcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
71
71
|
config
|
|
@@ -78,7 +78,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
78
78
|
});
|
|
79
79
|
await assetHandler.processAllAssetsOnce();
|
|
80
80
|
if (includeSrc === true) {
|
|
81
|
-
|
|
81
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0,
|
|
82
82
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkUF7MZTGEcjs.joinPaths.call(void 0,
|
|
83
83
|
outputPath,
|
|
84
84
|
"src"
|
|
@@ -163,7 +163,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
if (localPackages.length > 0) {
|
|
166
|
-
|
|
166
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0,
|
|
167
167
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
168
168
|
);
|
|
169
169
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -211,12 +211,12 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
211
211
|
return ret;
|
|
212
212
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
213
213
|
} else {
|
|
214
|
-
|
|
214
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
215
215
|
}
|
|
216
216
|
return packageJson;
|
|
217
217
|
};
|
|
218
218
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
219
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
219
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkYBSO5IT4cjs.findWorkspaceRoot.call(void 0, );
|
|
220
220
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
221
221
|
_chunkUF7MZTGEcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
222
222
|
"utf8"
|
|
@@ -270,7 +270,7 @@ _chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
|
270
270
|
var _c12 = require('c12');
|
|
271
271
|
|
|
272
272
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
273
|
-
const workspacePath = filePath ||
|
|
273
|
+
const workspacePath = filePath || _chunkYBSO5IT4cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
274
274
|
const configs = await Promise.all([
|
|
275
275
|
_c12.loadConfig.call(void 0, {
|
|
276
276
|
cwd: workspacePath,
|
|
@@ -305,12 +305,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
305
305
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
306
306
|
};
|
|
307
307
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
308
|
-
const workspacePath = filePath ? filePath :
|
|
308
|
+
const workspacePath = filePath ? filePath : _chunkYBSO5IT4cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
309
309
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
310
310
|
let config = result.config;
|
|
311
311
|
const configFile = result.configFile;
|
|
312
312
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
313
|
-
|
|
313
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0,
|
|
314
314
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
315
315
|
{
|
|
316
316
|
logLevel: "all"
|
|
@@ -326,7 +326,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
326
326
|
for (const result2 of results) {
|
|
327
327
|
if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
|
|
328
328
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
329
|
-
|
|
329
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0,
|
|
330
330
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
331
331
|
{
|
|
332
332
|
logLevel: "all"
|
|
@@ -391,6 +391,7 @@ var getConfigEnv = () => {
|
|
|
391
391
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
392
392
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
393
393
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
394
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
394
395
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
395
396
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
396
397
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
@@ -429,13 +430,13 @@ var getConfigEnv = () => {
|
|
|
429
430
|
},
|
|
430
431
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
431
432
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
432
|
-
) ?
|
|
433
|
+
) ? _chunkYBSO5IT4cjs.getLogLevelLabel.call(void 0,
|
|
433
434
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
434
435
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
435
436
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
436
437
|
};
|
|
437
438
|
const themeNames = Object.keys(process.env).filter(
|
|
438
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
439
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkYBSO5IT4cjs.COLOR_KEYS.every(
|
|
439
440
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
440
441
|
)
|
|
441
442
|
);
|
|
@@ -446,16 +447,16 @@ var getConfigEnv = () => {
|
|
|
446
447
|
},
|
|
447
448
|
{}
|
|
448
449
|
) : getThemeColorConfigEnv(prefix);
|
|
449
|
-
if (config.docs ===
|
|
450
|
-
if (config.homepage ===
|
|
451
|
-
config.docs = `${
|
|
450
|
+
if (config.docs === _chunkYBSO5IT4cjs.STORM_DEFAULT_DOCS) {
|
|
451
|
+
if (config.homepage === _chunkYBSO5IT4cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
452
|
+
config.docs = `${_chunkYBSO5IT4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
452
453
|
} else {
|
|
453
454
|
config.docs = `${config.homepage}/docs`;
|
|
454
455
|
}
|
|
455
456
|
}
|
|
456
|
-
if (config.licensing ===
|
|
457
|
-
if (config.homepage ===
|
|
458
|
-
config.licensing = `${
|
|
457
|
+
if (config.licensing === _chunkYBSO5IT4cjs.STORM_DEFAULT_LICENSING) {
|
|
458
|
+
if (config.homepage === _chunkYBSO5IT4cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
459
|
+
config.licensing = `${_chunkYBSO5IT4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
459
460
|
} else {
|
|
460
461
|
config.licensing = `${config.homepage}/docs`;
|
|
461
462
|
}
|
|
@@ -607,6 +608,9 @@ var setConfigEnv = (config) => {
|
|
|
607
608
|
if (config.docs) {
|
|
608
609
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
609
610
|
}
|
|
611
|
+
if (config.portal) {
|
|
612
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
613
|
+
}
|
|
610
614
|
if (config.licensing) {
|
|
611
615
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
612
616
|
}
|
|
@@ -728,9 +732,9 @@ var setConfigEnv = (config) => {
|
|
|
728
732
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
729
733
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
730
734
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
731
|
-
|
|
735
|
+
_chunkYBSO5IT4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkYBSO5IT4cjs.LogLevel.DEBUG ? true : false
|
|
732
736
|
);
|
|
733
|
-
process.env.RUST_BACKTRACE =
|
|
737
|
+
process.env.RUST_BACKTRACE = _chunkYBSO5IT4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkYBSO5IT4cjs.LogLevel.DEBUG ? "full" : "none";
|
|
734
738
|
}
|
|
735
739
|
if (config.skipConfigLogging !== void 0) {
|
|
736
740
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -850,13 +854,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
850
854
|
if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
851
855
|
let _workspaceRoot = workspaceRoot;
|
|
852
856
|
if (!_workspaceRoot) {
|
|
853
|
-
_workspaceRoot =
|
|
857
|
+
_workspaceRoot = _chunkYBSO5IT4cjs.findWorkspaceRoot.call(void 0, );
|
|
854
858
|
}
|
|
855
859
|
const configEnv = getConfigEnv();
|
|
856
860
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
857
861
|
if (!configFile) {
|
|
858
862
|
if (!skipLogs) {
|
|
859
|
-
|
|
863
|
+
_chunkYBSO5IT4cjs.writeWarning.call(void 0,
|
|
860
864
|
"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",
|
|
861
865
|
{ logLevel: "all" }
|
|
862
866
|
);
|
|
@@ -865,9 +869,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
865
869
|
return void 0;
|
|
866
870
|
}
|
|
867
871
|
}
|
|
868
|
-
const defaultConfig = await
|
|
869
|
-
result =
|
|
870
|
-
await
|
|
872
|
+
const defaultConfig = await _chunkYBSO5IT4cjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
873
|
+
result = _chunkYBSO5IT4cjs.applyDefaultConfig.call(void 0,
|
|
874
|
+
await _chunkYBSO5IT4cjs.stormWorkspaceConfigSchema.parseAsync(
|
|
871
875
|
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
872
876
|
)
|
|
873
877
|
);
|
|
@@ -909,9 +913,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
909
913
|
);
|
|
910
914
|
setConfigEnv(config);
|
|
911
915
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
912
|
-
|
|
916
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0,
|
|
913
917
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
914
|
-
${
|
|
918
|
+
${_chunkYBSO5IT4cjs.formatLogMessage.call(void 0, config)}`,
|
|
915
919
|
config
|
|
916
920
|
);
|
|
917
921
|
}
|
|
@@ -922,10 +926,10 @@ ${_chunk2NASLF52cjs.formatLogMessage.call(void 0, config)}`,
|
|
|
922
926
|
var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
923
927
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
924
928
|
};
|
|
925
|
-
var getWorkspaceConfig = (skipLogs =
|
|
929
|
+
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
926
930
|
let workspaceRoot = options.workspaceRoot;
|
|
927
931
|
if (!workspaceRoot) {
|
|
928
|
-
workspaceRoot =
|
|
932
|
+
workspaceRoot = _chunkYBSO5IT4cjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
929
933
|
}
|
|
930
934
|
return getConfig(workspaceRoot, skipLogs);
|
|
931
935
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLU3VPU4Pcjs = require('./chunk-LU3VPU4P.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKE66Z7ICcjs = require('./chunk-KE66Z7IC.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRBQ2BQCCcjs = require('./chunk-RBQ2BQCC.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkZASUM7XPcjs = require('./chunk-ZASUM7XP.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2UVDRFO7cjs = require('./chunk-2UVDRFO7.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkNLSJKLSCcjs = require('./chunk-NLSJKLSC.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ var _chunk7YZNI6SKcjs = require('./chunk-7YZNI6SK.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
@@ -35,17 +35,17 @@ var _globby = require('globby');
|
|
|
35
35
|
async function reportResults(context) {
|
|
36
36
|
if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
|
|
37
37
|
if (context.result.warnings.length > 0) {
|
|
38
|
-
|
|
38
|
+
_chunkYBSO5IT4cjs.writeWarning.call(void 0,
|
|
39
39
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
40
40
|
context.workspaceConfig
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
_chunkYBSO5IT4cjs.writeSuccess.call(void 0,
|
|
44
44
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
45
45
|
context.workspaceConfig
|
|
46
46
|
);
|
|
47
47
|
} else if (_optionalChain([context, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.errors]) && _optionalChain([context, 'access', _6 => _6.result, 'optionalAccess', _7 => _7.errors, 'access', _8 => _8.length]) > 0) {
|
|
48
|
-
|
|
48
|
+
_chunkYBSO5IT4cjs.writeError.call(void 0,
|
|
49
49
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
50
50
|
context.workspaceConfig
|
|
51
51
|
);
|
|
@@ -74,7 +74,7 @@ async function dependencyCheck(options) {
|
|
|
74
74
|
write: false,
|
|
75
75
|
// no need to write for analysis
|
|
76
76
|
outdir: "out",
|
|
77
|
-
plugins: [
|
|
77
|
+
plugins: [_chunkLU3VPU4Pcjs.depsCheckPlugin.call(void 0, options.bundle)]
|
|
78
78
|
});
|
|
79
79
|
await buildPromise.catch(() => {
|
|
80
80
|
});
|
|
@@ -82,36 +82,36 @@ async function dependencyCheck(options) {
|
|
|
82
82
|
}
|
|
83
83
|
async function cleanOutputPath(context) {
|
|
84
84
|
if (context.clean !== false && context.outputPath) {
|
|
85
|
-
|
|
85
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0,
|
|
86
86
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
87
87
|
context.workspaceConfig
|
|
88
88
|
);
|
|
89
|
-
const stopwatch =
|
|
90
|
-
await
|
|
89
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
90
|
+
await _chunkRBQ2BQCCcjs.cleanDirectories.call(void 0, context.outputPath);
|
|
91
91
|
stopwatch();
|
|
92
92
|
}
|
|
93
93
|
return context;
|
|
94
94
|
}
|
|
95
95
|
async function build2(options) {
|
|
96
|
-
|
|
97
|
-
const stopwatch =
|
|
96
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
97
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
98
98
|
try {
|
|
99
99
|
const opts = Array.isArray(options) ? options : [options];
|
|
100
100
|
if (opts.length === 0) {
|
|
101
101
|
throw new Error("No build options were provided");
|
|
102
102
|
}
|
|
103
|
-
const context = await
|
|
103
|
+
const context = await _chunkZASUM7XPcjs.resolveContext.call(void 0, options);
|
|
104
104
|
await cleanOutputPath(context);
|
|
105
105
|
await Promise.all([
|
|
106
106
|
dependencyCheck(context.options),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_chunk2UVDRFO7cjs.generatePackageJson.call(void 0, context),
|
|
108
|
+
_chunkKE66Z7ICcjs.copyBuildAssets.call(void 0, context),
|
|
109
|
+
_chunkNLSJKLSCcjs.executeTsup.call(void 0, context)
|
|
110
110
|
]);
|
|
111
111
|
await reportResults(context);
|
|
112
|
-
|
|
112
|
+
_chunkYBSO5IT4cjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
113
113
|
} catch (error) {
|
|
114
|
-
|
|
114
|
+
_chunkYBSO5IT4cjs.writeFatal.call(void 0,
|
|
115
115
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
116
116
|
);
|
|
117
117
|
throw error;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkF3RSGQZHcjs = require('./chunk-F3RSGQZH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
@@ -13,12 +13,12 @@ var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
|
13
13
|
_chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
async function copyBuildAssets(context) {
|
|
15
15
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
16
|
-
|
|
16
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0,
|
|
17
17
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
18
18
|
context.workspaceConfig
|
|
19
19
|
);
|
|
20
|
-
const stopwatch =
|
|
21
|
-
await
|
|
20
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunkF3RSGQZHcjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|
|
@@ -225,6 +225,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
225
225
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
226
226
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
227
227
|
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
228
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
228
229
|
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
229
230
|
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
230
231
|
support: z.string().trim().url().optional().describe(
|
|
@@ -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 _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -75,10 +75,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
75
75
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
76
76
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
_chunkYBSO5IT4cjs.writeWarning.call(void 0,
|
|
79
79
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
_chunkYBSO5IT4cjs.writeError.call(void 0,
|
|
82
82
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
83
83
|
);
|
|
84
84
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P7E4FGWI.js";
|
|
4
4
|
import {
|
|
5
5
|
getEnv,
|
|
6
6
|
getWorkspaceConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4X2ID2CD.js";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
11
11
|
writeDebug
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L2SAFC2E.js";
|
|
13
13
|
import {
|
|
14
14
|
joinPaths
|
|
15
15
|
} from "./chunk-AQLVPEJX.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard2(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 _nullishCoalesce2(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain2(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; } var _class2;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
|
|
@@ -2668,11 +2668,11 @@ module.exports = exports.default;
|
|
|
2668
2668
|
_chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
2669
2669
|
var import_tsup = _chunkVRHF33Y5cjs.__toESM.call(void 0, require_dist(), 1);
|
|
2670
2670
|
async function executeTsup(context) {
|
|
2671
|
-
|
|
2671
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0,
|
|
2672
2672
|
` \u{1F680} Running ${context.options.name} build`,
|
|
2673
2673
|
context.workspaceConfig
|
|
2674
2674
|
);
|
|
2675
|
-
const stopwatch =
|
|
2675
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
2676
2676
|
await (0, import_tsup.build)({
|
|
2677
2677
|
...context.options,
|
|
2678
2678
|
outDir: context.options.distDir ? _chunkUF7MZTGEcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
depsCheckPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLZ2SML6.js";
|
|
4
4
|
import {
|
|
5
5
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4FDCADS4.js";
|
|
7
7
|
import {
|
|
8
8
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3IZVDKCD.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N6SRJ3MW.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6HRIZYNW.js";
|
|
16
16
|
import {
|
|
17
17
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W4MPEWRT.js";
|
|
19
19
|
import {
|
|
20
20
|
getStopwatch,
|
|
21
21
|
writeDebug,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeFatal,
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-L2SAFC2E.js";
|
|
27
27
|
import {
|
|
28
28
|
init_esm_shims
|
|
29
29
|
} from "./chunk-I52SUD5S.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkF3RSGQZHcjs = require('./chunk-F3RSGQZH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
@@ -44,8 +44,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
44
44
|
".woff2": "file"
|
|
45
45
|
},
|
|
46
46
|
banner: {
|
|
47
|
-
js:
|
|
48
|
-
css:
|
|
47
|
+
js: _chunkF3RSGQZHcjs.DEFAULT_COMPILED_BANNER,
|
|
48
|
+
css: _chunkF3RSGQZHcjs.DEFAULT_COMPILED_BANNER
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
@@ -10,8 +10,8 @@ var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
|
10
10
|
_chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
var _promises = require('fs/promises');
|
|
12
12
|
async function clean(name = "ESBuild", directory, config) {
|
|
13
|
-
|
|
14
|
-
const stopwatch =
|
|
13
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
14
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
15
15
|
await cleanDirectories(directory);
|
|
16
16
|
stopwatch();
|
|
17
17
|
}
|
|
@@ -225,6 +225,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
225
225
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
226
226
|
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
227
227
|
docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
228
|
+
portal: _zod2.default.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
228
229
|
licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
229
230
|
contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
230
231
|
support: _zod2.default.string().trim().url().optional().describe(
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkNZ6JCAUUcjs = require('./chunk-NZ6JCAUU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkF3RSGQZHcjs = require('./chunk-F3RSGQZH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkUF7MZTGEcjs = require('./chunk-UF7MZTGE.cjs');
|
|
@@ -33,11 +33,11 @@ async function resolveContext(userOptions) {
|
|
|
33
33
|
if (!workspaceRoot) {
|
|
34
34
|
throw new Error("Cannot find Nx workspace root");
|
|
35
35
|
}
|
|
36
|
-
const workspaceConfig = await
|
|
36
|
+
const workspaceConfig = await _chunkF3RSGQZHcjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunkYBSO5IT4cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
41
41
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
42
42
|
exitOnError: true
|
|
43
43
|
});
|
|
@@ -58,7 +58,7 @@ async function resolveContext(userOptions) {
|
|
|
58
58
|
"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."
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
61
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkNZ6JCAUUcjs.DEFAULT_BUILD_OPTIONS);
|
|
62
62
|
options.name ??= projectName;
|
|
63
63
|
const packageJsonPath = _chunkUF7MZTGEcjs.joinPaths.call(void 0,
|
|
64
64
|
workspaceRoot.dir,
|
|
@@ -68,7 +68,7 @@ async function resolveContext(userOptions) {
|
|
|
68
68
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
69
69
|
throw new Error("Cannot find package.json configuration");
|
|
70
70
|
}
|
|
71
|
-
const env =
|
|
71
|
+
const env = _chunkF3RSGQZHcjs.getEnv.call(void 0, "esbuild", options);
|
|
72
72
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
73
73
|
const resolvedOptions = {
|
|
74
74
|
...options,
|
|
@@ -107,10 +107,10 @@ async function resolveContext(userOptions) {
|
|
|
107
107
|
};
|
|
108
108
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
109
109
|
if (context.options.verbose) {
|
|
110
|
-
|
|
110
|
+
_chunkYBSO5IT4cjs.writeDebug.call(void 0,
|
|
111
111
|
` \u2699\uFE0F Build options resolved:
|
|
112
112
|
|
|
113
|
-
${
|
|
113
|
+
${_chunkYBSO5IT4cjs.formatLogMessage.call(void 0, context.options)}`,
|
|
114
114
|
workspaceConfig
|
|
115
115
|
);
|
|
116
116
|
}
|
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 _chunkRBQ2BQCCcjs = require('./chunk-RBQ2BQCC.cjs');
|
|
5
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
6
6
|
require('./chunk-UF7MZTGE.cjs');
|
|
7
7
|
require('./chunk-VRHF33Y5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.clean =
|
|
11
|
+
exports.clean = _chunkRBQ2BQCCcjs.clean; exports.cleanDirectories = _chunkRBQ2BQCCcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkNZ6JCAUUcjs = require('./chunk-NZ6JCAUU.cjs');
|
|
4
|
+
require('./chunk-F3RSGQZH.cjs');
|
|
5
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
6
6
|
require('./chunk-UF7MZTGE.cjs');
|
|
7
7
|
require('./chunk-VRHF33Y5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
10
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkNZ6JCAUUcjs.DEFAULT_BUILD_OPTIONS;
|
package/dist/config.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-P7E4FGWI.js";
|
|
4
|
+
import "./chunk-4X2ID2CD.js";
|
|
5
|
+
import "./chunk-L2SAFC2E.js";
|
|
6
6
|
import "./chunk-AQLVPEJX.js";
|
|
7
7
|
import "./chunk-I52SUD5S.js";
|
|
8
8
|
export {
|
package/dist/context.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var _chunkZASUM7XPcjs = require('./chunk-ZASUM7XP.cjs');
|
|
4
|
+
require('./chunk-NZ6JCAUU.cjs');
|
|
5
|
+
require('./chunk-F3RSGQZH.cjs');
|
|
6
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
7
7
|
require('./chunk-UF7MZTGE.cjs');
|
|
8
8
|
require('./chunk-VRHF33Y5.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.resolveContext =
|
|
11
|
+
exports.resolveContext = _chunkZASUM7XPcjs.resolveContext;
|
package/dist/context.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveContext
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-N6SRJ3MW.js";
|
|
4
|
+
import "./chunk-P7E4FGWI.js";
|
|
5
|
+
import "./chunk-4X2ID2CD.js";
|
|
6
|
+
import "./chunk-L2SAFC2E.js";
|
|
7
7
|
import "./chunk-AQLVPEJX.js";
|
|
8
8
|
import "./chunk-I52SUD5S.js";
|
|
9
9
|
export {
|
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-5OLNQTRT.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
4
|
+
var _chunkJ4JQBPNBcjs = require('./chunk-J4JQBPNB.cjs');
|
|
5
|
+
require('./chunk-LU3VPU4P.cjs');
|
|
6
|
+
require('./chunk-KE66Z7IC.cjs');
|
|
7
|
+
require('./chunk-RBQ2BQCC.cjs');
|
|
8
|
+
require('./chunk-ZASUM7XP.cjs');
|
|
9
|
+
require('./chunk-NZ6JCAUU.cjs');
|
|
10
|
+
require('./chunk-2UVDRFO7.cjs');
|
|
11
|
+
require('./chunk-F3RSGQZH.cjs');
|
|
12
|
+
require('./chunk-NLSJKLSC.cjs');
|
|
13
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
14
14
|
require('./chunk-UF7MZTGE.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -20,4 +20,4 @@ var _chunkVRHF33Y5cjs = require('./chunk-VRHF33Y5.cjs');
|
|
|
20
20
|
_chunkVRHF33Y5cjs.init_cjs_shims.call(void 0, );
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.build =
|
|
23
|
+
exports.build = _chunkJ4JQBPNBcjs.build;
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./chunk-F4PL6OZA.js";
|
|
2
2
|
import {
|
|
3
3
|
build
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-NZ3FE3ZT.js";
|
|
5
|
+
import "./chunk-KLZ2SML6.js";
|
|
6
|
+
import "./chunk-4FDCADS4.js";
|
|
7
|
+
import "./chunk-3IZVDKCD.js";
|
|
8
|
+
import "./chunk-N6SRJ3MW.js";
|
|
9
|
+
import "./chunk-P7E4FGWI.js";
|
|
10
|
+
import "./chunk-6HRIZYNW.js";
|
|
11
|
+
import "./chunk-4X2ID2CD.js";
|
|
12
|
+
import "./chunk-W4MPEWRT.js";
|
|
13
|
+
import "./chunk-L2SAFC2E.js";
|
|
14
14
|
import "./chunk-AQLVPEJX.js";
|
|
15
15
|
import {
|
|
16
16
|
init_esm_shims
|
package/dist/package-json.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunk2UVDRFO7cjs = require('./chunk-2UVDRFO7.cjs');
|
|
4
|
+
require('./chunk-F3RSGQZH.cjs');
|
|
5
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
6
6
|
require('./chunk-UF7MZTGE.cjs');
|
|
7
7
|
require('./chunk-VRHF33Y5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.generatePackageJson =
|
|
10
|
+
exports.generatePackageJson = _chunk2UVDRFO7cjs.generatePackageJson;
|
package/dist/package-json.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generatePackageJson
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6HRIZYNW.js";
|
|
4
|
+
import "./chunk-4X2ID2CD.js";
|
|
5
|
+
import "./chunk-L2SAFC2E.js";
|
|
6
6
|
import "./chunk-AQLVPEJX.js";
|
|
7
7
|
import "./chunk-I52SUD5S.js";
|
|
8
8
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkLU3VPU4Pcjs = require('../chunk-LU3VPU4P.cjs');
|
|
4
|
+
require('../chunk-YBSO5IT4.cjs');
|
|
5
5
|
require('../chunk-UF7MZTGE.cjs');
|
|
6
6
|
require('../chunk-VRHF33Y5.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.depsCheckPlugin =
|
|
9
|
+
exports.depsCheckPlugin = _chunkLU3VPU4Pcjs.depsCheckPlugin;
|
package/dist/tsup.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 _chunkNLSJKLSCcjs = require('./chunk-NLSJKLSC.cjs');
|
|
4
|
+
require('./chunk-YBSO5IT4.cjs');
|
|
5
5
|
require('./chunk-UF7MZTGE.cjs');
|
|
6
6
|
require('./chunk-VRHF33Y5.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.executeTsup =
|
|
9
|
+
exports.executeTsup = _chunkNLSJKLSCcjs.executeTsup;
|
package/dist/tsup.js
CHANGED
package/dist/watch.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYBSO5IT4cjs = require('./chunk-YBSO5IT4.cjs');
|
|
5
5
|
require('./chunk-UF7MZTGE.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -93,9 +93,9 @@ var watch = (context, options) => {
|
|
|
93
93
|
return context.rebuild();
|
|
94
94
|
});
|
|
95
95
|
if (rebuildResult instanceof Error) {
|
|
96
|
-
|
|
96
|
+
_chunkYBSO5IT4cjs.writeError.call(void 0, rebuildResult.message);
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
_chunkYBSO5IT4cjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
99
99
|
}, 10);
|
|
100
100
|
changeWatcher.on("change", fastRebuild);
|
|
101
101
|
return void 0;
|
package/dist/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -186,13 +186,13 @@
|
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"@nx/devkit": "21.0.3",
|
|
188
188
|
"@nx/js": "21.0.3",
|
|
189
|
-
"@storm-software/build-tools": "^0.151.
|
|
190
|
-
"@storm-software/config": "^1.
|
|
191
|
-
"@storm-software/config-tools": "^1.
|
|
189
|
+
"@storm-software/build-tools": "^0.151.2",
|
|
190
|
+
"@storm-software/config": "^1.122.1",
|
|
191
|
+
"@storm-software/config-tools": "^1.173.1",
|
|
192
192
|
"chokidar": "^4.0.3",
|
|
193
193
|
"commander": "^12.1.0",
|
|
194
194
|
"defu": "6.1.4",
|
|
195
|
-
"es-toolkit": "^1.39.
|
|
195
|
+
"es-toolkit": "^1.39.3",
|
|
196
196
|
"esbuild": "^0.25.0",
|
|
197
197
|
"globby": "^14.1.0",
|
|
198
198
|
"tsup": "8.4.0"
|