-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Adds TSC_COMPILE_ON_ERROR env var... #6931
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
Changes from 1 commit
c1c56de
1955a07
c6c9bd8
e837044
92e381c
1d86b8a
1bedff1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,9 +122,15 @@ checkBrowsers(paths.appPath, isInteractive) | |
| ); | ||
| }, | ||
| err => { | ||
| console.log(chalk.red('Failed to compile.\n')); | ||
| printBuildError(err); | ||
| process.exit(1); | ||
| const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true'; | ||
| if (tscCompileOnError) { | ||
| console.log(chalk.yellow('Compiled with warnings.\n')); | ||
|
||
| printBuildError(err); | ||
| } else { | ||
| console.log(chalk.red('Failed to compile.\n')); | ||
| printBuildError(err); | ||
| process.exit(1); | ||
| } | ||
| } | ||
| ) | ||
| .catch(err => { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.