Skip to content

feat(react-email, create-email): Use internal implementation for tree function instead of using tree-cli #1221

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

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

gabrielmfern
Copy link
Collaborator

@gabrielmfern gabrielmfern commented Jan 22, 2024

What was the issue?

Some time ago we switched from using tree-node-cli to using tree-cli as tree-node-cli was causing
issues for someone trying to download the CLI behind a corporate proxy.
The new library tree-cli though is unmaintained and seems to depend on some libraries
that were being caught by some security measures mentioned here #1153.

This fixes this by having our implementation of the tree functionality
both in create-email and in react-email which is not very hard to maintain
and comes along with tests to verify this works properly.

How can I test to make sure it's fixed?

  1. Run node src/index.js inside of ./packages/create-email
  2. Verify that the generated tree is appropriate

If you try running the export command from the CLI, which is the other place that depends on
this tree functionality, you will probably have an error here which #1214 fixes.

Closes #1153

@gabrielmfern gabrielmfern requested a review from vcapretz January 22, 2024 13:20
Copy link

vercel bot commented Jan 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-email ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 27, 2024 5:45pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
react-email-demo ⬜️ Ignored (Inspect) Visit Preview Feb 27, 2024 5:45pm

@michaelhays
Copy link

Hey @gabrielmfern, are we just waiting for a review to get this merged? Anything I can do to help?

vcapretz
vcapretz previously approved these changes Feb 27, 2024
@gabrielmfern gabrielmfern merged commit e72d089 into canary Feb 27, 2024
@gabrielmfern gabrielmfern deleted the feat/internal-implementation-of-tree branch February 27, 2024 18:08
@gabrielmfern
Copy link
Collaborator Author

@michaelhays Hey, heads up, we just released this under [email protected] and [email protected]. Let me know if things work out fine for you on these!

@michaelhays
Copy link

Thank you sir! I'll try them out!

gabrielmfern added a commit that referenced this pull request Mar 6, 2024
@michaelhays
Copy link

Following up, 2.1.1 no longer gives me the Snyk warnings 🙏 Thanks again!

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.

Consider migrating off unmaintained tree-cli
3 participants