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: add prepublish #23

Merged
merged 2 commits into from
Jan 19, 2024
Merged

fix: add prepublish #23

merged 2 commits into from
Jan 19, 2024

Conversation

ryanwolhuter
Copy link
Contributor

It is easy to forget to run yarn build when publishing the lib.

According to the npm scripts docs, the current best practice for this is to use the prepublishOnly script for this. The prepare script also runs on yarn install which is not what we want.

I have also modified the spacing in the rootIndex template. We want to run yarn generate before linting in the document-model-libs, and those index files are not part of /gen and are therefore seen by eslint and prettier. I have updated the spacing to match what prettier wants, because otherwise the generated files would keep on triggering the linting.

Signed-off-by: ryanwolhuter <dev@ryanwolhuter.com>
Signed-off-by: ryanwolhuter <dev@ryanwolhuter.com>
@ryanwolhuter ryanwolhuter requested a review from acaldas January 19, 2024 12:27
@ryanwolhuter ryanwolhuter merged commit aa72762 into main Jan 19, 2024
2 checks passed
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.

2 participants