Skip to content

type-safe-api migration questions? #356

Answered by cogwirrel
zetashift asked this question in Q&A
Discussion options

You must be logged in to vote

It is published! :) You will need to add a dependency on the new package though as well as upgrading the other packages :) eg if you're using the nx-monorepo:

const monorepo = new NxMonorepoProject({
  name: "my-project",
  defaultReleaseBranch: "main",
  devDeps: ["aws-prototyping-sdk", "@aws-prototyping-sdk/type-safe-api"],
});

Also note that because it's a dependency that the .projenrc.ts makes use of, you need to do 2 passes with projen:

  • Add the dependency to the monorepo project, then npx projen to add the dependency
  • Now the dependency is added, you can import TypeSafeApiProject from @aws-prototyping-sdk/type-safe-api in your .projenrc.ts, configure it, and npx projen again

Hope th…

Replies: 6 comments 21 replies

Comment options

You must be logged in to vote
2 replies
@zetashift
Comment options

@cogwirrel
Comment options

Answer selected by zetashift
Comment options

You must be logged in to vote
2 replies
@cogwirrel
Comment options

@zetashift
Comment options

Comment options

You must be logged in to vote
3 replies
@cogwirrel
Comment options

@zetashift
Comment options

@cogwirrel
Comment options

Comment options

You must be logged in to vote
10 replies
@cogwirrel
Comment options

@zetashift
Comment options

@cogwirrel
Comment options

@zetashift
Comment options

@cogwirrel
Comment options

Comment options

You must be logged in to vote
2 replies
@cogwirrel
Comment options

@zetashift
Comment options

Comment options

You must be logged in to vote
2 replies
@cogwirrel
Comment options

@zetashift
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants