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

chore: upgrade jsii rosetta dependency #1646

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aripalo
Copy link
Contributor

@aripalo aripalo commented Nov 19, 2024

Fixes #1643

This PR is built on top of PR #1645 (which was a requirement for me to get the cli.test.ts to pass). So before merging this, makes sense to merge #1645 (and so close #1644).

When using NodeJS version managers like [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm), the NodeJS binary location can be a bit "funny".

For example on macOS with fnm, the NodeJS binary path may contain folder `Application Support` which has a space in it.

Wrapping the process.execPath interpolated value into quotes solves this.
@aripalo
Copy link
Contributor Author

aripalo commented Nov 19, 2024

Note: There was several warnings from JSII during npx projen build about peer dependencies and types, but these same exact warnings are surfaced also from the main branch of jsii-docgen:

warning JSII6: A "peerDependency" on "@aws-cdk/aws-s3" at "^1.110.1" means you should take a "devDependency" on "@aws-cdk/aws-s3" at "1.110.1" (found "undefined")
warning JSII6: A "peerDependency" on "@aws-cdk/core" at "^1.110.1" means you should take a "devDependency" on "@aws-cdk/core" at "1.110.1" (found "undefined")
lib/index.ts:3:1 - warning JSII5: The type "constructs.Construct" is exposed in the public API of this module. Therefore, the module "constructs" must also be defined under "peerDependencies". This will be auto-corrected unless --no-fix-peer-dependencies was specified.

  3 export class GreeterBucket extends s3.Bucket {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4

...
 11   }
    ~~~
 12 }
    ~
lib/submod1/index.ts:3:1 - warning JSII5: The type "constructs.Construct" is exposed in the public API of this module. Therefore, the module "constructs" must also be defined under "peerDependencies". This will be auto-corrected unless --no-fix-peer-dependencies was specified.

  3 export class GoodbyeBucket extends s3.Bucket {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4

...
 11   }
    ~~~
 12 }
    ~

So they seem to be the just the state of things in the main branch too.

@iliapolo
Copy link
Contributor

@aripalo once conflicts are resolved we can merge this. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsii-rosetta peer dependency outdated cli.test.ts fails if process.execPath contains spaces
2 participants