it's definitely not pretty, but this works for bui...
# kubernetes
i
it's definitely not pretty, but this works for building more esm-compatible code from the output of crd2pulumi:
Copy code
crd2pulumi --nodejsPath gen *.yaml
cd gen
npm i --ignore-scripts
bunx tsc-esm-fix --src='{cert_manager/**,traefik/**,types/**,.}/*.ts' --ext='.js'
bunx tsc --emitDeclarationOnly --outDir ../bundle
bun build index.ts --packages external --outfile ../bundle/index.js