@storm-software/workspace-tools 1.175.5 → 1.176.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 +25 -4
- 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 +25 -4
- 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.176.0 (2024-09-08)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Added functionality to parse the `logLevel` during Rollup
|
|
6
|
+
build
|
|
7
|
+
([5e617be7](https://github.com/storm-software/storm-ops/commit/5e617be7))
|
|
8
|
+
|
|
9
|
+
## 1.175.6 (2024-09-08)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **workspace-tools:** Resolved issue resolving plugins
|
|
14
|
+
([00448e95](https://github.com/storm-software/storm-ops/commit/00448e95))
|
|
15
|
+
|
|
1
16
|
## 1.175.5 (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
|
});
|
|
@@ -341789,7 +341795,8 @@ ${formatLogMessage2(options)}`, config);
|
|
|
341789
341795
|
main: options.entry,
|
|
341790
341796
|
rollupConfig: [],
|
|
341791
341797
|
projectRoot: context.projectGraph?.nodes[context.projectName]?.data.root,
|
|
341792
|
-
skipTypeCheck: options.skipTypeCheck || false
|
|
341798
|
+
skipTypeCheck: options.skipTypeCheck || false,
|
|
341799
|
+
logLevel: convertRollupLogLevel(config?.logLevel ?? "info")
|
|
341793
341800
|
};
|
|
341794
341801
|
const rollupOptions = await createRollupOptions(normalizedOptions, context);
|
|
341795
341802
|
const outfile = resolveOutfile(context, normalizedOptions);
|
|
@@ -341820,7 +341827,9 @@ ${formatLogMessage2(options)}`, config);
|
|
|
341820
341827
|
const start = process.hrtime.bigint();
|
|
341821
341828
|
const allRollupOptions = Array.isArray(rollupOptions) ? rollupOptions : [rollupOptions];
|
|
341822
341829
|
for (const opts of allRollupOptions) {
|
|
341823
|
-
const bundle = await rollup(
|
|
341830
|
+
const bundle = await rollup({
|
|
341831
|
+
...opts
|
|
341832
|
+
});
|
|
341824
341833
|
const output3 = Array.isArray(opts.output) ? opts.output : [opts.output];
|
|
341825
341834
|
for (const o of output3) {
|
|
341826
341835
|
if (o) {
|
|
@@ -341884,13 +341893,25 @@ async function createRollupOptions(options, context) {
|
|
|
341884
341893
|
}
|
|
341885
341894
|
return finalConfig;
|
|
341886
341895
|
}
|
|
341896
|
+
function convertRollupLogLevel(logLevel) {
|
|
341897
|
+
switch (logLevel) {
|
|
341898
|
+
case "info":
|
|
341899
|
+
return "info";
|
|
341900
|
+
case "debug":
|
|
341901
|
+
case "trace":
|
|
341902
|
+
case "all":
|
|
341903
|
+
return "debug";
|
|
341904
|
+
default:
|
|
341905
|
+
return "warn";
|
|
341906
|
+
}
|
|
341907
|
+
}
|
|
341887
341908
|
function resolveOutfile(context, options) {
|
|
341888
341909
|
if (!options.format?.includes("cjs")) return void 0;
|
|
341889
341910
|
const { name } = (0, import_path3.parse)(options.outputFileName ?? options.main);
|
|
341890
341911
|
return (0, import_path3.resolve)(context.root, options.outputPath, `${name}.cjs.js`);
|
|
341891
341912
|
}
|
|
341892
341913
|
var executor_default3 = withRunExecutor(
|
|
341893
|
-
"Rollup build
|
|
341914
|
+
"Rollup build",
|
|
341894
341915
|
rollupExecutorFn,
|
|
341895
341916
|
{
|
|
341896
341917
|
skipReadingConfig: false,
|