Package Exports
- @prestodb/presto-js-client
- @prestodb/presto-js-client/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@prestodb/presto-js-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
presto-client
This library was generated with Nx.
Building
To build the library using SWC, run the following command:
npm run build presto-clientLinting
To lint the library using ESLint, run the following command:
npm run lint presto-clientPublishing
Locally
To publish a new version to a private local registry, follow these steps:
Steps
Start by cleaning your workspace using the following command:
git stashStart a private local registry using Verdaccio:
npm run local-registry presto-js-clientIn another terminal, publish the new version by running the following command:
npm run publish:local presto-clientIf you're publishing a Pre-release version, run instead:
npm run publish:local presto-client -- --releaseAs=premajor|preminor|prepatch --preid=beta
Check the semver options for all available options.
If the output of the previous command is successful, check that:
- A new local git tag was generated.
presto-client/CHANGELOG.mdfile was updated.presto-client/package.jsonfile was updated.
Visit http://localhost:4873 and ensure that
@prestodb/presto-js-clientwas pushed successfully to the private local registry, including the git tag,CHANGELOG.md, andpackage.jsonfiles reviewed above.Now you can run
npm i @prestodb/presto-js-clientin any other project locally to test the released version before releasing it to NPM.
NPM
To publish a new version to NPM, follow these steps:
Pre-requisites
- Have a valid
NPM_TOKENwith write permissions to prestodb NPM organization. - Install GitHub CLI on your machine.
Steps
Start by cleaning your workspace using the following command:
git stashPublish a new version by running the following command:
npm run publish presto-clientIf you're publishing a Pre-release version, run instead:
npm run publish presto-client -- --releaseAs=premajor|preminor|prepatch --preid=beta
Check the semver options for all available options.
As part of the previous command, a draft GitHub release is also created. Go to GitHub Releases, review and edit it if necessary, and then click "Publish release" to make it public.
*If you published the package as a Pre-release version, please also mark the GitHub release as a "Pre-release."
Testing
To test the library using Jest, run the following command:
npm run test presto-client