openclaw/scripts/check-plugin-extension-import-boundary.mjs
2026-03-20 09:30:16 +01:00

12 lines
361 B
JavaScript

import path from "node:path";
import { pathToFileURL } from "node:url";
import { main } from "./check-plugin-native-plugin-import-boundary.mjs";
export * from "./check-plugin-native-plugin-import-boundary.mjs";
const entryHref = process.argv[1] ? pathToFileURL(path.resolve(process.argv[1])).href : "";
if (import.meta.url === entryHref) {
await main();
}