//#region src/infra/is-main.ts
/**
* Check if the current module is the main entry point
*/
function isMainModule(options) {
	if (!!process.env.VITEST || !!process.env.TEST || !!"production"?.includes("test")) return false;
	try {
		return import.meta.url.startsWith("file:") && options.currentFile === process.argv[1];
	} catch {
		return false;
	}
}
//#endregion
export { isMainModule };

//# sourceMappingURL=is-main.js.map