Update dependency cross-env to v10
Notable changes
- add support for default value syntax (152ae6a)
- You're using a modern maintained version of Node.js (v20+ is tested)
- You're only using the CLI (most of you are as that's the intended purpose)
- Replace Jest with Vitest for testing
- Convert all source files from .js to .ts with proper TypeScript types
- Use zshy for ESM-only builds (removes CJS support)
- Adopt @epic-web/config for TypeScript, ESLint, and Prettier
- Update to Node.js >=20 requirement
- Remove kcd-scripts dependency
- Add comprehensive e2e tests with GitHub Actions matrix testing
- Update GitHub workflow with caching and cross-platform testing
- Modernize documentation and remove outdated sections
- Update all dependencies to latest versions
- Add proper TypeScript declarations and exports
- This is a major rewrite that changes the module format from CommonJS to ESM-only. The package now requires Node.js >=20 and only exports ESM modules (not relevant in most cases).
kentcdodds/cross-env (cross-env)
v10.1.0
Features
- add support for default value syntax (152ae6a)
For example:
"dev:server": "cross-env wrangler dev --port ${PORT:-8787}",If PORT is already set, use that value, otherwise fallback to 8787.
Learn more about Shell Parameter Expansion
v10.0.0
TL;DR: You should probably not have to change anything if:
- You're using a modern maintained version of Node.js (v20+ is tested)
- You're only using the CLI (most of you are as that's the intended purpose)
In this release (which should have been v8 except I had some issues with automated releases 🙈), I've updated all the things and modernized the package. This happened in #261
Was this needed? Not really, but I just thought it'd be fun to modernize this package.
Here's the highlights of what was done.
- Replace Jest with Vitest for testing
- Convert all source files from .js to .ts with proper TypeScript types
- Use zshy for ESM-only builds (removes CJS support)
- Adopt @epic-web/config for TypeScript, ESLint, and Prettier
- Update to Node.js >=20 requirement
- Remove kcd-scripts dependency
- Add comprehensive e2e tests with GitHub Actions matrix testing
- Update GitHub workflow with caching and cross-platform testing
- Modernize documentation and remove outdated sections
- Update all dependencies to latest versions
- Add proper TypeScript declarations and exports
The tool maintains its original functionality while being completely modernized with the latest tooling and best practices
BREAKING CHANGES
- This is a major rewrite that changes the module format from CommonJS to ESM-only. The package now requires Node.js >=20 and only exports ESM modules (not relevant in most cases).
List of commits
53d5be8 (Update dependency cross-env to v10, 2026-11-16)