Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Extend cli options #2322

Merged
merged 5 commits into from
Mar 10, 2017
Merged

Extend cli options #2322

merged 5 commits into from
Mar 10, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Mar 9, 2017

PR checklist

Overview of change:

[bugfix] exit with 0 on type check errors when --force is specified
Fixes: #2087
[bugfix] --test now correctly strips single quotes from patterns on windows
[enhancement] --test can handle multiple paths at once
^useful when shell expands globs
[enhancement] added -p as shorthand for --project to be consistent with tsc
Kind of fixes: #2291
[enhancement] print error when --type-check is used without --project
[enhancement] don't print stack trace on type check error

[bugfix] exit with 0 on type check errors when `--force` is specified
Fixes: #2087
[bugfix] `--test` now correctly strips single quotes from patterns on windows
[enhancement] `--test` can handle multiple paths at once
[enhancement] added `-p` as shorthand for `--project` to be consistent with `tsc`
Kind of fixes: #2291
[enhancement] print error when `--type-check` is used without `--project`
[enhancement]  don't print stack trace on type check error
src/runner.ts Outdated
}
} finally {
} catch (e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this in a catch instead of a finally? The file descriptor should be closed regardless of what happens. Line 231 can be removed too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, I thought finally would not be executed when leaving the try block with return or continue. Will revert that change

@nchen63 nchen63 merged commit e2b0ff8 into palantir:master Mar 10, 2017
@nchen63
Copy link
Contributor

nchen63 commented Mar 10, 2017

@ajafff thanks!

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

Successfully merging this pull request may close these issues.

completed-docs does not report any errors Exit code always 1 with type check errors and --force active
2 participants