-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jsii): errors when invoking with a project root argument (#2351)
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]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information
1 parent
3120bf4
commit 9c66340
Showing
2 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters