-
Notifications
You must be signed in to change notification settings - Fork 748
fix(cli): rename bin entry from lingo.dev to lingo for Windows 11 compatibility #1759
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes Windows 11 compatibility issues by renaming the CLI command from lingo.dev to lingo and improving glob package imports for better cross-platform support.
Changes:
- Renamed bin entry from
lingo.devtolingoin package.json to resolve Windows 11 shell script path issues - Changed glob imports from named imports to namespace imports for better compatibility
- Fixed code formatting inconsistencies in bucket path pattern matching
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/cli/package.json | Updated bin entry from lingo.dev to lingo for Windows 11 compatibility |
| packages/cli/src/cli/utils/find-locale-paths.ts | Changed glob import to namespace import and fixed empty catch block formatting |
| packages/cli/src/cli/utils/find-locale-paths.spec.ts | Updated test file to match new glob import pattern |
| packages/cli/src/cli/utils/buckets.ts | Changed glob import to namespace import and reformatted regexp string concatenation |
| packages/cli/src/cli/utils/buckets.spec.ts | Updated test file to use namespace import for glob |
| packages/cli/src/cli/utils/ensure-patterns.ts | Removed unused glob import |
| packages/cli/tsup.config.ts | Added "glob" to external dependencies list |
| .changeset/cute-icons-write.md | Added changeset documenting the CLI command fix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| resolveLocaleCode(locale as LocaleCode); | ||
| return { locale, file }; | ||
| } catch (e) {} | ||
| } catch (e) { } |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty catch block silently swallows errors. Consider logging the error or adding a comment explaining why it's safe to ignore exceptions here.
| } catch (e) { } | |
| } catch (e) { | |
| // Intentionally ignore invalid locale candidates and try the next one. | |
| } |
Summary
Fix CLI command script for Windows 11 compatibility by renaming command from
lingo.devtolingo, which resolves shell script path issues and improves bucket path resolutionChanges
lingo.devtolingoin package.json bin field to fix Windows 11 execution issue and shell script path referencesTesting
Business logic tests added:
npx lingocommand works on Windows 11 (fixes issue 🐞 [BUG REPORT] ~ Issue withnpx lingo.devcommand is not working on Windows 11 #1521)lingo.dev/bin/cli.mjspath (fixes issue correct code #1606)Visuals
Required for UI/UX changes:
Checklist
Closes #1521
Closes #1606