Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev-script): added npm run dev:win for Windows #6729

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ketsebaoteth
Copy link

This PR adds a new script dev:win specifically for Windows systems to address the issue where the NODE_ENV=development command does not work on non-Unix systems. The fix ensures the development environment variable is set correctly in Windows PowerShell.

Changes:

  • Added dev:win script to handle setting NODE_ENV on Windows.
  • Tested the fix to work in Microsoft Windows PowerShell.

Original Script:

"dev": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && NODE_ENV=development vite",

Updated Scripts:

For Unix-like systems:

"dev": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && NODE_ENV=development vite",

For Windows systems:

"dev:win": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && set NODE_ENV=development&& vite",

Changelog:

  • Added dev:win script to handle Windows-specific environment variable setting.

Testing:

  • The fix has been tested and confirmed to work in Microsoft Windows PowerShell.

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 9:36pm

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.

1 participant