File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 "build" : " tsc --project tsconfig.json" ,
99 "check" : " tsc --noEmit --project . && tslint --project ." ,
1010 "lint" : " tslint --project ." ,
11- "lint-fix" : " tslint --project . --fix"
11+ "lint-fix" : " tslint --project . --fix" ,
12+ "watch" : " tsc -p . -w --sourceMap"
1213 },
1314 "devDependencies" : {
1415 "@types/node" : " 12.7.11" ,
Original file line number Diff line number Diff line change @@ -291,10 +291,10 @@ private File getParserWrapper() {
291291 LogbackUtils .getLogger (AbstractProcessBuilder .class ).setLevel (Level .INFO );
292292 String explicitPath = Env .systemEnv ().get (PARSER_WRAPPER_PATH_ENV_VAR );
293293 String semmleDistVar = Env .systemEnv ().get (Env .Var .SEMMLE_DIST .name ());
294- if (semmleDistVar != null && !semmleDistVar .isEmpty ()) {
295- parserWrapper = new File (semmleDistVar , "tools/typescript-parser-wrapper/main.js" );
296- } else if (explicitPath != null ) {
294+ if (explicitPath != null ) {
297295 parserWrapper = new File (explicitPath );
296+ } else if (semmleDistVar != null && !semmleDistVar .isEmpty ()) {
297+ parserWrapper = new File (semmleDistVar , "tools/typescript-parser-wrapper/main.js" );
298298 } else {
299299 throw new CatastrophicError (
300300 "Could not find TypeScript parser: " + Env .Var .SEMMLE_DIST .name () + " is not set." );
You can’t perform that action at this time.
0 commit comments