@storm-software/unbuild 0.57.39 → 0.57.40
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/bin/unbuild.cjs +4 -2
- package/bin/unbuild.js +4 -2
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-U74OQPTW.js → chunk-523CXGWV.js} +1 -1
- package/dist/{chunk-BEL5HZJG.cjs → chunk-6BXC3EZA.cjs} +3 -3
- package/dist/{chunk-Y2XLLAER.js → chunk-6SGMK7G4.js} +4 -2
- package/dist/{chunk-PUFXACIH.js → chunk-DXGDWEDW.js} +1 -1
- package/dist/{chunk-HNKP6USD.cjs → chunk-FKK2EVVO.cjs} +44 -44
- package/dist/{chunk-7CHMY52X.js → chunk-I7OJGPPK.js} +5 -5
- package/dist/{chunk-3FUG7RYT.cjs → chunk-I7PNN4LO.cjs} +2 -2
- package/dist/{chunk-ENWWZOSB.js → chunk-JDHN6ZBW.js} +1 -1
- package/dist/{chunk-7LAOQO6Y.js → chunk-KITP4SLO.js} +1 -1
- package/dist/{chunk-ESDFQGO2.cjs → chunk-ODCZF6YR.cjs} +4 -2
- package/dist/{chunk-OY2VQIUR.cjs → chunk-OELYTKJQ.cjs} +2 -2
- package/dist/{chunk-3XWWH3LB.cjs → chunk-WNIVGBV6.cjs} +3 -3
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/dist/plugins/analyze.cjs +3 -3
- package/dist/plugins/analyze.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 +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/bin/unbuild.cjs
CHANGED
|
@@ -605,7 +605,7 @@ var import_c12 = require("c12");
|
|
|
605
605
|
var import_defu = __toESM(require("defu"), 1);
|
|
606
606
|
|
|
607
607
|
// ../config-tools/src/logger/console.ts
|
|
608
|
-
var
|
|
608
|
+
var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
|
|
609
609
|
|
|
610
610
|
// ../config-tools/src/types.ts
|
|
611
611
|
var LogLevel = {
|
|
@@ -875,7 +875,9 @@ var getStopwatch = (name) => {
|
|
|
875
875
|
return () => {
|
|
876
876
|
console.info(
|
|
877
877
|
`
|
|
878
|
-
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${(0,
|
|
878
|
+
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${(0, import_formatDistanceToNow.formatDistanceToNow)(start, {
|
|
879
|
+
includeSeconds: true
|
|
880
|
+
})} to complete
|
|
879
881
|
`
|
|
880
882
|
);
|
|
881
883
|
};
|
package/bin/unbuild.js
CHANGED
|
@@ -583,7 +583,7 @@ import { loadConfig } from "c12";
|
|
|
583
583
|
import defu from "defu";
|
|
584
584
|
|
|
585
585
|
// ../config-tools/src/logger/console.ts
|
|
586
|
-
import {
|
|
586
|
+
import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
|
|
587
587
|
|
|
588
588
|
// ../config-tools/src/types.ts
|
|
589
589
|
var LogLevel = {
|
|
@@ -853,7 +853,9 @@ var getStopwatch = (name) => {
|
|
|
853
853
|
return () => {
|
|
854
854
|
console.info(
|
|
855
855
|
`
|
|
856
|
-
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${
|
|
856
|
+
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
|
|
857
|
+
includeSeconds: true
|
|
858
|
+
})} to complete
|
|
857
859
|
`
|
|
858
860
|
);
|
|
859
861
|
};
|
package/dist/build.cjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
8
|
+
var _chunkFKK2EVVOcjs = require('./chunk-FKK2EVVO.cjs');
|
|
9
|
+
require('./chunk-6BXC3EZA.cjs');
|
|
10
|
+
require('./chunk-I7PNN4LO.cjs');
|
|
11
|
+
require('./chunk-WNIVGBV6.cjs');
|
|
12
|
+
require('./chunk-OELYTKJQ.cjs');
|
|
13
|
+
require('./chunk-ODCZF6YR.cjs');
|
|
14
14
|
require('./chunk-OBGZSXTJ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunkFKK2EVVOcjs.build; exports.cleanOutputPath = _chunkFKK2EVVOcjs.cleanOutputPath; exports.copyBuildAssets = _chunkFKK2EVVOcjs.copyBuildAssets; exports.executeUnbuild = _chunkFKK2EVVOcjs.executeUnbuild; exports.generatePackageJson = _chunkFKK2EVVOcjs.generatePackageJson; exports.resolveOptions = _chunkFKK2EVVOcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-I7OJGPPK.js";
|
|
9
|
+
import "./chunk-DXGDWEDW.js";
|
|
10
|
+
import "./chunk-JDHN6ZBW.js";
|
|
11
|
+
import "./chunk-523CXGWV.js";
|
|
12
|
+
import "./chunk-KITP4SLO.js";
|
|
13
|
+
import "./chunk-6SGMK7G4.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkODCZF6YRcjs = require('./chunk-ODCZF6YR.cjs');
|
|
5
5
|
|
|
6
6
|
// src/clean.ts
|
|
7
7
|
var _promises = require('fs/promises');
|
|
8
8
|
async function clean(name = "Unbuild", directory, config) {
|
|
9
|
-
|
|
10
|
-
const stopwatch =
|
|
9
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -78,7 +78,7 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// ../config-tools/src/logger/console.ts
|
|
81
|
-
import {
|
|
81
|
+
import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
|
|
82
82
|
|
|
83
83
|
// ../config-tools/src/utilities/colors.ts
|
|
84
84
|
var DEFAULT_COLOR_CONFIG = {
|
|
@@ -269,7 +269,9 @@ var getStopwatch = (name) => {
|
|
|
269
269
|
return () => {
|
|
270
270
|
console.info(
|
|
271
271
|
`
|
|
272
|
-
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${
|
|
272
|
+
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
|
|
273
|
+
includeSeconds: true
|
|
274
|
+
})} to complete
|
|
273
275
|
`
|
|
274
276
|
);
|
|
275
277
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunk6BXC3EZAcjs = require('./chunk-6BXC3EZA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI7PNN4LOcjs = require('./chunk-I7PNN4LO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkWNIVGBV6cjs = require('./chunk-WNIVGBV6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkOELYTKJQcjs = require('./chunk-OELYTKJQ.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -24,7 +24,7 @@ var _chunkOY2VQIURcjs = require('./chunk-OY2VQIUR.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkODCZF6YRcjs = require('./chunk-ODCZF6YR.cjs');
|
|
28
28
|
|
|
29
29
|
// src/build.ts
|
|
30
30
|
|
|
@@ -205,7 +205,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
205
205
|
output: "src/"
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0,
|
|
209
209
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
210
210
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
211
211
|
config
|
|
@@ -217,9 +217,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
217
217
|
assets: pendingAssets
|
|
218
218
|
});
|
|
219
219
|
await assetHandler.processAllAssetsOnce();
|
|
220
|
-
|
|
220
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
221
221
|
if (includeSrc === true) {
|
|
222
|
-
|
|
222
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0,
|
|
223
223
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
224
224
|
outputPath,
|
|
225
225
|
"src"
|
|
@@ -400,7 +400,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
if (localPackages.length > 0) {
|
|
403
|
-
|
|
403
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0,
|
|
404
404
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
405
405
|
);
|
|
406
406
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -448,7 +448,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
448
448
|
return ret;
|
|
449
449
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
450
450
|
} else {
|
|
451
|
-
|
|
451
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
452
452
|
}
|
|
453
453
|
return packageJson;
|
|
454
454
|
};
|
|
@@ -1219,7 +1219,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1219
1219
|
let config = result.config;
|
|
1220
1220
|
const configFile = result.configFile;
|
|
1221
1221
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1222
|
-
|
|
1222
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0,
|
|
1223
1223
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1224
1224
|
{
|
|
1225
1225
|
logLevel: "all"
|
|
@@ -1235,7 +1235,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1235
1235
|
for (const result2 of results) {
|
|
1236
1236
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1237
1237
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1238
|
-
|
|
1238
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0,
|
|
1239
1239
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1240
1240
|
{
|
|
1241
1241
|
logLevel: "all"
|
|
@@ -1351,7 +1351,7 @@ var getConfigEnv = () => {
|
|
|
1351
1351
|
},
|
|
1352
1352
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1353
1353
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1354
|
-
) ?
|
|
1354
|
+
) ? _chunkODCZF6YRcjs.getLogLevelLabel.call(void 0,
|
|
1355
1355
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1356
1356
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1357
1357
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1714,9 +1714,9 @@ var setConfigEnv = (config) => {
|
|
|
1714
1714
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1715
1715
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1716
1716
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1717
|
-
|
|
1717
|
+
_chunkODCZF6YRcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkODCZF6YRcjs.LogLevel.DEBUG ? true : false
|
|
1718
1718
|
);
|
|
1719
|
-
process.env.RUST_BACKTRACE =
|
|
1719
|
+
process.env.RUST_BACKTRACE = _chunkODCZF6YRcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkODCZF6YRcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1720
1720
|
}
|
|
1721
1721
|
if (config.skipConfigLogging !== void 0) {
|
|
1722
1722
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1852,7 +1852,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1852
1852
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1853
1853
|
if (!configFile) {
|
|
1854
1854
|
if (!skipLogs) {
|
|
1855
|
-
|
|
1855
|
+
_chunkODCZF6YRcjs.writeWarning.call(void 0,
|
|
1856
1856
|
"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",
|
|
1857
1857
|
{ logLevel: "all" }
|
|
1858
1858
|
);
|
|
@@ -1879,7 +1879,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1879
1879
|
throw new Error(
|
|
1880
1880
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1881
1881
|
|
|
1882
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1882
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkODCZF6YRcjs.formatLogMessage.call(void 0,
|
|
1883
1883
|
configInput
|
|
1884
1884
|
)}`,
|
|
1885
1885
|
{
|
|
@@ -1924,9 +1924,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1924
1924
|
);
|
|
1925
1925
|
setConfigEnv(config);
|
|
1926
1926
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1927
|
-
|
|
1927
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0,
|
|
1928
1928
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1929
|
-
${
|
|
1929
|
+
${_chunkODCZF6YRcjs.formatLogMessage.call(void 0, config)}`,
|
|
1930
1930
|
config
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
@@ -1962,10 +1962,10 @@ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
|
1962
1962
|
|
|
1963
1963
|
var _unbuild = require('unbuild');
|
|
1964
1964
|
async function resolveOptions(options, config) {
|
|
1965
|
-
|
|
1966
|
-
const stopwatch =
|
|
1965
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1966
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1967
1967
|
if (options.configPath) {
|
|
1968
|
-
const configFile = await
|
|
1968
|
+
const configFile = await _chunkOELYTKJQcjs.loadConfig.call(void 0, options.configPath);
|
|
1969
1969
|
if (configFile) {
|
|
1970
1970
|
options = _defu2.default.call(void 0, options, configFile);
|
|
1971
1971
|
}
|
|
@@ -2146,7 +2146,7 @@ async function resolveOptions(options, config) {
|
|
|
2146
2146
|
treeShaking: options.treeShaking !== false,
|
|
2147
2147
|
platform: options.platform || "neutral",
|
|
2148
2148
|
color: true,
|
|
2149
|
-
logLevel: config.logLevel ===
|
|
2149
|
+
logLevel: config.logLevel === _chunkODCZF6YRcjs.LogLevelLabel.FATAL ? _chunkODCZF6YRcjs.LogLevelLabel.ERROR : _chunkODCZF6YRcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
};
|
|
@@ -2167,7 +2167,7 @@ async function resolveOptions(options, config) {
|
|
|
2167
2167
|
if (options.rollup) {
|
|
2168
2168
|
let rollup = {};
|
|
2169
2169
|
if (typeof options.rollup === "string") {
|
|
2170
|
-
const rollupFile = await
|
|
2170
|
+
const rollupFile = await _chunkOELYTKJQcjs.loadConfig.call(void 0, options.rollup);
|
|
2171
2171
|
if (rollupFile) {
|
|
2172
2172
|
rollup = rollupFile;
|
|
2173
2173
|
}
|
|
@@ -2179,20 +2179,20 @@ async function resolveOptions(options, config) {
|
|
|
2179
2179
|
resolvedOptions.hooks = {
|
|
2180
2180
|
"rollup:options": async (ctx, opts) => {
|
|
2181
2181
|
if (options.plugins && options.plugins.length > 0) {
|
|
2182
|
-
|
|
2182
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0,
|
|
2183
2183
|
` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`,
|
|
2184
2184
|
config
|
|
2185
2185
|
);
|
|
2186
2186
|
opts.plugins = options.plugins;
|
|
2187
2187
|
} else {
|
|
2188
|
-
|
|
2188
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0,
|
|
2189
2189
|
` \u{1F9E9} No plugins found in provided build options, using default plugins`,
|
|
2190
2190
|
config
|
|
2191
2191
|
);
|
|
2192
2192
|
opts.plugins = await Promise.all([
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2193
|
+
_chunkI7PNN4LOcjs.analyzePlugin.call(void 0, resolvedOptions),
|
|
2194
|
+
_chunkOELYTKJQcjs.tscPlugin.call(void 0, resolvedOptions),
|
|
2195
|
+
_chunkWNIVGBV6cjs.onErrorPlugin.call(void 0, resolvedOptions)
|
|
2196
2196
|
]);
|
|
2197
2197
|
}
|
|
2198
2198
|
},
|
|
@@ -2247,8 +2247,8 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
|
|
|
2247
2247
|
};
|
|
2248
2248
|
async function generatePackageJson(options) {
|
|
2249
2249
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2250
|
-
|
|
2251
|
-
const stopwatch =
|
|
2250
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
2251
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2252
2252
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2253
2253
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2254
2254
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2346,11 +2346,11 @@ async function generatePackageJson(options) {
|
|
|
2346
2346
|
return options;
|
|
2347
2347
|
}
|
|
2348
2348
|
async function executeUnbuild(options) {
|
|
2349
|
-
|
|
2349
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0,
|
|
2350
2350
|
` \u{1F680} Running ${options.name} (${options.projectRoot}) build`,
|
|
2351
2351
|
options.config
|
|
2352
2352
|
);
|
|
2353
|
-
const stopwatch =
|
|
2353
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0,
|
|
2354
2354
|
`${options.name} (${options.projectRoot}) build`
|
|
2355
2355
|
);
|
|
2356
2356
|
try {
|
|
@@ -2359,9 +2359,9 @@ async function executeUnbuild(options) {
|
|
|
2359
2359
|
config: null,
|
|
2360
2360
|
rootDir: joinPaths(options.config.workspaceRoot, options.projectRoot)
|
|
2361
2361
|
};
|
|
2362
|
-
|
|
2362
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0,
|
|
2363
2363
|
`Running with unbuild configuration:
|
|
2364
|
-
${
|
|
2364
|
+
${_chunkODCZF6YRcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
|
|
2365
2365
|
`,
|
|
2366
2366
|
options.config
|
|
2367
2367
|
);
|
|
@@ -2372,11 +2372,11 @@ ${_chunkESDFQGO2cjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" }
|
|
|
2372
2372
|
return options;
|
|
2373
2373
|
}
|
|
2374
2374
|
async function copyBuildAssets(options) {
|
|
2375
|
-
|
|
2375
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0,
|
|
2376
2376
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2377
2377
|
options.config
|
|
2378
2378
|
);
|
|
2379
|
-
const stopwatch =
|
|
2379
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2380
2380
|
await copyAssets(
|
|
2381
2381
|
options.config,
|
|
2382
2382
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2391,12 +2391,12 @@ async function copyBuildAssets(options) {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
async function cleanOutputPath(options) {
|
|
2393
2393
|
if (options.clean !== false && options.outDir) {
|
|
2394
|
-
|
|
2394
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0,
|
|
2395
2395
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`,
|
|
2396
2396
|
options.config
|
|
2397
2397
|
);
|
|
2398
|
-
const stopwatch =
|
|
2399
|
-
await
|
|
2398
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2399
|
+
await _chunk6BXC3EZAcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
|
|
2400
2400
|
stopwatch();
|
|
2401
2401
|
}
|
|
2402
2402
|
return options;
|
|
@@ -2411,8 +2411,8 @@ async function build(options) {
|
|
|
2411
2411
|
throw new Error("Cannot find workspace root");
|
|
2412
2412
|
}
|
|
2413
2413
|
const config = await getConfig(workspaceRoot.dir);
|
|
2414
|
-
|
|
2415
|
-
const stopwatch =
|
|
2414
|
+
_chunkODCZF6YRcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
|
|
2415
|
+
const stopwatch = _chunkODCZF6YRcjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
2416
2416
|
try {
|
|
2417
2417
|
options.projectRoot = correctPaths(projectRoot);
|
|
2418
2418
|
const resolvedOptions = await resolveOptions(options, config);
|
|
@@ -2424,12 +2424,12 @@ async function build(options) {
|
|
|
2424
2424
|
if (options.buildOnly !== true) {
|
|
2425
2425
|
await copyBuildAssets(resolvedOptions);
|
|
2426
2426
|
}
|
|
2427
|
-
|
|
2427
|
+
_chunkODCZF6YRcjs.writeSuccess.call(void 0,
|
|
2428
2428
|
` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`,
|
|
2429
2429
|
config
|
|
2430
2430
|
);
|
|
2431
2431
|
} catch (error) {
|
|
2432
|
-
|
|
2432
|
+
_chunkODCZF6YRcjs.writeFatal.call(void 0,
|
|
2433
2433
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated.",
|
|
2434
2434
|
config
|
|
2435
2435
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DXGDWEDW.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JDHN6ZBW.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-523CXGWV.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KITP4SLO.js";
|
|
14
14
|
import {
|
|
15
15
|
LogLevel,
|
|
16
16
|
LogLevelLabel,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeTrace,
|
|
26
26
|
writeWarning
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6SGMK7G4.js";
|
|
28
28
|
|
|
29
29
|
// src/build.ts
|
|
30
30
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkODCZF6YRcjs = require('./chunk-ODCZF6YR.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -17,7 +17,7 @@ var analyzePlugin = (options) => {
|
|
|
17
17
|
renderChunk(source, chunk) {
|
|
18
18
|
const sourceBytes = formatBytes(source.length);
|
|
19
19
|
const fileName = chunk.fileName;
|
|
20
|
-
|
|
20
|
+
_chunkODCZF6YRcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -78,7 +78,7 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// ../config-tools/src/logger/console.ts
|
|
81
|
-
var
|
|
81
|
+
var _formatDistanceToNow = require('date-fns/formatDistanceToNow');
|
|
82
82
|
|
|
83
83
|
// ../config-tools/src/utilities/colors.ts
|
|
84
84
|
var DEFAULT_COLOR_CONFIG = {
|
|
@@ -269,7 +269,9 @@ var getStopwatch = (name) => {
|
|
|
269
269
|
return () => {
|
|
270
270
|
console.info(
|
|
271
271
|
`
|
|
272
|
-
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${
|
|
272
|
+
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0, start, {
|
|
273
|
+
includeSeconds: true
|
|
274
|
+
})} to complete
|
|
273
275
|
`
|
|
274
276
|
);
|
|
275
277
|
};
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkODCZF6YRcjs = require('./chunk-ODCZF6YR.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/tsc.ts
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
45
45
|
declaration: true,
|
|
46
46
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
_chunkODCZF6YRcjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
49
|
return compilerOptions;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkODCZF6YRcjs = require('./chunk-ODCZF6YR.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/on-error.ts
|
|
6
6
|
var onErrorPlugin = (options) => ({
|
|
7
7
|
name: "storm:on-error",
|
|
8
8
|
buildEnd(error) {
|
|
9
9
|
if (error) {
|
|
10
|
-
|
|
10
|
+
_chunkODCZF6YRcjs.writeError.call(void 0,
|
|
11
11
|
`The following errors occurred during the build:
|
|
12
12
|
${error ? error.message : "Unknown build error"}
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
renderError(error) {
|
|
21
|
-
|
|
21
|
+
_chunkODCZF6YRcjs.writeError.call(void 0,
|
|
22
22
|
`The following errors occurred during the build:
|
|
23
23
|
${error ? error.message : "Unknown build error"}
|
|
24
24
|
|
package/dist/clean.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk6BXC3EZAcjs = require('./chunk-6BXC3EZA.cjs');
|
|
5
|
+
require('./chunk-ODCZF6YR.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunk6BXC3EZAcjs.clean; exports.cleanDirectories = _chunk6BXC3EZAcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFKK2EVVOcjs = require('./chunk-FKK2EVVO.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6BXC3EZAcjs = require('./chunk-6BXC3EZA.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-I7PNN4LO.cjs');
|
|
15
|
+
require('./chunk-WNIVGBV6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkOELYTKJQcjs = require('./chunk-OELYTKJQ.cjs');
|
|
20
|
+
require('./chunk-ODCZF6YR.cjs');
|
|
21
21
|
require('./chunk-OBGZSXTJ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.build =
|
|
33
|
+
exports.build = _chunkFKK2EVVOcjs.build; exports.clean = _chunk6BXC3EZAcjs.clean; exports.cleanDirectories = _chunk6BXC3EZAcjs.cleanDirectories; exports.cleanOutputPath = _chunkFKK2EVVOcjs.cleanOutputPath; exports.copyBuildAssets = _chunkFKK2EVVOcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkOELYTKJQcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkFKK2EVVOcjs.executeUnbuild; exports.generatePackageJson = _chunkFKK2EVVOcjs.generatePackageJson; exports.loadConfig = _chunkOELYTKJQcjs.loadConfig; exports.resolveOptions = _chunkFKK2EVVOcjs.resolveOptions;
|
package/dist/index.js
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I7OJGPPK.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DXGDWEDW.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-JDHN6ZBW.js";
|
|
15
|
+
import "./chunk-523CXGWV.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-KITP4SLO.js";
|
|
20
|
+
import "./chunk-6SGMK7G4.js";
|
|
21
21
|
import "./chunk-3RG5ZIWI.js";
|
|
22
22
|
export {
|
|
23
23
|
build,
|
package/dist/plugins/analyze.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkI7PNN4LOcjs = require('../chunk-I7PNN4LO.cjs');
|
|
4
|
+
require('../chunk-ODCZF6YR.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunkI7PNN4LOcjs.analyzePlugin;
|
package/dist/plugins/analyze.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkWNIVGBV6cjs = require('../chunk-WNIVGBV6.cjs');
|
|
4
|
+
require('../chunk-ODCZF6YR.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunkWNIVGBV6cjs.onErrorPlugin;
|
package/dist/plugins/on-error.js
CHANGED
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkOELYTKJQcjs = require('../chunk-OELYTKJQ.cjs');
|
|
4
|
+
require('../chunk-ODCZF6YR.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkOELYTKJQcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
"typescript": { "optional": false }
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@storm-software/build-tools": "^0.158.
|
|
151
|
-
"@storm-software/config": "^1.134.
|
|
152
|
-
"@storm-software/config-tools": "^1.188.
|
|
150
|
+
"@storm-software/build-tools": "^0.158.40",
|
|
151
|
+
"@storm-software/config": "^1.134.40",
|
|
152
|
+
"@storm-software/config-tools": "^1.188.40",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"defu": "6.1.4",
|
|
155
155
|
"esbuild": "^0.25.12",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
},
|
|
172
172
|
"publishConfig": { "access": "public" },
|
|
173
173
|
"sideEffects": false,
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "9fb6aab8303c116047d19f12823505c5bd071a55"
|
|
175
175
|
}
|