-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Generating Code in Directory #19
Comments
Could you please clarify what you're trying to do? |
I already have code in my directory / repo, and I want to generate the types into a directory of an existing project. |
Looking at this further, it's awkward since the
|
@leezen I'm also in this group:
I want to integrate the generated files into an npm package containing our Pulumi abstractions so far. Generating a new npm package for each CRD one wants to generate code for, forces us into setting up a build pipeline & release process for each of these npm projects. |
I think this is important for some of the multi-language components we might want to build. It'll be super useful to be able to build this into the component libraries themself. |
same here. we are trying to integrate this into an existing package. it would be great if there's an option to disable generating an entire package or reading from package.json. |
I'm using the following command to generate Pulumi types for Cluster API components.
./crd2pulumi --nodejsName capp --nodejsPath ./src/capp ./capp-components.yaml --force
This creates a
utilities.{ts,js}
that has code for loading the Node version frompackage.json
.This code fails if the code is generated into a subdirectory of the node project.
It would be cool if we could provide another flag to provide a subpath to store the generated code
The text was updated successfully, but these errors were encountered: