You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which may lead to some confusion. Particularly since monorepo is already imported by the generation.
This is also apparent on the Your first AWS PDK Project page where there is an example of the code generated in an IDE and then the code example further down swaps from project to monorepo :
Unfortunately projen's codegen is a little primitive and doesn't allow renaming variables so it defaults to project. We rename the variable from project -> monorepo for better readability as project is a little vague. This is actually noted as an inline comment within the Type-Safe API snippet you posted above. Do you have a suggestion on how this could be made clearer?
Describe the issue
When vending a new project for typescript via:
You are vended the project as:
With
const project
as the monorepo name. And monorepo being an import from the@aws/pdk
project.Discrepancy
In the documentation for many pages, the
const monorepo
is used as the name (or expected to be used)i.e
Which may lead to some confusion. Particularly since
monorepo
is already imported by the generation.This is also apparent on the
Your first AWS PDK Project
page where there is an example of the code generated in an IDE and then the code example further down swaps fromproject
tomonorepo
:Links
https://aws.github.io/aws-pdk/getting_started/your_first_aws_pdk_project.html
https://aws.github.io/aws-pdk/developer_guides/cloudscape-react-ts-website/index.html
https://aws.github.io/aws-pdk/developer_guides/infrastructure/index.html
Pretty much wherever there is code snippets it's different to the generated code.
The text was updated successfully, but these errors were encountered: