posthog-js 1.285.1 → 1.285.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -82,11 +82,12 @@ We have 2 options for linking this project to your local version: via [pnpm link
82
82
 
83
83
  #### local paths (preferred)
84
84
 
85
- - from whichever repo needs to require `posthog-js`, go to the `package.json` of that file, and replace the `posthog-js` dependency version number with `file:<relative_or_absolute_path_to_local_module>`
86
- - e.g. from the `package.json` within `posthog`, replace `"posthog-js": "1.131.4"` with `"posthog-js": "file:../posthog-js"`
87
- - run `pnpm install` from the root of the project in which you just created a local path
85
+ - run `pnpm build` and `pnpm package` in the root of this repo to generate a tarball of this project.
86
+ - run `pnpm -r update posthog-js@file:[ABSOLUTE_PATH_TO_POSTHOG_JS_REPO]/target/posthog-js.tgz` in the root of the repo that you want to link to (e.g. the posthog main repo).
87
+ - run `pnpm install` in that same repo
88
+ - run `cd frontend && pnpm run copy-scripts` if the repo that you want to link to is the posthog main repo.
88
89
 
89
- Then, once this link has been created, any time you need to make a change to `posthog-js`, you can run `pnpm build` from the `posthog-js` root and the changes will appear in the other repo.
90
+ Then, once this link has been created, any time you need to make a change to `posthog-js`, you can run `pnpm build && pnpm package` from the `posthog-js` root and the changes will appear in the other repo.
90
91
 
91
92
  #### `pnpm link`
92
93