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 replace all bug in filePathFromProtoWithoutExtension #56

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

easyCZ
Copy link
Contributor

@easyCZ easyCZ commented Apr 2, 2018

This PR fixes a bug which occurs for users storing their proto definitions inside a .proto directory.

The bug is caused by filePathFromProtoWithoutExtension replacing all occurrences of .proto when renaming a file instead of just the file suffix.

A drive-by improvement to the documentation of ts-protoc-gen entry point.

@easyCZ easyCZ added the bug label Apr 2, 2018
@easyCZ easyCZ self-assigned this Apr 2, 2018
@jonnyreeves
Copy link
Contributor

LGTM, although I propose we move unit tests to sit alongside source files with a .spec.ts extension.

This would require a new npm script (npm run test:unit) and a change to the .npmignore to exclude *.spec.ts from being published to npm.

LMKWYT.

@jonny-improbable
Copy link
Contributor

@easyCZ did you want me to land this as-is - happy to do so.

@jonny-improbable jonny-improbable merged commit 047b4ff into master Apr 19, 2018
@jonny-improbable jonny-improbable deleted the bugfix/protoSuffixReplace branch April 19, 2018 06:12
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