fix: restore bundled plugin discovery
parent
841dfc693e
commit
026e6c4df4
|
|
@ -5,9 +5,6 @@ import { fileURLToPath } from "node:url";
|
||||||
export function resolveBundledPluginsDir(): string | undefined {
|
export function resolveBundledPluginsDir(): string | undefined {
|
||||||
const override = process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR?.trim();
|
const override = process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR?.trim();
|
||||||
if (override) return override;
|
if (override) return override;
|
||||||
if ((process.env.VITEST || process.env.NODE_ENV === "test") && !override) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
// bun --compile: ship a sibling `extensions/` next to the executable.
|
// bun --compile: ship a sibling `extensions/` next to the executable.
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue