fix(cli): resolve bundled chrome extension path

This commit is contained in:
Kelvin Calcano
2026-02-04 11:55:54 -04:00
committed by Peter Steinberger
parent 3b40227bc6
commit 0621d0e9e8
2 changed files with 13 additions and 63 deletions
+5 -1
View File
@@ -14,7 +14,11 @@ import { formatCliCommand } from "./command-format.js";
function bundledExtensionRootDir() {
const here = path.dirname(fileURLToPath(import.meta.url));
return path.resolve(here, "../../assets/chrome-extension");
// `dist/` lives at `<packageRoot>/dist` in npm installs.
// The bundled extension lives at `<packageRoot>/assets/chrome-extension`.
// So we need to go up ONE level from `dist`.
return path.resolve(here, "../assets/chrome-extension");
}
function installedExtensionRootDir() {