Enable strict mode on hak tsconfig (#483)

This commit is contained in:
Michael Telatynski 2022-12-14 10:47:35 +00:00 committed by GitHub
parent 19f04d4362
commit d766aef435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View file

@ -15,3 +15,5 @@ node_modules/
/test_artifacts/
/coverage/
yarn-error.log
/hak/**/*.js
/scripts/hak/**/*.js

View file

@ -80,7 +80,7 @@ export default async function(hakEnv: HakEnv, moduleInfo: DependencyInfo): Promi
}
fsProm.unlink('tmp').then(resolve);
});
rustc.stdin.write('fn main() {}');
rustc.stdin.end();
rustc.stdin!.write('fn main() {}');
rustc.stdin!.end();
});
}

View file

@ -4,11 +4,13 @@
"esModuleInterop": true,
"target": "es2016",
"sourceMap": false,
"strict": true,
"lib": [
"es2019",
]
},
"include": [
"../scripts/@types/*.d.ts",
"./**/*.ts"
],
"ts-node": {