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

change postinstall to pretest script. #73

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

keithamus
Copy link
Member

@keithamus keithamus commented Nov 3, 2023

Fixes #72

package.json Outdated
@@ -27,6 +27,7 @@
"bench": "node bench",
"lint": "eslint --ignore-path .gitignore .",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"pretest": "npx playwright install",
Copy link
Contributor

Choose a reason for hiding this comment

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

scripts already have the npm binaries in PATH right? maybe this doesn't need npx? or is it this way because we may not have playwright installed as a dependency?

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, but yes it seems playright isn't a direct devdep so I think this is probably best to keep as is?

Copy link
Contributor

Choose a reason for hiding this comment

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

yup i think so, if it isn't a direct dependency npx will ask to install it at least

@keithamus keithamus merged commit 11c9aa9 into main Nov 3, 2023
6 checks passed
@keithamus keithamus deleted the change-`postinstall`-to-`pretest`-script branch November 3, 2023 15:44
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.

prevent playwright installation
2 participants