Package Exports
- posthog-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 (posthog-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostHog.js
Please see the main PostHog docs.
Specifically, the JS integration details.
Testing
Unit tests: run yarn test
Cypress: yarn cypress
Developing together with another repo
Update dependency in package.json to e.g. "posthog-js": "link:../posthog-js"
, yarn
and run yarn build && yarn build-module
Releasing a new version
To release a new version, make sure you're logged in to NPM (npm login
)
We tend to follow the following steps:
- Merge your changes into master
- Release changes as a beta version
npm version 1.x.x-beta.0
npm publish --tag beta
git push --tags
- Create a PR linking to this version in the main repo
- Once deployed and tested, write up CHANGELOG.md, and commit.
- Release a new version
npm version 1.x.x
npm publish
git push --tags
- Create a PR linking to this version in the main repo