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

refactor: replace shell commands with filesystem API in project creation #2817

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

AsterisMono
Copy link
Contributor

@AsterisMono AsterisMono commented Oct 19, 2024

Please verify the following:

  • yarn test jest tests pass with new tests, if relevant
  • yarn lint eslint checks pass with new code, if relevant
  • yarn format:check prettier checks pass with new code, if relevant
  • README.md (or relevant documentation) has been updated with your changes
  • If this affects functionality there aren't tests for, I manually tested it, including by generating a new app locally if needed (see docs).

Describe your PR

Fixes #2816.

This PR replaces the rm and mv shell commands in project creation with gluegun (fs-jetpack) filesystem calls to ensure compatibility with Windows (Since there's no mv and rm in Windows CMD).

@AsterisMono AsterisMono changed the title refactor: replace shell commands with filesystem API refactor: replace shell commands with filesystem API in project creation Oct 19, 2024
@frankcalise
Copy link
Contributor

Thanks for this! We will try and get it tested soon

Copy link
Contributor

@joshuayoes joshuayoes left a comment

Choose a reason for hiding this comment

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

I did some testing but I realized I was testing on the wrong branch, disregard this review.

Copy link
Contributor

@joshuayoes joshuayoes left a comment

Choose a reason for hiding this comment

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

I was able to reproduce the issue with the Expo Router flow on Windows

Copy link
Contributor

@joshuayoes joshuayoes left a comment

Choose a reason for hiding this comment

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

Gave this a test, the Expo Router workflow works on Windows ✅

Copy link
Contributor

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

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

Thank you!

@frankcalise frankcalise merged commit fd0a418 into infinitered:master Oct 29, 2024
1 check passed
infinitered-circleci pushed a commit that referenced this pull request Oct 29, 2024
## [10.0.2](v10.0.1...v10.0.2) (2024-10-29)

### Bug Fixes

* **boilerplate:** expo-router keyboard provider + theme fix ([#2825](#2825) by [@frankcalise](https://github.com/frankcalise)) ([f82f324](f82f324))
* **cli:** add --legacy-peer-deps for npm users ([#2823](#2823) by [@frankcalise](https://github.com/frankcalise)) ([e59d880](e59d880))
* **cli:** fix issue with workflow prompt values ([#2821](#2821) by [@frankcalise](https://github.com/frankcalise)) ([f2cdd00](f2cdd00))
* **cli:** replace shell commands with filesystem API ([#2817](#2817) by @AsterisMono) ([fd0a418](fd0a418))
@infinitered-circleci
Copy link

🎉 This PR is included in version 10.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignite project creation is broken on Windows
4 participants