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