perf(test): avoid plugin-sdk barrel imports

This commit is contained in:
Peter Steinberger
2026-02-14 12:42:11 +00:00
parent 1ba266a8e8
commit 6543ce717c
23 changed files with 48 additions and 22 deletions

View File

@@ -11,9 +11,17 @@ const ciWorkers = isWindows ? 2 : 3;
export default defineConfig({
resolve: {
alias: {
"openclaw/plugin-sdk": path.join(repoRoot, "src", "plugin-sdk", "index.ts"),
},
// Keep this ordered: the base `openclaw/plugin-sdk` alias is a prefix match.
alias: [
{
find: "openclaw/plugin-sdk/account-id",
replacement: path.join(repoRoot, "src", "plugin-sdk", "account-id.ts"),
},
{
find: "openclaw/plugin-sdk",
replacement: path.join(repoRoot, "src", "plugin-sdk", "index.ts"),
},
],
},
test: {
testTimeout: 120_000,