- run with node 20 or above in the shell (use nvm to manage node versions)
- Run
npm install
to install dependencies.
Optionally:
- Lint and format using npm run lint
and npm run format
respectively.
- Install the CLI globally with
npm install -g .
This will expose the command sqlfluffjs
in the shell. The name of the command is set in package.json under the bin
key.
- Login to NPM using
npm login
- Update the version in
package.json
(npm version patch
etc. also work) - Update the package.json file as required: version, links, author, description, license, etc.
- Update the README.md file as required.
- Update the name of the command in the
bin
key inpackage.json
if required. - Run
npm publish
.
Its suggested to start with a version that includes @alpha
or @beta
to indicate that the package is not stable yet and allow some testing.