Skip to content
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

[DOCS] type-safe-api python example changes .projenrc.py to .projenrc.ts #457

Closed
jstrunk opened this issue Jun 2, 2023 · 1 comment · Fixed by #461
Closed

[DOCS] type-safe-api python example changes .projenrc.py to .projenrc.ts #457

jstrunk opened this issue Jun 2, 2023 · 1 comment · Fixed by #461
Labels
documentation Improvements or additions to documentation

Comments

@jstrunk
Copy link
Contributor

jstrunk commented Jun 2, 2023

Describe the issue

I'm trying to use a type-safe-api and pipeline together in a python project. I was having trouble with dependencies, so I followed the example in the type-safe-api developer guide which shows to use nx-monorepo as well in my .projenrc.py. After running projen successfully, any other projen command fails with

👾 default | ts-node --project tsconfig.dev.json .projenrc.ts
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module './.projenrc.ts'

Links

https://aws.github.io/aws-prototyping-sdk/developer_guides/type-safe-api/index.html with the python tab.

@jstrunk jstrunk added the documentation Improvements or additions to documentation label Jun 2, 2023
cogwirrel added a commit that referenced this issue Jun 7, 2023
…typescript

Given that nx-monorepo currently only supports writing your .projenrc in TypeScript, we update the
docs accordingly. The examples still show how to set up projects for writing CDK and lambdas in the
respective languages.

fix #457
@cogwirrel
Copy link
Member

Thanks for catching this! nx-monorepo only supports using TypeScript to write your .projenrc at present, so the Python and Java .projenrc examples weren't accurate.

I'll update the docs with the .projenrc examples in TypeScript.

cogwirrel added a commit that referenced this issue Jun 7, 2023
…xists (#461)

* fix(type-safe-api): ensure generated java infrastructure resources dir exists during first build

Fixes an issue where `.api.json` couldn't be copied into the resources directory during first build
since the directory didn't exist.

* docs(type-safe-api): update java and python projenrc examples to use typescript

Given that nx-monorepo currently only supports writing your .projenrc in TypeScript, we update the
docs accordingly. The examples still show how to set up projects for writing CDK and lambdas in the
respective languages.

fix #457
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants