-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Remove postinstall step #28
Conversation
2ac21d3
to
d546898
Compare
Code LGTM. Could you please remove the package lock json file? |
Use a `prepare` hook instead of a `postinstall` hook to generate the `highlight_alias.json` file. This means that the file is generated during the publication of package to npm or when manually running `npm install` in the project directory. The previous behavior was to generate this step on the consumer side: this was the cause of numerous hard-to-reproduce issues due to the variety of environments. Closes hexojs#20 Closes hexojs#23 Closes hexojs#24
@NoahDragon
|
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
Hi, |
@demurgos will publish soon. |
Thanks 👍 |
@demurgos Published. |
I confirm that it fixed the issue on my system. |
Use a
prepare
hook instead of apostinstall
hook to generatethe
highlight_alias.json
file. This means that the file is generatedduring the publication of package to npm or when manually running
npm install
in the project directory.The previous behavior was to generate this step on the consumer
side: this was the cause of numerous hard-to-reproduce issues due
to the variety of environments.
Closes #20
Closes #23
Closes #24
Related to hexojs/hexo-cli#23
Related to hexojs/hexo#2095