burner-cc 0.3.2 → 0.3.3
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/package.json +1 -1
- package/src/install.js +6 -4
package/package.json
CHANGED
package/src/install.js
CHANGED
|
@@ -32,16 +32,18 @@ function pathNorm(p) {
|
|
|
32
32
|
return path.resolve(p).replace(/\\/g, '/').toLowerCase();
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/** True when
|
|
35
|
+
/** True when this process is the burner repo checkout, not npm's installed `burner-cc` package. */
|
|
36
36
|
export function isDevCheckout() {
|
|
37
37
|
const entry = process.argv[1] ? path.resolve(process.argv[1]) : '';
|
|
38
|
-
|
|
38
|
+
if (!entry || pathNorm(entry) !== pathNorm(BIN)) return false;
|
|
39
|
+
const pkgRoot = pathNorm(path.resolve(__dirname, '..'));
|
|
40
|
+
return !/\/node_modules\/burner-cc$/.test(pkgRoot);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
/**
|
|
43
|
+
/** Command for skills/hooks: always `node` + absolute burner.js (works without `burner` on PATH). */
|
|
42
44
|
export function burnerShell(sub = '') {
|
|
43
45
|
const tail = sub ? ` ${sub}` : '';
|
|
44
|
-
return
|
|
46
|
+
return `${nodeCmd()}${tail}`;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
/** Paste into Claude Code / Cursor chat if /burner-tag is missing after you changed categories. */
|