basic approach with ```// somewhere in index.ts if...
# general
basic approach with
Copy code
// somewhere in index.ts
if (config.createServiceAccount) {
  const serviceAccount = new ...
  const serviceAccountKey = new ...
  export const serviceAccountPrivateKey = serviceAccountKey.PrivateKey
won't work, because 1. later I would need to access object props of, say, serviceAccount, but this variable scope is limited by
block 2. `export`'s seems to be not allowed in nested blocks in typescript