Skip to content

Support generating only type definitions #170

@aniravi24

Description

@aniravi24

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

When using the generated code from this library, I'm noticing that the outputs at runtime can be undefined. For example, grabbing the metadata column and depending on it in other resources can cause Pulumi to throw field is undefined errors and hang. I think my custom TypeScript config might be tripping it up, but the CRDs I have so far are already installed by helm charts and I don't need this library to manage them, I primarily want the types.

I use the default Pulumi setup (nodejs runtime, etc.) but the one thing I tweak is my tsconfig.

{
  "compilerOptions": {
    "experimentalDecorators": true,
    "forceConsistentCasingInFileNames": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "noEmit": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "pretty": true,
    "skipDefaultLibCheck": true,
    "skipLibCheck": true,
    "sourceMap": true,
    "strict": true,
    "target": "ESNext"
  },
  "include": ["./**/*.ts"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions