Code Monkey home page Code Monkey logo

Comments (9)

mrgrain avatar mrgrain commented on June 25, 2024 1

Nice catch!

I don't like that rsync step anyway. Yet another reason to refactor it. Although if packaging runs, you're not running rsync. 🤔

One question though: How come you have a cdk.out directory in a construct library?

from projen.

mrgrain avatar mrgrain commented on June 25, 2024 1

I think this is a simple as adding cdk.out to .gitignore and .npmignore for the awscdk-construct project.

from projen.

suhussai avatar suhussai commented on June 25, 2024 1

Just need to add a line like this

this.npmignore?.include(".jsii");
to the awscdk-construct project here:
constructor(options: AwsCdkConstructLibraryOptions) {
right?

Let me know and I can prep a PR to do that.

from projen.

mrgrain avatar mrgrain commented on June 25, 2024 1

I've looked into this more. Long story short, anyone running integ tests should either

All three of these options already prevent this issue from happening. In particular CdkConfig adds the configured cdk out dir to .gitignore.


For anyone choosing a custom implementation (which is reasonable choice) it will be on them to ensure the implementation is complete. Given that we already have 3 viable options for this, I'm not keen to speculatively support custom implementations.

from projen.

suhussai avatar suhussai commented on June 25, 2024

The cdk.out dir must be coming from testing. To test the construct I'm building, I run this command in the root dir:

npx cdk deploy --app lib/my-construct/integ.default.js

where the integ.default.js file contains the CDK code that references the construct I'm building.

Here's an example of such a file: integ.default.ts

from projen.

suhussai avatar suhussai commented on June 25, 2024

Adding cdk.out to .npmignore (via .projenrc.ts) worked for me!

Thanks!

from projen.

mrgrain avatar mrgrain commented on June 25, 2024

Would love a PR for this 😉

from projen.

mrgrain avatar mrgrain commented on June 25, 2024

Yes that should be it. Run the build locally to update the snapshots and you are good to go!

from projen.

suhussai avatar suhussai commented on June 25, 2024

Thanks for the update. Apologies for dropping the ball on this one.

from projen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.