@storm-software/unbuild 0.35.2 → 0.36.0
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 +41 -24
- package/bin/unbuild.js +41 -24
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-3HGUCQU6.cjs → chunk-5XTLMOFH.cjs} +3 -3
- package/dist/{chunk-5FQVMM7I.cjs → chunk-A45F3XCO.cjs} +26 -15
- package/dist/{chunk-PLJQK2VX.js → chunk-A7ULBMR4.js} +26 -15
- package/dist/{chunk-Y7PS2HJA.cjs → chunk-AI7YECRT.cjs} +3 -3
- package/dist/{chunk-ZPWH22ZM.cjs → chunk-BZELKGMN.cjs} +2 -2
- package/dist/{chunk-2E6P5U5P.js → chunk-FLMNRVR2.js} +1 -1
- package/dist/{chunk-3M7GEZDL.js → chunk-FRURXT64.js} +1 -1
- package/dist/{chunk-KXDOKQLW.js → chunk-JONED24L.js} +20 -14
- package/dist/{chunk-N5KR37LU.cjs → chunk-MXG2QBLK.cjs} +2 -2
- package/dist/{chunk-44QVHNBQ.cjs → chunk-PX6F2F5P.cjs} +108 -102
- package/dist/{chunk-RFEZKCMQ.js → chunk-R6HJQ5XB.js} +1 -1
- package/dist/{chunk-L3WYWYD4.js → chunk-XRMMVXZP.js} +1 -1
- 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 +1 -1
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-RBYYB7X2.js";
|
|
4
4
|
import {
|
|
5
5
|
cleanDirectories
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FLMNRVR2.js";
|
|
7
7
|
import {
|
|
8
8
|
analyzePlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XRMMVXZP.js";
|
|
10
10
|
import {
|
|
11
11
|
onErrorPlugin
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R6HJQ5XB.js";
|
|
13
13
|
import {
|
|
14
14
|
loadConfig,
|
|
15
15
|
tscPlugin
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FRURXT64.js";
|
|
17
17
|
import {
|
|
18
18
|
COLOR_KEYS,
|
|
19
19
|
LogLevel,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
writeSuccess,
|
|
37
37
|
writeTrace,
|
|
38
38
|
writeWarning
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-A7ULBMR4.js";
|
|
40
40
|
import {
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-3GQAWCBQ.js";
|
|
@@ -243,10 +243,10 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
243
243
|
}, "getConfigFileByName");
|
|
244
244
|
var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
|
|
245
245
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
246
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
246
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
247
247
|
let config = result.config;
|
|
248
248
|
const configFile = result.configFile;
|
|
249
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
249
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
250
250
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
251
251
|
logLevel: "all"
|
|
252
252
|
});
|
|
@@ -255,9 +255,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
255
255
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
256
256
|
for (const result2 of results) {
|
|
257
257
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
259
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
260
|
+
logLevel: "all"
|
|
261
|
+
});
|
|
262
|
+
}
|
|
261
263
|
config = defu(result2.config ?? {}, config ?? {});
|
|
262
264
|
}
|
|
263
265
|
}
|
|
@@ -333,7 +335,8 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
333
335
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
334
336
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
335
337
|
},
|
|
336
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
338
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
339
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
337
340
|
};
|
|
338
341
|
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
339
342
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -568,6 +571,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
568
571
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
569
572
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
570
573
|
}
|
|
574
|
+
if (config.skipConfigLogging !== void 0) {
|
|
575
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
576
|
+
}
|
|
571
577
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
572
578
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
573
579
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
@@ -685,7 +691,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
685
691
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
686
692
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
687
693
|
if (!configFile && !skipLogs) {
|
|
688
|
-
writeWarning("No Storm
|
|
694
|
+
writeWarning("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", {
|
|
689
695
|
logLevel: "all"
|
|
690
696
|
});
|
|
691
697
|
}
|
|
@@ -723,8 +729,8 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
723
729
|
var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
724
730
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
725
731
|
setConfigEnv(config);
|
|
726
|
-
if (!skipLogs) {
|
|
727
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
732
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
733
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
728
734
|
${formatLogMessage(config)}`, config);
|
|
729
735
|
}
|
|
730
736
|
return config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA45F3XCOcjs = require('./chunk-A45F3XCO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
|
|
@@ -25,7 +25,7 @@ var analyzePlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
|
|
|
25
25
|
renderChunk(source, chunk) {
|
|
26
26
|
const sourceBytes = formatBytes(source.length);
|
|
27
27
|
const fileName = chunk.fileName;
|
|
28
|
-
|
|
28
|
+
_chunkA45F3XCOcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}, "analyzePlugin");
|