@storm-software/unbuild 0.57.86 → 0.57.88
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/bin/unbuild.cjs +7 -6
- package/bin/unbuild.js +7 -6
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-G2KGWCMT.cjs → chunk-2XFE5FGC.cjs} +2 -2
- package/dist/{chunk-U25P467T.cjs → chunk-4JLDXNBJ.cjs} +6 -5
- package/dist/{chunk-UTPDCL5O.js → chunk-5GMXZVPB.js} +6 -5
- package/dist/{chunk-4JC5QN5R.cjs → chunk-DMPZZURO.cjs} +44 -44
- package/dist/{chunk-JDSJJPKN.js → chunk-EBOFHDEY.js} +1 -1
- package/dist/{chunk-XJRI5PEK.js → chunk-MEKNH4KG.js} +1 -1
- package/dist/{chunk-PUKULGMA.js → chunk-MP7F35XB.js} +1 -1
- package/dist/{chunk-BKVWUVJ4.js → chunk-OAAS4DBV.js} +5 -5
- package/dist/{chunk-NT4VJR4U.cjs → chunk-QBYN6PPG.cjs} +2 -2
- package/dist/{chunk-FFUNE74Q.js → chunk-SPLRBIEF.js} +1 -1
- package/dist/{chunk-BP56RAZ2.cjs → chunk-TG5I2FBM.cjs} +3 -3
- package/dist/{chunk-C7PT2TGO.cjs → chunk-VLD5OGAM.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/bin/unbuild.cjs
CHANGED
|
@@ -942,11 +942,12 @@ var getStopwatch = (name) => {
|
|
|
942
942
|
const start = /* @__PURE__ */ new Date();
|
|
943
943
|
return () => {
|
|
944
944
|
console.info(
|
|
945
|
-
`
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
945
|
+
`> \u23F1 The${name ? ` ${name}` : ""} process took ${(0, import_formatDistanceToNow.formatDistanceToNow)(
|
|
946
|
+
start,
|
|
947
|
+
{
|
|
948
|
+
includeSeconds: true
|
|
949
|
+
}
|
|
950
|
+
)} to complete`
|
|
950
951
|
);
|
|
951
952
|
};
|
|
952
953
|
};
|
|
@@ -3142,7 +3143,7 @@ void (async () => {
|
|
|
3142
3143
|
const program = await createProgram(config);
|
|
3143
3144
|
await program.parseAsync(process.argv);
|
|
3144
3145
|
writeSuccess(
|
|
3145
|
-
`\
|
|
3146
|
+
`\u2714 Storm ESBuild executable has completed successfully!`,
|
|
3146
3147
|
config
|
|
3147
3148
|
);
|
|
3148
3149
|
exitWithSuccess(config);
|
package/bin/unbuild.js
CHANGED
|
@@ -920,11 +920,12 @@ var getStopwatch = (name) => {
|
|
|
920
920
|
const start = /* @__PURE__ */ new Date();
|
|
921
921
|
return () => {
|
|
922
922
|
console.info(
|
|
923
|
-
`
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
923
|
+
`> \u23F1 The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(
|
|
924
|
+
start,
|
|
925
|
+
{
|
|
926
|
+
includeSeconds: true
|
|
927
|
+
}
|
|
928
|
+
)} to complete`
|
|
928
929
|
);
|
|
929
930
|
};
|
|
930
931
|
};
|
|
@@ -3141,7 +3142,7 @@ void (async () => {
|
|
|
3141
3142
|
const program = await createProgram(config);
|
|
3142
3143
|
await program.parseAsync(process.argv);
|
|
3143
3144
|
writeSuccess(
|
|
3144
|
-
`\
|
|
3145
|
+
`\u2714 Storm ESBuild executable has completed successfully!`,
|
|
3145
3146
|
config
|
|
3146
3147
|
);
|
|
3147
3148
|
exitWithSuccess(config);
|
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 _chunkDMPZZUROcjs = require('./chunk-DMPZZURO.cjs');
|
|
9
|
+
require('./chunk-TG5I2FBM.cjs');
|
|
10
|
+
require('./chunk-2XFE5FGC.cjs');
|
|
11
|
+
require('./chunk-VLD5OGAM.cjs');
|
|
12
|
+
require('./chunk-QBYN6PPG.cjs');
|
|
13
|
+
require('./chunk-4JLDXNBJ.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 = _chunkDMPZZUROcjs.build; exports.cleanOutputPath = _chunkDMPZZUROcjs.cleanOutputPath; exports.copyBuildAssets = _chunkDMPZZUROcjs.copyBuildAssets; exports.executeUnbuild = _chunkDMPZZUROcjs.executeUnbuild; exports.generatePackageJson = _chunkDMPZZUROcjs.generatePackageJson; exports.resolveOptions = _chunkDMPZZUROcjs.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-OAAS4DBV.js";
|
|
9
|
+
import "./chunk-MP7F35XB.js";
|
|
10
|
+
import "./chunk-MEKNH4KG.js";
|
|
11
|
+
import "./chunk-SPLRBIEF.js";
|
|
12
|
+
import "./chunk-EBOFHDEY.js";
|
|
13
|
+
import "./chunk-5GMXZVPB.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4JLDXNBJcjs = require('./chunk-4JLDXNBJ.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
|
+
_chunk4JLDXNBJcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -329,11 +329,12 @@ var getStopwatch = (name) => {
|
|
|
329
329
|
const start = /* @__PURE__ */ new Date();
|
|
330
330
|
return () => {
|
|
331
331
|
console.info(
|
|
332
|
-
`
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
`> \u23F1 The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0,
|
|
333
|
+
start,
|
|
334
|
+
{
|
|
335
|
+
includeSeconds: true
|
|
336
|
+
}
|
|
337
|
+
)} to complete`
|
|
337
338
|
);
|
|
338
339
|
};
|
|
339
340
|
};
|
|
@@ -329,11 +329,12 @@ var getStopwatch = (name) => {
|
|
|
329
329
|
const start = /* @__PURE__ */ new Date();
|
|
330
330
|
return () => {
|
|
331
331
|
console.info(
|
|
332
|
-
`
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
`> \u23F1 The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(
|
|
333
|
+
start,
|
|
334
|
+
{
|
|
335
|
+
includeSeconds: true
|
|
336
|
+
}
|
|
337
|
+
)} to complete`
|
|
337
338
|
);
|
|
338
339
|
};
|
|
339
340
|
};
|
|
@@ -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 _chunkTG5I2FBMcjs = require('./chunk-TG5I2FBM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2XFE5FGCcjs = require('./chunk-2XFE5FGC.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkVLD5OGAMcjs = require('./chunk-VLD5OGAM.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkQBYN6PPGcjs = require('./chunk-QBYN6PPG.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ var _chunkNT4VJR4Ucjs = require('./chunk-NT4VJR4U.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk4JLDXNBJcjs = require('./chunk-4JLDXNBJ.cjs');
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
|
|
@@ -206,7 +206,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
206
206
|
output: "src/"
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0,
|
|
210
210
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
211
211
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
212
212
|
config
|
|
@@ -218,9 +218,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
218
218
|
assets: pendingAssets
|
|
219
219
|
});
|
|
220
220
|
await assetHandler.processAllAssetsOnce();
|
|
221
|
-
|
|
221
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
222
222
|
if (includeSrc === true) {
|
|
223
|
-
|
|
223
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0,
|
|
224
224
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
225
225
|
outputPath,
|
|
226
226
|
"src"
|
|
@@ -399,7 +399,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
if (localPackages.length > 0) {
|
|
402
|
-
|
|
402
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0,
|
|
403
403
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
404
404
|
);
|
|
405
405
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -447,7 +447,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
447
447
|
return ret;
|
|
448
448
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
449
449
|
} else {
|
|
450
|
-
|
|
450
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
451
451
|
}
|
|
452
452
|
return packageJson;
|
|
453
453
|
};
|
|
@@ -1225,7 +1225,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1225
1225
|
let config = result.config;
|
|
1226
1226
|
const configFile = result.configFile;
|
|
1227
1227
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1228
|
-
|
|
1228
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0,
|
|
1229
1229
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1230
1230
|
{
|
|
1231
1231
|
logLevel: "all"
|
|
@@ -1241,7 +1241,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1241
1241
|
for (const result2 of results) {
|
|
1242
1242
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1243
1243
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1244
|
-
|
|
1244
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0,
|
|
1245
1245
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1246
1246
|
{
|
|
1247
1247
|
logLevel: "all"
|
|
@@ -1357,7 +1357,7 @@ var getConfigEnv = () => {
|
|
|
1357
1357
|
},
|
|
1358
1358
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1359
1359
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1360
|
-
) ?
|
|
1360
|
+
) ? _chunk4JLDXNBJcjs.getLogLevelLabel.call(void 0,
|
|
1361
1361
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1362
1362
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1363
1363
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1722,9 +1722,9 @@ var setConfigEnv = (config) => {
|
|
|
1722
1722
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1723
1723
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1724
1724
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1725
|
-
|
|
1725
|
+
_chunk4JLDXNBJcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk4JLDXNBJcjs.LogLevel.DEBUG ? true : false
|
|
1726
1726
|
);
|
|
1727
|
-
process.env.RUST_BACKTRACE =
|
|
1727
|
+
process.env.RUST_BACKTRACE = _chunk4JLDXNBJcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk4JLDXNBJcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1728
1728
|
}
|
|
1729
1729
|
if (config.skipConfigLogging !== void 0) {
|
|
1730
1730
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1866,7 +1866,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1866
1866
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1867
1867
|
if (!configFile) {
|
|
1868
1868
|
if (!skipLogs) {
|
|
1869
|
-
|
|
1869
|
+
_chunk4JLDXNBJcjs.writeWarning.call(void 0,
|
|
1870
1870
|
"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",
|
|
1871
1871
|
{ logLevel: "all" }
|
|
1872
1872
|
);
|
|
@@ -1893,7 +1893,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1893
1893
|
throw new Error(
|
|
1894
1894
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1895
1895
|
|
|
1896
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1896
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk4JLDXNBJcjs.formatLogMessage.call(void 0,
|
|
1897
1897
|
configInput
|
|
1898
1898
|
)}`,
|
|
1899
1899
|
{
|
|
@@ -1938,9 +1938,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1938
1938
|
);
|
|
1939
1939
|
setConfigEnv(config);
|
|
1940
1940
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1941
|
-
|
|
1941
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0,
|
|
1942
1942
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1943
|
-
${
|
|
1943
|
+
${_chunk4JLDXNBJcjs.formatLogMessage.call(void 0, config)}`,
|
|
1944
1944
|
config
|
|
1945
1945
|
);
|
|
1946
1946
|
}
|
|
@@ -1976,10 +1976,10 @@ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
|
1976
1976
|
|
|
1977
1977
|
var _unbuild = require('unbuild');
|
|
1978
1978
|
async function resolveOptions(options, config) {
|
|
1979
|
-
|
|
1980
|
-
const stopwatch =
|
|
1979
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1980
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1981
1981
|
if (options.configPath) {
|
|
1982
|
-
const configFile = await
|
|
1982
|
+
const configFile = await _chunkQBYN6PPGcjs.loadConfig.call(void 0, options.configPath);
|
|
1983
1983
|
if (configFile) {
|
|
1984
1984
|
options = _defu2.default.call(void 0, options, configFile);
|
|
1985
1985
|
}
|
|
@@ -2160,7 +2160,7 @@ async function resolveOptions(options, config) {
|
|
|
2160
2160
|
treeShaking: options.treeShaking !== false,
|
|
2161
2161
|
platform: options.platform || "neutral",
|
|
2162
2162
|
color: true,
|
|
2163
|
-
logLevel: config.logLevel ===
|
|
2163
|
+
logLevel: config.logLevel === _chunk4JLDXNBJcjs.LogLevelLabel.FATAL ? _chunk4JLDXNBJcjs.LogLevelLabel.ERROR : _chunk4JLDXNBJcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
};
|
|
@@ -2181,7 +2181,7 @@ async function resolveOptions(options, config) {
|
|
|
2181
2181
|
if (options.rollup) {
|
|
2182
2182
|
let rollup = {};
|
|
2183
2183
|
if (typeof options.rollup === "string") {
|
|
2184
|
-
const rollupFile = await
|
|
2184
|
+
const rollupFile = await _chunkQBYN6PPGcjs.loadConfig.call(void 0, options.rollup);
|
|
2185
2185
|
if (rollupFile) {
|
|
2186
2186
|
rollup = rollupFile;
|
|
2187
2187
|
}
|
|
@@ -2193,20 +2193,20 @@ async function resolveOptions(options, config) {
|
|
|
2193
2193
|
resolvedOptions.hooks = {
|
|
2194
2194
|
"rollup:options": async (ctx, opts) => {
|
|
2195
2195
|
if (options.plugins && options.plugins.length > 0) {
|
|
2196
|
-
|
|
2196
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0,
|
|
2197
2197
|
` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`,
|
|
2198
2198
|
config
|
|
2199
2199
|
);
|
|
2200
2200
|
opts.plugins = options.plugins;
|
|
2201
2201
|
} else {
|
|
2202
|
-
|
|
2202
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0,
|
|
2203
2203
|
` \u{1F9E9} No plugins found in provided build options, using default plugins`,
|
|
2204
2204
|
config
|
|
2205
2205
|
);
|
|
2206
2206
|
opts.plugins = await Promise.all([
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2207
|
+
_chunk2XFE5FGCcjs.analyzePlugin.call(void 0, resolvedOptions),
|
|
2208
|
+
_chunkQBYN6PPGcjs.tscPlugin.call(void 0, resolvedOptions),
|
|
2209
|
+
_chunkVLD5OGAMcjs.onErrorPlugin.call(void 0, resolvedOptions)
|
|
2210
2210
|
]);
|
|
2211
2211
|
}
|
|
2212
2212
|
},
|
|
@@ -2261,8 +2261,8 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
|
|
|
2261
2261
|
};
|
|
2262
2262
|
async function generatePackageJson(options) {
|
|
2263
2263
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2264
|
-
|
|
2265
|
-
const stopwatch =
|
|
2264
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
2265
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2266
2266
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2267
2267
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2268
2268
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2360,11 +2360,11 @@ async function generatePackageJson(options) {
|
|
|
2360
2360
|
return options;
|
|
2361
2361
|
}
|
|
2362
2362
|
async function executeUnbuild(options) {
|
|
2363
|
-
|
|
2363
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0,
|
|
2364
2364
|
` \u{1F680} Running ${options.name} (${options.projectRoot}) build`,
|
|
2365
2365
|
options.config
|
|
2366
2366
|
);
|
|
2367
|
-
const stopwatch =
|
|
2367
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0,
|
|
2368
2368
|
`${options.name} (${options.projectRoot}) build`
|
|
2369
2369
|
);
|
|
2370
2370
|
try {
|
|
@@ -2373,9 +2373,9 @@ async function executeUnbuild(options) {
|
|
|
2373
2373
|
config: null,
|
|
2374
2374
|
rootDir: joinPaths(options.config.workspaceRoot, options.projectRoot)
|
|
2375
2375
|
};
|
|
2376
|
-
|
|
2376
|
+
_chunk4JLDXNBJcjs.writeTrace.call(void 0,
|
|
2377
2377
|
`Running with unbuild configuration:
|
|
2378
|
-
${
|
|
2378
|
+
${_chunk4JLDXNBJcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
|
|
2379
2379
|
`,
|
|
2380
2380
|
options.config
|
|
2381
2381
|
);
|
|
@@ -2386,11 +2386,11 @@ ${_chunkU25P467Tcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" }
|
|
|
2386
2386
|
return options;
|
|
2387
2387
|
}
|
|
2388
2388
|
async function copyBuildAssets(options) {
|
|
2389
|
-
|
|
2389
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0,
|
|
2390
2390
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2391
2391
|
options.config
|
|
2392
2392
|
);
|
|
2393
|
-
const stopwatch =
|
|
2393
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2394
2394
|
await copyAssets(
|
|
2395
2395
|
options.config,
|
|
2396
2396
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2405,12 +2405,12 @@ async function copyBuildAssets(options) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
async function cleanOutputPath(options) {
|
|
2407
2407
|
if (options.clean !== false && options.outDir) {
|
|
2408
|
-
|
|
2408
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0,
|
|
2409
2409
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`,
|
|
2410
2410
|
options.config
|
|
2411
2411
|
);
|
|
2412
|
-
const stopwatch =
|
|
2413
|
-
await
|
|
2412
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2413
|
+
await _chunkTG5I2FBMcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
|
|
2414
2414
|
stopwatch();
|
|
2415
2415
|
}
|
|
2416
2416
|
return options;
|
|
@@ -2425,8 +2425,8 @@ async function build(options) {
|
|
|
2425
2425
|
throw new Error("Cannot find workspace root");
|
|
2426
2426
|
}
|
|
2427
2427
|
const config = await getConfig(workspaceRoot.dir);
|
|
2428
|
-
|
|
2429
|
-
const stopwatch =
|
|
2428
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0, ` ${_chunk4JLDXNBJcjs.brandIcon.call(void 0, config)} Executing Storm Unbuild pipeline`, config);
|
|
2429
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
2430
2430
|
try {
|
|
2431
2431
|
options.projectRoot = correctPaths(projectRoot);
|
|
2432
2432
|
const resolvedOptions = await resolveOptions(options, config);
|
|
@@ -2438,12 +2438,12 @@ async function build(options) {
|
|
|
2438
2438
|
if (options.buildOnly !== true) {
|
|
2439
2439
|
await copyBuildAssets(resolvedOptions);
|
|
2440
2440
|
}
|
|
2441
|
-
|
|
2441
|
+
_chunk4JLDXNBJcjs.writeSuccess.call(void 0,
|
|
2442
2442
|
` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`,
|
|
2443
2443
|
config
|
|
2444
2444
|
);
|
|
2445
2445
|
} catch (error) {
|
|
2446
|
-
|
|
2446
|
+
_chunk4JLDXNBJcjs.writeFatal.call(void 0,
|
|
2447
2447
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated.",
|
|
2448
2448
|
config
|
|
2449
2449
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MP7F35XB.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MEKNH4KG.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SPLRBIEF.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EBOFHDEY.js";
|
|
14
14
|
import {
|
|
15
15
|
LogLevel,
|
|
16
16
|
LogLevelLabel,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
writeSuccess,
|
|
26
26
|
writeTrace,
|
|
27
27
|
writeWarning
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5GMXZVPB.js";
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
import {
|
|
@@ -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 _chunk4JLDXNBJcjs = require('./chunk-4JLDXNBJ.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
|
+
_chunk4JLDXNBJcjs.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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4JLDXNBJcjs = require('./chunk-4JLDXNBJ.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
|
+
_chunk4JLDXNBJcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunk4JLDXNBJcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4JLDXNBJcjs = require('./chunk-4JLDXNBJ.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
|
+
_chunk4JLDXNBJcjs.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
|
+
_chunk4JLDXNBJcjs.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 _chunkTG5I2FBMcjs = require('./chunk-TG5I2FBM.cjs');
|
|
5
|
+
require('./chunk-4JLDXNBJ.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunkTG5I2FBMcjs.clean; exports.cleanDirectories = _chunkTG5I2FBMcjs.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 _chunkDMPZZUROcjs = require('./chunk-DMPZZURO.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkTG5I2FBMcjs = require('./chunk-TG5I2FBM.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-2XFE5FGC.cjs');
|
|
15
|
+
require('./chunk-VLD5OGAM.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkQBYN6PPGcjs = require('./chunk-QBYN6PPG.cjs');
|
|
20
|
+
require('./chunk-4JLDXNBJ.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 = _chunkDMPZZUROcjs.build; exports.clean = _chunkTG5I2FBMcjs.clean; exports.cleanDirectories = _chunkTG5I2FBMcjs.cleanDirectories; exports.cleanOutputPath = _chunkDMPZZUROcjs.cleanOutputPath; exports.copyBuildAssets = _chunkDMPZZUROcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkQBYN6PPGcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkDMPZZUROcjs.executeUnbuild; exports.generatePackageJson = _chunkDMPZZUROcjs.generatePackageJson; exports.loadConfig = _chunkQBYN6PPGcjs.loadConfig; exports.resolveOptions = _chunkDMPZZUROcjs.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-OAAS4DBV.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MP7F35XB.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MEKNH4KG.js";
|
|
15
|
+
import "./chunk-SPLRBIEF.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-EBOFHDEY.js";
|
|
20
|
+
import "./chunk-5GMXZVPB.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 _chunk2XFE5FGCcjs = require('../chunk-2XFE5FGC.cjs');
|
|
4
|
+
require('../chunk-4JLDXNBJ.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunk2XFE5FGCcjs.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 _chunkVLD5OGAMcjs = require('../chunk-VLD5OGAM.cjs');
|
|
4
|
+
require('../chunk-4JLDXNBJ.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunkVLD5OGAMcjs.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 _chunkQBYN6PPGcjs = require('../chunk-QBYN6PPG.cjs');
|
|
4
|
+
require('../chunk-4JLDXNBJ.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkQBYN6PPGcjs.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.88",
|
|
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.135.
|
|
152
|
-
"@storm-software/config-tools": "^1.189.
|
|
150
|
+
"@storm-software/build-tools": "^0.158.87",
|
|
151
|
+
"@storm-software/config": "^1.135.7",
|
|
152
|
+
"@storm-software/config-tools": "^1.189.6",
|
|
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": "59fb127dd72835aea54f08b543d44463b2922338"
|
|
175
175
|
}
|