()
| 35 | * Check if the SDK is built by checking for the dist directory |
| 36 | */ |
| 37 | export function isSDKBuilt(): boolean { |
| 38 | try { |
| 39 | const sdkDistDir = path.join(__dirname, '../../../sdk/dist') |
| 40 | const possibleArtifacts = ['index.js', 'index.mjs', 'index.cjs'] |
| 41 | return possibleArtifacts.some((file) => |
| 42 | fs.existsSync(path.join(sdkDistDir, file)), |
| 43 | ) |
| 44 | } catch { |
| 45 | return false |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Sleep utility for async delays |
no outgoing calls
no test coverage detected