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

Don't run postinstall script if a project isn't using sku #794

Merged
merged 8 commits into from
May 16, 2023
Merged

Conversation

mrm007
Copy link
Contributor

@mrm007 mrm007 commented May 12, 2023

When installing dependencies for a brand new Next.js project with Braid and Vanilla Extract, sku will run its postinstall script even though it's not used in the project.

Braid has a peer dependency on sku and npm/pnpm 8 will auto install peer deps, so the postinstall script will be run.

@mrm007 mrm007 requested a review from a team as a code owner May 12, 2023 01:01
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2023

🦋 Changeset detected

Latest commit: bceae42

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sku Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@askoufis
Copy link
Contributor

The configuration and init fixtures are failing. I have a feeling that we could probably remove the skuSkipConfigure from the top-level package.json. I also wonder if we're checking the correct package JSON relative to where sku is running/being installed.

Copy link
Contributor

@askoufis askoufis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mrm007 mrm007 merged commit 6fb92c3 into master May 16, 2023
2 checks passed
@mrm007 mrm007 deleted the postinstall branch May 16, 2023 06:00
@seek-oss-ci seek-oss-ci mentioned this pull request May 16, 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.

None yet

2 participants