presto-client
This library was generated with Nx.
Building
To build the library using SWC, run the following command:
npm run build presto-client
Linting
To lint the library using ESLint, run the following command:
npm run lint presto-client
Publishing
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 stash
-
Start a private local registry using Verdaccio:
npm run local-registry presto-js-client
-
In another terminal, publish the new version by running the following command:
npm run publish:local presto-client
If 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.md
file was updated.presto-client/package.json
file was updated.
-
Visit http://localhost:4873 and ensure that @prestodb/presto-js-client
was pushed successfully to the private local registry, including the git tag, CHANGELOG.md
, and package.json
files reviewed above.
-
Now you can run npm i @prestodb/presto-js-client
in 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
Steps
-
Start by cleaning your workspace using the following command:
git stash
-
Publish a new version by running the following command:
npm run publish presto-client
If 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