-
Notifications
You must be signed in to change notification settings - Fork 115
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
Generate NodeJS SDK from schema #1151
Conversation
# Conflicts: # Makefile # provider/cmd/pulumi-gen-kubernetes/main.go # sdk/nodejs/extensions/v1beta1/Ingress.ts # sdk/nodejs/storage/v1beta1/CSINode.ts # sdk/nodejs/types/input.ts # sdk/nodejs/types/output.ts
typeString broken in yaml.ts
# Conflicts: # provider/cmd/pulumi-gen-kubernetes/main.go # provider/go.sum # tests/go.sum
files["path.ts"] = mustLoadFile(filepath.Join(templateDir, "path.ts")) | ||
files["tests/path.ts"] = mustLoadFile(filepath.Join(templateDir, "tests", "path.ts")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pgavlin These two files are not part of the user-facing SDK (i.e. I don't want them in the top level index.ts
. This has the side-effect of not including them in the package.json
list of files. Is this ok, or do you have another suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @lukehoban
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's okay. I think our JS doc generator relies upon public surface area being in package.json, but sounds like this is not public surface area. I don't know of anything else that relies on the files list in package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from your open question.
Proposed changes
Switch NodeJS code generation over to upstream codegen packages based on the schema.
Related issues (optional)
Fixes #1053