Skip to content

windows support via cross-env #1059

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

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

Conversation

jkroepke
Copy link

@jkroepke jkroepke commented Jun 1, 2025

Add out of the box experience for windows users.

Signed-off-by: Jan-Otto Kröpke <[email protected]>
@Copilot Copilot AI review requested due to automatic review settings June 1, 2025 06:53
@jkroepke jkroepke requested a review from a team as a code owner June 1, 2025 06:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds cross-platform environment variable support for Windows by incorporating cross-env into test-related scripts.

  • Updated ci-test and test scripts to prefix environment variables with cross-env
  • Added cross-env to dependencies for out-of-the-box Windows compatibility

@@ -24,15 +24,15 @@
},
"scripts": {
"bundle": "npm run format:write && npm run package",
"ci-test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
"ci-test": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
Copy link
Preview

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The ci-test and test scripts are nearly identical; consider extracting the common invocation into a shared npm script (e.g., env-test) to reduce duplication.

Suggested change
"ci-test": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
"ci-test": "npm run env-test",
"env-test": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",

Copilot uses AI. Check for mistakes.

@@ -50,6 +50,7 @@
"@types/node": "^20.17.48",
"@typescript-eslint/eslint-plugin": "^8.32.1",
"@typescript-eslint/parser": "^8.32.1",
"cross-env": "^7.0.3",
Copy link
Preview

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider updating the project README to note the addition of cross-env and clarify that Windows users can now run scripts without manual environment setup.

Copilot uses AI. Check for mistakes.

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