openclaw/scripts/test-extension.mjs

12 lines
313 B
JavaScript
Raw Permalink Normal View History

2026-03-16 01:47:52 -07:00
import path from "node:path";
import { pathToFileURL } from "node:url";
import { main } from "./test-native-plugin.mjs";
2026-03-16 01:47:52 -07:00
export * from "./test-native-plugin.mjs";
2026-03-16 01:47:52 -07:00
const entryHref = process.argv[1] ? pathToFileURL(path.resolve(process.argv[1])).href : "";
if (import.meta.url === entryHref) {
await main();
2026-03-16 01:47:52 -07:00
}