When shipping a new local debug iteration of the Chrome extension:
- Bump the version in both
package.jsonandextension/manifest.json. - Run
pnpm build. - Reload the extension in
chrome://extensions. - Hard refresh Discord with
Cmd+Shift+R. - Open the Discord page console and confirm the startup log:
[treem] capture loaded { version: "0.1.x", build: "0.1.x+..." }
Rules:
- Keep
package.jsonandextension/manifest.jsonon the same version. - Use a new patch version for each meaningful local debug round when the user needs to verify they are on the latest build.
- The Chrome Extensions UI version comes from
extension/manifest.json. - The content-script console log uses the package version plus a build timestamp.
- If the console still shows an older build stamp, the Discord tab is still running an old content script and needs a full refresh.
- This repo builds the unpacked extension into the
extension/folder. - The Discord page console is the fastest way to confirm which content-script build is active.