@storm-software/workspace-tools 1.176.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.176.0",
3
+ "version": "1.177.0",
4
4
  "type": "commonjs",
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "repository": {
@@ -101678,6 +101678,7 @@ async function* rollupExecutorFn(options, context, config) {
101678
101678
  writeTrace: writeTrace2,
101679
101679
  writeInfo: writeInfo2,
101680
101680
  writeError: writeError2,
101681
+ writeWarning: writeWarning2,
101681
101682
  formatLogMessage: formatLogMessage2,
101682
101683
  findWorkspaceRoot: findWorkspaceRoot2,
101683
101684
  correctPaths: correctPaths2
@@ -101746,7 +101747,15 @@ ${formatLogMessage2(options)}`, config);
101746
101747
  rollupConfig: [],
101747
101748
  projectRoot: context.projectGraph?.nodes[context.projectName]?.data.root,
101748
101749
  skipTypeCheck: options.skipTypeCheck || false,
101749
- logLevel: convertRollupLogLevel(config?.logLevel ?? "info")
101750
+ logLevel: convertRollupLogLevel(config?.logLevel ?? "info"),
101751
+ onLog: (level, log, defaultHandler) => {
101752
+ writeTrace2(log, config);
101753
+ },
101754
+ onwarn: (warning, defaultHandler) => {
101755
+ writeWarning2(warning, config);
101756
+ },
101757
+ perf: true,
101758
+ treeshake: true
101750
101759
  };
101751
101760
  const rollupOptions = await createRollupOptions(normalizedOptions, context);
101752
101761
  const outfile = resolveOutfile(context, normalizedOptions);
@@ -101777,9 +101786,7 @@ ${formatLogMessage2(options)}`, config);
101777
101786
  const start = process.hrtime.bigint();
101778
101787
  const allRollupOptions = Array.isArray(rollupOptions) ? rollupOptions : [rollupOptions];
101779
101788
  for (const opts of allRollupOptions) {
101780
- const bundle = await rollup({
101781
- ...opts
101782
- });
101789
+ const bundle = await rollup(opts);
101783
101790
  const output = Array.isArray(opts.output) ? opts.output : [opts.output];
101784
101791
  for (const o of output) {
101785
101792
  if (o) {