2026-03-16 01:47:52 -07:00
|
|
|
import path from "node:path";
|
2026-03-20 09:30:16 +01:00
|
|
|
import { pathToFileURL } from "node:url";
|
|
|
|
|
import { main } from "./test-native-plugin.mjs";
|
2026-03-16 01:47:52 -07:00
|
|
|
|
2026-03-20 09:30:16 +01: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) {
|
2026-03-20 09:30:16 +01:00
|
|
|
await main();
|
2026-03-16 01:47:52 -07:00
|
|
|
}
|