()
| 34 | } |
| 35 | |
| 36 | async function testCjs() { |
| 37 | console.log("🧪 Testing CommonJS build..."); |
| 38 | try { |
| 39 | await execa("node", ["./dist/index.cjs"], { |
| 40 | cwd: __dirname, |
| 41 | stdio: "inherit", |
| 42 | }); |
| 43 | console.log("✅ CommonJS test passed!"); |
| 44 | } catch (error) { |
| 45 | console.error("❌ CommonJS test failed:", error); |
| 46 | process.exit(1); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | async function testMjs() { |
| 51 | console.log("🧪 Testing CommonJS build..."); |