forked from andoshin11/typescript-error-reporter-action
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add project param and load TSC from project
- project param can be used to specify location of the tsc project - will use locally installed typescript module and then fallback to CDN
- Loading branch information
Showing
6 changed files
with
111 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,16 @@ jobs: | |
"include": ["src/**/*.ts"] | ||
} | ||
``` | ||
|
||
## Passing `project` parameter | ||
|
||
If your working with a monorepo or your `tsconfig.json` is not in the root repo, | ||
or you use different config file, you can provide a `project` parmeter with a | ||
path to the repo itself: | ||
|
||
```yaml | ||
- name: Typecheck | ||
uses: andoshin11/[email protected] | ||
with: | ||
project: packages/subpackage/tsconfig.json | ||
``` |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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