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

Only read and parse .js and .tsx files in the commands folder #21

Merged
merged 3 commits into from
Jan 12, 2020

Conversation

zimme
Copy link
Contributor

@zimme zimme commented Jun 23, 2019

I accidentally put my tsconfig.json file in my commands folder and I saw that i got a cli tsconfig.json command which crashes the cli once I run it.

This PR will filter out any files in commands that is not a .js file or .tsx file.

This is based on #20. If you want to add this without the typescript support just remove the .tsx ext in this PR first.

@vadimdemedes
Copy link
Owner

Could you update this PR, so that we can see a clear diff without changes that are already in master?

@zimme
Copy link
Contributor Author

zimme commented Jun 25, 2019

Once #20 is merged, the diff will be clear. Some of the changes in here are using typescript stuff.

@zimme
Copy link
Contributor Author

zimme commented Jun 25, 2019

Aah ok, you're using rebase/squash and merge :D

I'll rebase on master and push again

lib/read-commands.js Outdated Show resolved Hide resolved
@zimme zimme force-pushed the filter-commands branch 2 times, most recently from b723827 to 2702b28 Compare June 25, 2019 12:33
@vadimdemedes vadimdemedes merged commit 0b883df into vadimdemedes:master Jan 12, 2020
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.

None yet

3 participants