mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 01:50:41 +00:00
build: exclude private QA from npm package
This commit is contained in:
8
src/cli/program/private-qa-cli.ts
Normal file
8
src/cli/program/private-qa-cli.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function isPrivateQaCliEnabled(env: NodeJS.ProcessEnv = process.env): boolean {
|
||||
return env.OPENCLAW_ENABLE_PRIVATE_QA_CLI === "1";
|
||||
}
|
||||
|
||||
export function loadPrivateQaCliModule(): Promise<Record<string, unknown>> {
|
||||
const specifier = ["../../plugin-sdk/", "qa", "-lab.js"].join("");
|
||||
return import(specifier) as Promise<Record<string, unknown>>;
|
||||
}
|
||||
Reference in New Issue
Block a user