Open
Conversation
- Install env-cmd, remove cross-env - Create .env-cmdrc with dev (ports 8788/5174) and e2e (ports 8789/5175) profiles - Update root dev:server, dev:web, dev:desktop scripts to use env-cmd -e dev --no-override - Update playwright.config.ts webServer commands to use root npm scripts so e2e env vars injected by Playwright take precedence (--no-override) Co-authored-by: adam4813 <3011917+adam4813@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace cross-env with env-cmd in project setup
Replace cross-env with env-cmd
Aug 31, 2026
adam4813
marked this pull request as ready for review
August 31, 2026 19:20
adam4813
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cross-envis archived and lacks profile support. Replace withenv-cmdto enable named environment profiles for dev and e2e, with--no-overrideensuring e2e-injected vars take precedence over dev defaults.Changes
.env-cmdrc— new config with two profiles:dev: portsNOTES_PORT=8788,WEB_PORT=5174e2e: portsNOTES_PORT=8789,WEB_PORT=5175,NOTES_TOME=e2e-tomepackage.json—dev:server,dev:web,dev:desktopnow useenv-cmd -e dev --no-override;cross-envremoved fromdevDependenciesplaywright.config.ts— webServer commands changed from direct workspace scripts to rootnpm run dev:*scripts; Playwright'senvblock (e2e ports) wins over dev-profile defaults due to--no-overrideDuring e2e runs, Playwright injects
NOTES_PORT=8789before the child process starts;--no-overrideensures env-cmd's dev profile does not clobber it.