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

fix(cli): add ability to diff JavaScript files #1514

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joseph082
Copy link

@joseph082 joseph082 commented Sep 12, 2023

Closes #1513

I chose to make the diff command check for both TypeScript and JavaScript files. I did not use the tsx value in components.json to search for only TS or only JS files because if the diff command only used the tsx value to look for files, it wouldn't diff the use-toast.ts file when tsx is false due to an issue where .ts files aren't renamed to .js files, which is fixed by this PR #1466.

@vercel
Copy link

vercel bot commented Sep 12, 2023

@joseph082 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@shadcn
Copy link
Collaborator

shadcn commented Sep 19, 2023

We'll definitely need this. I'll label this and get back to it when I get back to implementing the diff command. Thanks @joseph082

@shadcn shadcn added enhancement New feature or request area: cli labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cli enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

diff command doesn't compare JavaScript files
2 participants