-
-
Notifications
You must be signed in to change notification settings - Fork 805
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
✨ Add schema to gitmojis
#1263
✨ Add schema to gitmojis
#1263
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
By using the $schema the editors can more easily provide insight on missing properties rather than waiting for the user to run the lint
This would be helpful in the scenario where someone uses the API to download the gitmojis information, and want to override something locally on their machine. The $schema would help make sure other tools like gitmoji-cli keep working with the local customizations included.
7ecafdf
to
80ad80c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey!
Good catch 👏🏼
Otherwise if we imported any other path containing a "src" substring, it would fail the import
packages/gitmojis/package.json
Outdated
@@ -4,7 +4,9 @@ | |||
"description": "An emoji guide for your commit messages.", | |||
"main": "src/gitmojis.json", | |||
"files": [ | |||
"src/gitmojis.json" | |||
"src/gitmojis.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can drop this as it's already specified in types
:
"src/gitmojis.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it strange that we wouldn't need the types in the files
array, because the types
are declared on the package.json, but when we install the gitmojis
pagackage outside the monorepo, the types file isn't present, which would lead to difficulties for other people trying to use the gitmoji type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carloscuesta and I think that's a problem, actually, should I open an issue about it, or can we keep using this thread to discuss this?
750fbb9
to
cd340d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
thanks for the changes |
Description
Just read the commit messages, I go into detail on why I'm proposing those changes, if you want to discard the last commit (validation through API), and merging only the first one, I also wouldn't see any issue.
Linked issues