()
| 20 | } |
| 21 | |
| 22 | async function buildTsc() { |
| 23 | console.log("🔨 Building project with tsc..."); |
| 24 | try { |
| 25 | await execa("tsc", ["--project", "tsconfig.build.json"], { |
| 26 | cwd: __dirname, |
| 27 | stdio: "inherit", |
| 28 | }); |
| 29 | // console.log('✅ Build completed successfully!'); |
| 30 | } catch (error) { |
| 31 | console.error("❌ Error building project:", error); |
| 32 | process.exit(1); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | async function testCjs() { |
| 37 | console.log("🧪 Testing CommonJS build..."); |