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

fix(types): publish protocol types to npm #5174

Merged
merged 2 commits into from Nov 16, 2019
Merged

Conversation

connorjclark
Copy link
Collaborator

see #5168

CONTRIBUTING.md Outdated
@@ -252,8 +252,9 @@ Releasing to npm consists of the following phases:
1. On your local machine, pull from [upstream](https://github.com/GoogleChrome/puppeteer) and make sure the last commit is the one just merged.
2. Run `git status` and make sure there are no untracked files.
- **WHY**: this is to avoid adding unnecessary files to the npm package.
3. Run [`npx pkgfiles`](https://www.npmjs.com/package/pkgfiles) to make sure you don't publish anything unnecessary.
4. Run `npm publish`. This publishes the `puppeteer` package.
3. Run `yarn` to make sure the latest `lib/protocol.d.ts` is generated.
Copy link
Member

Choose a reason for hiding this comment

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

Is there an easy way to do this that does not require installingyarn?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should work for npm install too. It's done in an install hook.

Could replace with npm run install / yarn install.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-Authored-By: Mathias Bynens <mathias@qiwi.be>
@mathiasbynens mathiasbynens merged commit d17708b into master Nov 16, 2019
@mathiasbynens mathiasbynens deleted the publish-protocol-types branch November 16, 2019 04:19
@mathiasbynens
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants