@storm-software/workspace-tools 1.175.6 → 1.177.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/CHANGELOG.md +15 -0
- package/index.js +20 -7
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/base-executor.js +7 -1
- package/src/base/index.js +7 -1
- package/src/executors/cargo-build/executor.js +7 -1
- package/src/executors/cargo-check/executor.js +7 -1
- package/src/executors/cargo-clippy/executor.js +7 -1
- package/src/executors/cargo-doc/executor.js +7 -1
- package/src/executors/cargo-format/executor.js +7 -1
- package/src/executors/clean-package/executor.js +7 -1
- package/src/executors/rolldown/executor.js +7 -1
- package/src/executors/rollup/executor.js +20 -7
- package/src/executors/size-limit/executor.js +7 -1
- package/src/executors/tsup/executor.js +7 -1
- package/src/executors/tsup-browser/executor.js +7 -1
- package/src/executors/tsup-neutral/executor.js +7 -1
- package/src/executors/tsup-node/executor.js +7 -1
- package/src/executors/typia/executor.js +7 -1
- package/src/executors/unbuild/executor.js +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## 1.177.0 (2024-09-08)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Added enhanced post executor logging
|
|
6
|
+
([6d7d2165](https://github.com/storm-software/storm-ops/commit/6d7d2165))
|
|
7
|
+
|
|
8
|
+
## 1.176.0 (2024-09-08)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
- **workspace-tools:** Added functionality to parse the `logLevel` during Rollup
|
|
13
|
+
build
|
|
14
|
+
([5e617be7](https://github.com/storm-software/storm-ops/commit/5e617be7))
|
|
15
|
+
|
|
1
16
|
## 1.175.6 (2024-09-08)
|
|
2
17
|
|
|
3
18
|
### Bug Fixes
|
package/index.js
CHANGED
|
@@ -331547,7 +331547,8 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
331547
331547
|
writeSuccess: writeSuccess2,
|
|
331548
331548
|
writeTrace: writeTrace2,
|
|
331549
331549
|
findWorkspaceRoot: findWorkspaceRoot2,
|
|
331550
|
-
loadStormConfig: loadStormConfig2
|
|
331550
|
+
loadStormConfig: loadStormConfig2,
|
|
331551
|
+
formatLogMessage: formatLogMessage2
|
|
331551
331552
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
331552
331553
|
const stopwatch = getStopwatch2(name);
|
|
331553
331554
|
let options = _options;
|
|
@@ -331621,6 +331622,11 @@ ${Object.keys(options).map(
|
|
|
331621
331622
|
ret
|
|
331622
331623
|
);
|
|
331623
331624
|
if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
|
|
331625
|
+
writeTrace2(
|
|
331626
|
+
`Failure determined by the ${name} executor
|
|
331627
|
+
${formatLogMessage2(result)}`,
|
|
331628
|
+
config
|
|
331629
|
+
);
|
|
331624
331630
|
throw new Error(`The ${name} executor failed to run`, {
|
|
331625
331631
|
cause: result?.error
|
|
331626
331632
|
});
|
|
@@ -341722,6 +341728,7 @@ async function* rollupExecutorFn(options, context, config) {
|
|
|
341722
341728
|
writeTrace: writeTrace2,
|
|
341723
341729
|
writeInfo: writeInfo2,
|
|
341724
341730
|
writeError: writeError2,
|
|
341731
|
+
writeWarning: writeWarning2,
|
|
341725
341732
|
formatLogMessage: formatLogMessage2,
|
|
341726
341733
|
findWorkspaceRoot: findWorkspaceRoot2,
|
|
341727
341734
|
correctPaths: correctPaths2
|
|
@@ -341790,7 +341797,15 @@ ${formatLogMessage2(options)}`, config);
|
|
|
341790
341797
|
rollupConfig: [],
|
|
341791
341798
|
projectRoot: context.projectGraph?.nodes[context.projectName]?.data.root,
|
|
341792
341799
|
skipTypeCheck: options.skipTypeCheck || false,
|
|
341793
|
-
logLevel: convertRollupLogLevel(config?.logLevel ?? "info")
|
|
341800
|
+
logLevel: convertRollupLogLevel(config?.logLevel ?? "info"),
|
|
341801
|
+
onLog: (level, log, defaultHandler) => {
|
|
341802
|
+
writeTrace2(log, config);
|
|
341803
|
+
},
|
|
341804
|
+
onwarn: (warning, defaultHandler) => {
|
|
341805
|
+
writeWarning2(warning, config);
|
|
341806
|
+
},
|
|
341807
|
+
perf: true,
|
|
341808
|
+
treeshake: true
|
|
341794
341809
|
};
|
|
341795
341810
|
const rollupOptions = await createRollupOptions(normalizedOptions, context);
|
|
341796
341811
|
const outfile = resolveOutfile(context, normalizedOptions);
|
|
@@ -341821,9 +341836,7 @@ ${formatLogMessage2(options)}`, config);
|
|
|
341821
341836
|
const start = process.hrtime.bigint();
|
|
341822
341837
|
const allRollupOptions = Array.isArray(rollupOptions) ? rollupOptions : [rollupOptions];
|
|
341823
341838
|
for (const opts of allRollupOptions) {
|
|
341824
|
-
const bundle = await rollup(
|
|
341825
|
-
...opts
|
|
341826
|
-
});
|
|
341839
|
+
const bundle = await rollup(opts);
|
|
341827
341840
|
const output3 = Array.isArray(opts.output) ? opts.output : [opts.output];
|
|
341828
341841
|
for (const o of output3) {
|
|
341829
341842
|
if (o) {
|
|
@@ -341891,9 +341904,9 @@ function convertRollupLogLevel(logLevel) {
|
|
|
341891
341904
|
switch (logLevel) {
|
|
341892
341905
|
case "info":
|
|
341893
341906
|
return "info";
|
|
341907
|
+
case "debug":
|
|
341894
341908
|
case "trace":
|
|
341895
341909
|
case "all":
|
|
341896
|
-
case "debug":
|
|
341897
341910
|
return "debug";
|
|
341898
341911
|
default:
|
|
341899
341912
|
return "warn";
|
|
@@ -341905,7 +341918,7 @@ function resolveOutfile(context, options) {
|
|
|
341905
341918
|
return (0, import_path3.resolve)(context.root, options.outputPath, `${name}.cjs.js`);
|
|
341906
341919
|
}
|
|
341907
341920
|
var executor_default3 = withRunExecutor(
|
|
341908
|
-
"Rollup build
|
|
341921
|
+
"Rollup build",
|
|
341909
341922
|
rollupExecutorFn,
|
|
341910
341923
|
{
|
|
341911
341924
|
skipReadingConfig: false,
|