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

Publish to npm #7

Merged
merged 5 commits into from
Mar 30, 2022
Merged

Publish to npm #7

merged 5 commits into from
Mar 30, 2022

Conversation

ajhyndman
Copy link
Member

This diff configures the package.json file for publication to npm.

  • Adds the @dropbox-performance scope to the package name
  • Adds a "module" entrypoint for ES2015 consumption
  • Adds a "files" key to exclude all other files from the distributed artifacts
  • Defines a "release" script using the library np (https://www.npmjs.com/package/np).

To release a new version:

$ npm login # authenticate with npm
$ npm run release -- [version]

To publish a test version (e.g. 0.0.2-2):

$ npm login # authenticate with npm
$ npm run release -- 0.0.2-2 --tag=test --any-branch 

@ajhyndman ajhyndman mentioned this pull request Mar 25, 2022
@ajhyndman ajhyndman force-pushed the test-playwright-express branch 2 times, most recently from 476d9ec to 67241ed Compare March 26, 2022 04:06
@ajhyndman ajhyndman changed the base branch from test-playwright-express to main March 29, 2022 20:28
@ajhyndman ajhyndman merged commit fed193f into main Mar 30, 2022
@ajhyndman ajhyndman deleted the publish-to-npm branch March 30, 2022 01:29
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