mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 17:04:58 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -3,7 +3,7 @@ import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
export function resolveBundledHooksDir(): string | undefined {
|
||||
const override = process.env.CLAWDBOT_BUNDLED_HOOKS_DIR?.trim();
|
||||
const override = process.env.OPENCLAW_BUNDLED_HOOKS_DIR?.trim();
|
||||
if (override) return override;
|
||||
|
||||
// bun --compile: ship a sibling `hooks/bundled/` next to the executable.
|
||||
@@ -16,7 +16,7 @@ export function resolveBundledHooksDir(): string | undefined {
|
||||
}
|
||||
|
||||
// npm: resolve `<packageRoot>/dist/hooks/bundled` relative to this module (compiled hooks).
|
||||
// This path works when installed via npm: node_modules/moltbot/dist/hooks/bundled-dir.js
|
||||
// This path works when installed via npm: node_modules/openclaw/dist/hooks/bundled-dir.js
|
||||
try {
|
||||
const moduleDir = path.dirname(fileURLToPath(import.meta.url));
|
||||
const distBundled = path.join(moduleDir, "bundled");
|
||||
|
||||
Reference in New Issue
Block a user