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

Refactor deprecated prepublish to prepack #26

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

timidak
Copy link
Contributor

@timidak timidak commented Nov 29, 2023

Problem

It seemed that my last change wasn't published, so I thought that the prepublish script didn't run before the publish of the last package. I did some research together with @pichfl and found out the prebublish lifecycle is deprecated and does not run before publish but after install or ci.

What I changed

After a quick chat with @pichfl we agreed that the prepack lifecycle hook (another option would be prepublishOnly) should do the magic (cf. npm docs), so I changed the script from prepublish to prepack.

@pichfl
Copy link
Collaborator

pichfl commented Nov 30, 2023

prepack seems to remain the best fit 👍

@winsmith winsmith merged commit 53db765 into TelemetryDeck:main Nov 30, 2023
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.

3 participants