import process from "node:process";
import path from "node:path";
import url from "node:url";

export default async function () {
    console.log("hello from foo node module");

    const cjsFileToImport = path.join(process.cwd(), "index.cjs");

    const cjsModule = await import(url.pathToFileURL(cjsFileToImport));

    console.log("cjsModule.cwd()", cjsModule.cwd());
}
