@travetto/compiler
Advanced tools
Comparing version 5.0.0-rc.1 to 5.0.0-rc.2
{ | ||
"name": "@travetto/compiler", | ||
"version": "5.0.0-rc.1", | ||
"version": "5.0.0-rc.2", | ||
"description": "The compiler infrastructure for the Travetto framework", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"@travetto/manifest": "^5.0.0-rc.1", | ||
"@travetto/transformer": "^5.0.0-rc.0", | ||
"@travetto/transformer": "^5.0.0-rc.1", | ||
"@types/node": "^20.14.10" | ||
@@ -38,0 +38,0 @@ }, |
@@ -19,8 +19,2 @@ import fs from 'node:fs/promises'; | ||
async writePid(pid: number): Promise<void> { | ||
const current = await this.getPid(); | ||
if (!process.env.TRV_BUILD_REENTRANT && current && pid !== current && current > 0) { | ||
try { | ||
process.kill(current); | ||
} catch { } | ||
} | ||
await fs.mkdir(path.dirname(this.#file), { recursive: true }); | ||
@@ -27,0 +21,0 @@ return fs.writeFile(this.#file, JSON.stringify(pid), 'utf8'); |
@@ -194,2 +194,6 @@ import http from 'node:http'; | ||
if (ev.payload.state === 'init' && ev.payload.extra && 'pid' in ev.payload.extra && typeof ev.payload.extra.pid === 'number') { | ||
if (this.info.mode === 'watch' && !this.info.compilerPid) { | ||
// Ensure we are killing in watch mode on first set | ||
await this.#handle.compiler.kill(); | ||
} | ||
this.info.compilerPid = ev.payload.extra.pid; | ||
@@ -196,0 +200,0 @@ await this.#handle.compiler.writePid(this.info.compilerPid); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85834
1896