Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Refactor deprecated prepublish to prepack#26

Merged
winsmith merged 1 commit into
TelemetryDeck:mainTelemetryDeck/JavaScriptSDK:mainfrom
timidak:fix-deprecated-prepublishtimidak/JavaScriptSDK:fix-deprecated-prepublishCopy head branch name to clipboard
Nov 30, 2023
Merged

Refactor deprecated prepublish to prepack#26
winsmith merged 1 commit into
TelemetryDeck:mainTelemetryDeck/JavaScriptSDK:mainfrom
timidak:fix-deprecated-prepublishtimidak/JavaScriptSDK:fix-deprecated-prepublishCopy head branch name to clipboard

Conversation

@timidak

@timidak timidak commented Nov 29, 2023

Copy link
Copy Markdown
Contributor

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

pichfl commented Nov 30, 2023

Copy link
Copy Markdown
Collaborator

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.