@storm-software/unbuild 0.57.76 → 0.57.77
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 +2 -2
- package/bin/unbuild.js +2 -2
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-PRWK6D2Z.cjs → chunk-7YBUQPSP.cjs} +3 -3
- package/dist/{chunk-DTI3UFUL.js → chunk-BUEI6JDN.js} +1 -1
- package/dist/{chunk-MVEQ4XZ7.js → chunk-EEINZJUK.js} +2 -2
- package/dist/{chunk-7KR7UNJU.js → chunk-EYJ5TSXG.js} +1 -1
- package/dist/{chunk-WLTWYGVL.cjs → chunk-IPDHNHPV.cjs} +2 -2
- package/dist/{chunk-2HM2SFF5.js → chunk-QIX42PK7.js} +1 -1
- package/dist/{chunk-P55SG7JM.cjs → chunk-QZS57WYB.cjs} +2 -2
- package/dist/{chunk-45AA6JLQ.cjs → chunk-RLEHE4MT.cjs} +2 -2
- package/dist/{chunk-FZP5LPVW.cjs → chunk-T5VA2X3U.cjs} +44 -44
- package/dist/{chunk-W7QA6HKD.cjs → chunk-TSH67LLG.cjs} +3 -3
- package/dist/{chunk-YYQK7YYN.js → chunk-XMIMHZUN.js} +1 -1
- package/dist/{chunk-I2GNLYNO.js → chunk-ZQJEXCIL.js} +5 -5
- 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 +4 -4
package/bin/unbuild.cjs
CHANGED
|
@@ -850,7 +850,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
850
850
|
return (message) => {
|
|
851
851
|
console.debug(
|
|
852
852
|
`
|
|
853
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.
|
|
853
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
854
854
|
`
|
|
855
855
|
);
|
|
856
856
|
};
|
|
@@ -859,7 +859,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
859
859
|
return (message) => {
|
|
860
860
|
console.debug(
|
|
861
861
|
`
|
|
862
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
862
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
863
863
|
`
|
|
864
864
|
);
|
|
865
865
|
};
|
package/bin/unbuild.js
CHANGED
|
@@ -828,7 +828,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
828
828
|
return (message) => {
|
|
829
829
|
console.debug(
|
|
830
830
|
`
|
|
831
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.
|
|
831
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
832
832
|
`
|
|
833
833
|
);
|
|
834
834
|
};
|
|
@@ -837,7 +837,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
837
837
|
return (message) => {
|
|
838
838
|
console.debug(
|
|
839
839
|
`
|
|
840
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
840
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
841
841
|
`
|
|
842
842
|
);
|
|
843
843
|
};
|
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 _chunkT5VA2X3Ucjs = require('./chunk-T5VA2X3U.cjs');
|
|
9
|
+
require('./chunk-TSH67LLG.cjs');
|
|
10
|
+
require('./chunk-QZS57WYB.cjs');
|
|
11
|
+
require('./chunk-7YBUQPSP.cjs');
|
|
12
|
+
require('./chunk-RLEHE4MT.cjs');
|
|
13
|
+
require('./chunk-IPDHNHPV.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 = _chunkT5VA2X3Ucjs.build; exports.cleanOutputPath = _chunkT5VA2X3Ucjs.cleanOutputPath; exports.copyBuildAssets = _chunkT5VA2X3Ucjs.copyBuildAssets; exports.executeUnbuild = _chunkT5VA2X3Ucjs.executeUnbuild; exports.generatePackageJson = _chunkT5VA2X3Ucjs.generatePackageJson; exports.resolveOptions = _chunkT5VA2X3Ucjs.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-ZQJEXCIL.js";
|
|
9
|
+
import "./chunk-BUEI6JDN.js";
|
|
10
|
+
import "./chunk-QIX42PK7.js";
|
|
11
|
+
import "./chunk-EYJ5TSXG.js";
|
|
12
|
+
import "./chunk-XMIMHZUN.js";
|
|
13
|
+
import "./chunk-EEINZJUK.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
|
-
var
|
|
3
|
+
var _chunkIPDHNHPVcjs = require('./chunk-IPDHNHPV.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
|
+
_chunkIPDHNHPVcjs.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
|
+
_chunkIPDHNHPVcjs.writeError.call(void 0,
|
|
22
22
|
`The following errors occurred during the build:
|
|
23
23
|
${error ? error.message : "Unknown build error"}
|
|
24
24
|
|
|
@@ -237,7 +237,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
237
237
|
return (message) => {
|
|
238
238
|
console.debug(
|
|
239
239
|
`
|
|
240
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.
|
|
240
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
241
241
|
`
|
|
242
242
|
);
|
|
243
243
|
};
|
|
@@ -246,7 +246,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
246
246
|
return (message) => {
|
|
247
247
|
console.debug(
|
|
248
248
|
`
|
|
249
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
249
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
250
250
|
`
|
|
251
251
|
);
|
|
252
252
|
};
|
|
@@ -237,7 +237,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, ()
|
|
|
237
237
|
return (message) => {
|
|
238
238
|
console.debug(
|
|
239
239
|
`
|
|
240
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.
|
|
240
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
241
241
|
`
|
|
242
242
|
);
|
|
243
243
|
};
|
|
@@ -246,7 +246,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.debug, ()
|
|
|
246
246
|
return (message) => {
|
|
247
247
|
console.debug(
|
|
248
248
|
`
|
|
249
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
249
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
250
250
|
`
|
|
251
251
|
);
|
|
252
252
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIPDHNHPVcjs = require('./chunk-IPDHNHPV.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
|
+
_chunkIPDHNHPVcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -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 _chunkIPDHNHPVcjs = require('./chunk-IPDHNHPV.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
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
49
|
return compilerOptions;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -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 _chunkTSH67LLGcjs = require('./chunk-TSH67LLG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQZS57WYBcjs = require('./chunk-QZS57WYB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7YBUQPSPcjs = require('./chunk-7YBUQPSP.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkRLEHE4MTcjs = require('./chunk-RLEHE4MT.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -24,7 +24,7 @@ var _chunk45AA6JLQcjs = require('./chunk-45AA6JLQ.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkIPDHNHPVcjs = require('./chunk-IPDHNHPV.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
|
+
_chunkIPDHNHPVcjs.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
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
221
221
|
if (includeSrc === true) {
|
|
222
|
-
|
|
222
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0,
|
|
223
223
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
224
224
|
outputPath,
|
|
225
225
|
"src"
|
|
@@ -398,7 +398,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
if (localPackages.length > 0) {
|
|
401
|
-
|
|
401
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0,
|
|
402
402
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
403
403
|
);
|
|
404
404
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -446,7 +446,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
446
446
|
return ret;
|
|
447
447
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
448
448
|
} else {
|
|
449
|
-
|
|
449
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
450
450
|
}
|
|
451
451
|
return packageJson;
|
|
452
452
|
};
|
|
@@ -1224,7 +1224,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1224
1224
|
let config = result.config;
|
|
1225
1225
|
const configFile = result.configFile;
|
|
1226
1226
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1227
|
-
|
|
1227
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0,
|
|
1228
1228
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1229
1229
|
{
|
|
1230
1230
|
logLevel: "all"
|
|
@@ -1240,7 +1240,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1240
1240
|
for (const result2 of results) {
|
|
1241
1241
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1242
1242
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1243
|
-
|
|
1243
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0,
|
|
1244
1244
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1245
1245
|
{
|
|
1246
1246
|
logLevel: "all"
|
|
@@ -1356,7 +1356,7 @@ var getConfigEnv = () => {
|
|
|
1356
1356
|
},
|
|
1357
1357
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1358
1358
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1359
|
-
) ?
|
|
1359
|
+
) ? _chunkIPDHNHPVcjs.getLogLevelLabel.call(void 0,
|
|
1360
1360
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1361
1361
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1362
1362
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1721,9 +1721,9 @@ var setConfigEnv = (config) => {
|
|
|
1721
1721
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1722
1722
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1723
1723
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1724
|
-
|
|
1724
|
+
_chunkIPDHNHPVcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkIPDHNHPVcjs.LogLevel.DEBUG ? true : false
|
|
1725
1725
|
);
|
|
1726
|
-
process.env.RUST_BACKTRACE =
|
|
1726
|
+
process.env.RUST_BACKTRACE = _chunkIPDHNHPVcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkIPDHNHPVcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1727
1727
|
}
|
|
1728
1728
|
if (config.skipConfigLogging !== void 0) {
|
|
1729
1729
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1865,7 +1865,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1865
1865
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1866
1866
|
if (!configFile) {
|
|
1867
1867
|
if (!skipLogs) {
|
|
1868
|
-
|
|
1868
|
+
_chunkIPDHNHPVcjs.writeWarning.call(void 0,
|
|
1869
1869
|
"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",
|
|
1870
1870
|
{ logLevel: "all" }
|
|
1871
1871
|
);
|
|
@@ -1892,7 +1892,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1892
1892
|
throw new Error(
|
|
1893
1893
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1894
1894
|
|
|
1895
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1895
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkIPDHNHPVcjs.formatLogMessage.call(void 0,
|
|
1896
1896
|
configInput
|
|
1897
1897
|
)}`,
|
|
1898
1898
|
{
|
|
@@ -1937,9 +1937,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1937
1937
|
);
|
|
1938
1938
|
setConfigEnv(config);
|
|
1939
1939
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1940
|
-
|
|
1940
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0,
|
|
1941
1941
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1942
|
-
${
|
|
1942
|
+
${_chunkIPDHNHPVcjs.formatLogMessage.call(void 0, config)}`,
|
|
1943
1943
|
config
|
|
1944
1944
|
);
|
|
1945
1945
|
}
|
|
@@ -1975,10 +1975,10 @@ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
|
1975
1975
|
|
|
1976
1976
|
var _unbuild = require('unbuild');
|
|
1977
1977
|
async function resolveOptions(options, config) {
|
|
1978
|
-
|
|
1979
|
-
const stopwatch =
|
|
1978
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1979
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1980
1980
|
if (options.configPath) {
|
|
1981
|
-
const configFile = await
|
|
1981
|
+
const configFile = await _chunkRLEHE4MTcjs.loadConfig.call(void 0, options.configPath);
|
|
1982
1982
|
if (configFile) {
|
|
1983
1983
|
options = _defu2.default.call(void 0, options, configFile);
|
|
1984
1984
|
}
|
|
@@ -2159,7 +2159,7 @@ async function resolveOptions(options, config) {
|
|
|
2159
2159
|
treeShaking: options.treeShaking !== false,
|
|
2160
2160
|
platform: options.platform || "neutral",
|
|
2161
2161
|
color: true,
|
|
2162
|
-
logLevel: config.logLevel ===
|
|
2162
|
+
logLevel: config.logLevel === _chunkIPDHNHPVcjs.LogLevelLabel.FATAL ? _chunkIPDHNHPVcjs.LogLevelLabel.ERROR : _chunkIPDHNHPVcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
2165
|
};
|
|
@@ -2180,7 +2180,7 @@ async function resolveOptions(options, config) {
|
|
|
2180
2180
|
if (options.rollup) {
|
|
2181
2181
|
let rollup = {};
|
|
2182
2182
|
if (typeof options.rollup === "string") {
|
|
2183
|
-
const rollupFile = await
|
|
2183
|
+
const rollupFile = await _chunkRLEHE4MTcjs.loadConfig.call(void 0, options.rollup);
|
|
2184
2184
|
if (rollupFile) {
|
|
2185
2185
|
rollup = rollupFile;
|
|
2186
2186
|
}
|
|
@@ -2192,20 +2192,20 @@ async function resolveOptions(options, config) {
|
|
|
2192
2192
|
resolvedOptions.hooks = {
|
|
2193
2193
|
"rollup:options": async (ctx, opts) => {
|
|
2194
2194
|
if (options.plugins && options.plugins.length > 0) {
|
|
2195
|
-
|
|
2195
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0,
|
|
2196
2196
|
` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`,
|
|
2197
2197
|
config
|
|
2198
2198
|
);
|
|
2199
2199
|
opts.plugins = options.plugins;
|
|
2200
2200
|
} else {
|
|
2201
|
-
|
|
2201
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0,
|
|
2202
2202
|
` \u{1F9E9} No plugins found in provided build options, using default plugins`,
|
|
2203
2203
|
config
|
|
2204
2204
|
);
|
|
2205
2205
|
opts.plugins = await Promise.all([
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2206
|
+
_chunkQZS57WYBcjs.analyzePlugin.call(void 0, resolvedOptions),
|
|
2207
|
+
_chunkRLEHE4MTcjs.tscPlugin.call(void 0, resolvedOptions),
|
|
2208
|
+
_chunk7YBUQPSPcjs.onErrorPlugin.call(void 0, resolvedOptions)
|
|
2209
2209
|
]);
|
|
2210
2210
|
}
|
|
2211
2211
|
},
|
|
@@ -2260,8 +2260,8 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
|
|
|
2260
2260
|
};
|
|
2261
2261
|
async function generatePackageJson(options) {
|
|
2262
2262
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2263
|
-
|
|
2264
|
-
const stopwatch =
|
|
2263
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
2264
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2265
2265
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2266
2266
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2267
2267
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2359,11 +2359,11 @@ async function generatePackageJson(options) {
|
|
|
2359
2359
|
return options;
|
|
2360
2360
|
}
|
|
2361
2361
|
async function executeUnbuild(options) {
|
|
2362
|
-
|
|
2362
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0,
|
|
2363
2363
|
` \u{1F680} Running ${options.name} (${options.projectRoot}) build`,
|
|
2364
2364
|
options.config
|
|
2365
2365
|
);
|
|
2366
|
-
const stopwatch =
|
|
2366
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0,
|
|
2367
2367
|
`${options.name} (${options.projectRoot}) build`
|
|
2368
2368
|
);
|
|
2369
2369
|
try {
|
|
@@ -2372,9 +2372,9 @@ async function executeUnbuild(options) {
|
|
|
2372
2372
|
config: null,
|
|
2373
2373
|
rootDir: joinPaths(options.config.workspaceRoot, options.projectRoot)
|
|
2374
2374
|
};
|
|
2375
|
-
|
|
2375
|
+
_chunkIPDHNHPVcjs.writeTrace.call(void 0,
|
|
2376
2376
|
`Running with unbuild configuration:
|
|
2377
|
-
${
|
|
2377
|
+
${_chunkIPDHNHPVcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
|
|
2378
2378
|
`,
|
|
2379
2379
|
options.config
|
|
2380
2380
|
);
|
|
@@ -2385,11 +2385,11 @@ ${_chunkWLTWYGVLcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" }
|
|
|
2385
2385
|
return options;
|
|
2386
2386
|
}
|
|
2387
2387
|
async function copyBuildAssets(options) {
|
|
2388
|
-
|
|
2388
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0,
|
|
2389
2389
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2390
2390
|
options.config
|
|
2391
2391
|
);
|
|
2392
|
-
const stopwatch =
|
|
2392
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2393
2393
|
await copyAssets(
|
|
2394
2394
|
options.config,
|
|
2395
2395
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2404,12 +2404,12 @@ async function copyBuildAssets(options) {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
async function cleanOutputPath(options) {
|
|
2406
2406
|
if (options.clean !== false && options.outDir) {
|
|
2407
|
-
|
|
2407
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0,
|
|
2408
2408
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`,
|
|
2409
2409
|
options.config
|
|
2410
2410
|
);
|
|
2411
|
-
const stopwatch =
|
|
2412
|
-
await
|
|
2411
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2412
|
+
await _chunkTSH67LLGcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
|
|
2413
2413
|
stopwatch();
|
|
2414
2414
|
}
|
|
2415
2415
|
return options;
|
|
@@ -2424,8 +2424,8 @@ async function build(options) {
|
|
|
2424
2424
|
throw new Error("Cannot find workspace root");
|
|
2425
2425
|
}
|
|
2426
2426
|
const config = await getConfig(workspaceRoot.dir);
|
|
2427
|
-
|
|
2428
|
-
const stopwatch =
|
|
2427
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`, config);
|
|
2428
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
2429
2429
|
try {
|
|
2430
2430
|
options.projectRoot = correctPaths(projectRoot);
|
|
2431
2431
|
const resolvedOptions = await resolveOptions(options, config);
|
|
@@ -2437,12 +2437,12 @@ async function build(options) {
|
|
|
2437
2437
|
if (options.buildOnly !== true) {
|
|
2438
2438
|
await copyBuildAssets(resolvedOptions);
|
|
2439
2439
|
}
|
|
2440
|
-
|
|
2440
|
+
_chunkIPDHNHPVcjs.writeSuccess.call(void 0,
|
|
2441
2441
|
` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`,
|
|
2442
2442
|
config
|
|
2443
2443
|
);
|
|
2444
2444
|
} catch (error) {
|
|
2445
|
-
|
|
2445
|
+
_chunkIPDHNHPVcjs.writeFatal.call(void 0,
|
|
2446
2446
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated.",
|
|
2447
2447
|
config
|
|
2448
2448
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkIPDHNHPVcjs = require('./chunk-IPDHNHPV.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
|
+
_chunkIPDHNHPVcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunkIPDHNHPVcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BUEI6JDN.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QIX42PK7.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EYJ5TSXG.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XMIMHZUN.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-EEINZJUK.js";
|
|
28
28
|
|
|
29
29
|
// src/build.ts
|
|
30
30
|
import {
|
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 _chunkTSH67LLGcjs = require('./chunk-TSH67LLG.cjs');
|
|
5
|
+
require('./chunk-IPDHNHPV.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunkTSH67LLGcjs.clean; exports.cleanDirectories = _chunkTSH67LLGcjs.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 _chunkT5VA2X3Ucjs = require('./chunk-T5VA2X3U.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkTSH67LLGcjs = require('./chunk-TSH67LLG.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-QZS57WYB.cjs');
|
|
15
|
+
require('./chunk-7YBUQPSP.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkRLEHE4MTcjs = require('./chunk-RLEHE4MT.cjs');
|
|
20
|
+
require('./chunk-IPDHNHPV.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 = _chunkT5VA2X3Ucjs.build; exports.clean = _chunkTSH67LLGcjs.clean; exports.cleanDirectories = _chunkTSH67LLGcjs.cleanDirectories; exports.cleanOutputPath = _chunkT5VA2X3Ucjs.cleanOutputPath; exports.copyBuildAssets = _chunkT5VA2X3Ucjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkRLEHE4MTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkT5VA2X3Ucjs.executeUnbuild; exports.generatePackageJson = _chunkT5VA2X3Ucjs.generatePackageJson; exports.loadConfig = _chunkRLEHE4MTcjs.loadConfig; exports.resolveOptions = _chunkT5VA2X3Ucjs.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-ZQJEXCIL.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BUEI6JDN.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-QIX42PK7.js";
|
|
15
|
+
import "./chunk-EYJ5TSXG.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-XMIMHZUN.js";
|
|
20
|
+
import "./chunk-EEINZJUK.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 _chunkQZS57WYBcjs = require('../chunk-QZS57WYB.cjs');
|
|
4
|
+
require('../chunk-IPDHNHPV.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunkQZS57WYBcjs.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 _chunk7YBUQPSPcjs = require('../chunk-7YBUQPSP.cjs');
|
|
4
|
+
require('../chunk-IPDHNHPV.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunk7YBUQPSPcjs.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 _chunkRLEHE4MTcjs = require('../chunk-RLEHE4MT.cjs');
|
|
4
|
+
require('../chunk-IPDHNHPV.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkRLEHE4MTcjs.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.77",
|
|
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.
|
|
150
|
+
"@storm-software/build-tools": "^0.158.77",
|
|
151
151
|
"@storm-software/config": "^1.135.0",
|
|
152
|
-
"@storm-software/config-tools": "^1.188.
|
|
152
|
+
"@storm-software/config-tools": "^1.188.77",
|
|
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": "d07f74f1d50951459260d2738dea47586e194f7f"
|
|
175
175
|
}
|