Please make sure you have the following installed before starting:
pnpm(>3)node(>14)
Internally, Jitsu SDK uses:
- Husky to execute pre-commit hooks
- PNPM workspaces to manage internal dependencies
- Turborepo to run builds and test
pnpm install- to install all dependenciespnpm clean- to clean all artifactspnpm factory-reset- to do a "factory reset": remove all installed dependencies, etcpnpm build- build all packagespnpm test- test all packagespnpm format:check- check code style (with prettier)pnpm format- fix code style (with prettier)
Obtain an automation npm token. Use jitsuhq account, not an individual one.
NPN_TOKEN=XXX pnpm release --stable X.Y.Z --publish- to make a stable releaseNPN_TOKEN=XXX pnpm release:canary --publish- to make a canary release. The version will beX.Y.Z.alpha.N. See the current value forX.Y.Zinpackage.json
Run without --publish to dry run.
- Husky runs
pnpm pre-commitbefore each commit. Currentlypre-commitonly checks code format with prettier. Run it separately to withpnpm format:check - Dagger runs
pnpm ci. This command:- Runs build and test
- Publishes canary version to npm