Skip to content

Refactor deprecated prepublish to prepack#26

Merged
winsmith merged 1 commit intoTelemetryDeck:mainfrom
timidak:fix-deprecated-prepublish
Nov 30, 2023
Merged

Refactor deprecated prepublish to prepack#26
winsmith merged 1 commit intoTelemetryDeck:mainfrom
timidak:fix-deprecated-prepublish

Conversation

@timidak
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

pichfl commented Nov 30, 2023

prepack seems to remain the best fit 👍

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