Skip to content

Commit

Permalink
Satisfy tsc after package bump
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed May 22, 2024
1 parent 4592fa6 commit 9759b05
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 173 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "mocha --require ts-node/register --reporter=dot test/**/*-test.ts --timeout=10000",
"test-formatting": "test/check-formatting.sh",
"format": "scripts/format.sh",
"type-check": "tsc --allowJs --checkJs --noEmit --target es2016 *.js",
"type-check": "tsc --allowJs --checkJs --noEmit --target es2016 *.js --skipLibCheck",
"prepublishOnly": "npm run build && npm run test"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/edge-launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class Launcher {
{detached: true, stdio: ['ignore', this.outFile, this.errFile], env: this.envVars});
this.edge = edge;

this.fs.writeFileSync(this.pidFile, edge.pid.toString());
this.fs.writeFileSync(this.pidFile, edge.pid!.toString());

log.verbose('EdgeLauncher', `Edge running with pid ${edge.pid} on port ${this.port}.`);
return edge.pid;
Expand Down Expand Up @@ -339,7 +339,7 @@ class Launcher {
// if you don't explicitly set `stdio`
execSync(`taskkill /pid ${this.edge.pid} /T /F`, {stdio: 'pipe'});
} else {
process.kill(-this.edge.pid);
process.kill(-this.edge.pid!);
}
} catch (err) {
const message = `Edge could not be killed ${err.message}`;
Expand Down
Loading

0 comments on commit 9759b05

Please sign in to comment.