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

chore(package.json): prevent publishing via NPM #2661

Merged
merged 1 commit into from
May 14, 2024

Conversation

zbynekstara
Copy link
Contributor

Description

Add a prepublishOnly script to prevent publishing via NPM. prepublishOnly scripts are called by NPM before publish when npm publish is called. These scripts are ignored by Yarn, allowing us to call yarn npm publish as intended.

Motivation and Context

Publishing via npm publish does not resolve workspace: protocols in dependencies, which leads to an error when our users try to install our packages.

Technically, this change is not necessary for joint-core (since it does not have any workspace: protocol dependencies), but I did it for it too for consistency.

@zbynekstara zbynekstara merged commit 66e3c6b into clientIO:master May 14, 2024
3 checks passed
@zbynekstara zbynekstara deleted the prevent-npm-publish branch May 14, 2024 13:10
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