-
Following the contributing guide here, it's a bit unclear what to do next after This is what I have attempted:
I couldn't get it build correctly, when i run
Also, for next step, how do I link the locally built pdk and start testing MyMicroserviceProject in /my/other/project folder? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey Cao, Thanks for reaching out! Are you looking to contribute a new package to PDK? Or do you just intend to use PDK for a project of your own? If If you're really looking to contribute a new module to PDK, here are some thoughts below: I've seen an issue like that before when building PDK and it was because I had some old For consuming local PDK in a test project, I'll often do something like this in my const monorepo = new MonorepoTsProject({
packageManager: NodePackageManager.PNPM,
devDeps: [
"@aws/pdk@file:/path/to/pdk/packages/pdk/dist/js/package",
],
name: "test",
projenrcTs: true,
});
monorepo.package.addPackageResolutions("@aws/pdk@file:/path/to/pdk/packages/pdk/dist/js/package"); To iterate I just run a build in Hope that helps, |
Beta Was this translation helpful? Give feedback.
Hey Cao,
Thanks for reaching out! Are you looking to contribute a new package to PDK? Or do you just intend to use PDK for a project of your own?
If
MyMicroserviceProject
is something you're not looking to contribute to PDK but rather something you'd like as part of your project, you can just define it in your.projenrc.ts
for that project, or even in a separate file likeprojenrc/my-microservice-project.ts
and consume it in your.projenrc.ts
.If you're really looking to contribute a new module to PDK, here are some thoughts below:
I've seen an issue like that before when building PDK and it was because I had some old
node_modules
- usually cleaning up the untracked files sorts this out (eg