()
| 48 | } |
| 49 | |
| 50 | async function testMjs() { |
| 51 | console.log("🧪 Testing CommonJS build..."); |
| 52 | try { |
| 53 | await execa("node", ["./dist/index.mjs"], { |
| 54 | cwd: __dirname, |
| 55 | stdio: "inherit", |
| 56 | }); |
| 57 | console.log("✅ CommonJS test passed!"); |
| 58 | } catch (error) { |
| 59 | console.error("❌ CommonJS test failed:", error); |
| 60 | process.exit(1); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | async function testJs() { |
| 65 | console.log("🧪 Testing ES Module build..."); |