Skip to content

FIX: resolve npm path in prepare_package.py on Windows#1629

Merged
adrian-gavrila merged 1 commit intomicrosoft:mainfrom
adrian-gavrila:fix/prepare-package-npm-windows
Apr 17, 2026
Merged

FIX: resolve npm path in prepare_package.py on Windows#1629
adrian-gavrila merged 1 commit intomicrosoft:mainfrom
adrian-gavrila:fix/prepare-package-npm-windows

Conversation

@adrian-gavrila
Copy link
Copy Markdown
Contributor

Description

Discovered bug in build script while running step 6 (python build_scripts/prepare_package.py) of the v0.13.0 release process on Windows.

Tests and Documentation

Re-ran python build_scripts/prepare_package.py on Windows end-to-end after the fix — frontend dependencies install and the frontend bundle builds successfully.

On Windows, subprocess.run([
pm, ...]) fails with FileNotFoundError because
npm is actually npm.cmd. The resolved npm path from shutil.which(
pm) is
already stored in the
pm variable above — use it consistently.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@adrian-gavrila adrian-gavrila merged commit c903358 into microsoft:main Apr 17, 2026
39 checks passed
adrian-gavrila added a commit that referenced this pull request Apr 17, 2026
Co-authored-by: Adrian Gavrila <agavrila@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants