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

fix(jsii): errors when invoking with a project root argument #2351

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

RomainMuller
Copy link
Contributor

There were two bugs pertaining to invoking jsii with a project root
argument (e.g: jsii path/to/project):

  • The positional argument was not correctly processed by yargs because
    it was not mentionned in the command description.
  • The project reference resolution code did not resolve relative paths
    from the correct starting point (cwd instead of the project root),
    resulting in compiler errors.

This change fixes both.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

There were two bugs pertaining to invoking `jsii` with a project root
argument (e.g: `jsii path/to/project`):

- The positional argument was not correctly processed by `yargs` because
  it was not mentionned in the `command` description.
- The project reference resolution code did not resolve relative paths
  from the correct starting point (`cwd` instead of the project root),
  resulting in compiler errors.

This change fixes both.
@RomainMuller RomainMuller self-assigned this Dec 14, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 14, 2020
@mergify
Copy link
Contributor

mergify bot commented Dec 14, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Dec 14, 2020
@mergify
Copy link
Contributor

mergify bot commented Dec 14, 2020

Merging (with squash)...

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
  • Commit ID: f5458da
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 9c66340 into main Dec 14, 2020
@mergify mergify bot deleted the rmuller/fix-jsii-cli branch December 14, 2020 18:37
@mergify
Copy link
Contributor

mergify bot commented Dec 14, 2020

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants