Skip to content

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

Merged
vadimdemedes merged 3 commits into
vadimdemedes:masterfrom
zimme:filter-commands
Jan 12, 2020
Merged

Only read and parse .js and .tsx files in the commands folder#21
vadimdemedes merged 3 commits into
vadimdemedes:masterfrom
zimme:filter-commands

Conversation

@zimme
Copy link
Copy Markdown
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
Copy Markdown
Owner

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

@zimme
Copy link
Copy Markdown
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
Copy Markdown
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

@zimme zimme force-pushed the filter-commands branch from fd3cd53 to 4f5f383 Compare June 25, 2019 12:28
Comment thread lib/read-commands.js Outdated
@zimme zimme force-pushed the filter-commands branch 2 times, most recently from b723827 to 2702b28 Compare June 25, 2019 12:33
@zimme zimme force-pushed the filter-commands branch from 2702b28 to f945bf1 Compare June 25, 2019 12:39
@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.

3 participants