@storm-software/workspace-tools 1.68.7 → 1.68.9

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.68.7",
3
+ "version": "1.68.9",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -218907,9 +218907,9 @@ var _isFunction = (value) => {
218907
218907
  };
218908
218908
 
218909
218909
  // packages/workspace-tools/src/executors/rolldown/executor.ts
218910
- var import_child_process = require("child_process");
218911
218910
  async function rolldownExecutorFn(options, context, config) {
218912
218911
  const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
218912
+ const { rolldown } = await import("@storm-software/build-tools");
218913
218913
  writeInfo2(config, "\u{1F4E6} Running Storm build executor on the workspace");
218914
218914
  writeDebug2(
218915
218915
  config,
@@ -218924,33 +218924,11 @@ ${Object.keys(options).map(
218924
218924
  "The Build process failed because the context is not valid. Please run this command from a workspace."
218925
218925
  );
218926
218926
  }
218927
- const buildBin = require.resolve("@storm-software/build-tools/bin/build");
218928
- const args = [
218929
- `--project-root=${context.projectsConfigurations.projects?.[context.projectName]?.root}`,
218930
- `--project-name=${context.projectName}`,
218931
- `--source-root=${context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot}`
218932
- ];
218933
- if (options?.rolldownConfig) {
218934
- args.push(`--config-path=${options?.rolldownConfig}`);
218935
- }
218936
- const proc = (0, import_child_process.fork)(buildBin, ["rolldown", ...args], {
218937
- stdio: ["pipe", "pipe", "pipe", "ipc"],
218938
- cwd: config?.workspaceRoot
218939
- });
218940
- proc.stdout?.on("data", (message) => {
218941
- process.stdout.write(message);
218942
- });
218943
- proc.stderr?.on("data", (message) => {
218944
- process.stderr.write(message);
218945
- });
218946
- await new Promise((resolve, reject) => {
218947
- proc.on("exit", (code) => {
218948
- if (code !== 0) {
218949
- reject(new Error(`Rolldown process exited with code ${code}`));
218950
- } else {
218951
- resolve();
218952
- }
218953
- });
218927
+ await rolldown(config, {
218928
+ ...options,
218929
+ projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
218930
+ projectName: context.projectName,
218931
+ sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
218954
218932
  });
218955
218933
  writeSuccess2(config, "\u26A1 The Build process has completed successfully");
218956
218934
  return {