LearnNewsExamplesServices
Frontmatter
id7796
titleEnhance build scripts for Windows compatibility
stateClosed
labels
enhancementwindowsdeveloper-experienceai
assigneestobiu
createdAtNov 18, 2025, 8:59 PM
updatedAtNov 18, 2025, 9:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/7796
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 18, 2025, 9:00 PM

Enhance build scripts for Windows compatibility

Closed v11.5.0 enhancementwindowsdeveloper-experienceai
tobiu
tobiu commented on Nov 18, 2025, 8:59 PM

Description

The build scripts createApp.mjs, createAppMinimal.mjs, and the Webpack configuration files (webpack.config.main.mjs) use spawnSync('node', ...) or direct string commands assuming node is available. This can cause issues on Windows environments where node.exe is often required. To ensure cross-platform compatibility, we should use a platform-aware command for the Node.js binary.

Goal

Update buildScripts/createApp.mjs, buildScripts/createAppMinimal.mjs, and relevant Webpack configuration files to dynamically determine the Node.js command (node or node.exe) based on the operating system.

Acceptance Criteria

  1. Define nodeCmd in buildScripts/createApp.mjs and buildScripts/createAppMinimal.mjs to handle Windows (node.exe) vs. other platforms (node).
  2. Replace spawnSync('node', ...) calls with spawnSync(nodeCmd, ...) in these files.
  3. Update buildScripts/webpack/production/webpack.config.main.mjs and buildScripts/webpack/development/webpack.config.main.mjs to use nodeCmd in WebpackHookPlugin commands.
tobiu added the enhancement label on Nov 18, 2025, 8:59 PM
tobiu added the windows label on Nov 18, 2025, 8:59 PM
tobiu added the developer-experience label on Nov 18, 2025, 8:59 PM
tobiu added the ai label on Nov 18, 2025, 8:59 PM
tobiu assigned to @tobiu on Nov 18, 2025, 8:59 PM
tobiu referenced in commit cb445d9 - "Enhance build scripts for Windows compatibility #7796" on Nov 18, 2025, 9:00 PM
tobiu closed this issue on Nov 18, 2025, 9:00 PM