@nx-dotnet/core
Advanced tools
Comparing version 0.0.6-dev.52 to 0.0.6-dev.53
{ | ||
"name": "@nx-dotnet/core", | ||
"version": "0.0.6-dev.52", | ||
"version": "0.0.6-dev.53", | ||
"main": "src/index.js", | ||
@@ -9,6 +9,6 @@ "generators": "./generators.json", | ||
"dependencies": { | ||
"@nx-dotnet/dotnet": "0.0.6-dev.52", | ||
"@nx-dotnet/utils": "0.0.6-dev.52", | ||
"@nx-dotnet/dotnet": "0.0.6-dev.53", | ||
"@nx-dotnet/utils": "0.0.6-dev.53", | ||
"chokidar": "^3.5.1" | ||
} | ||
} |
@@ -8,2 +8,3 @@ "use strict"; | ||
let childProcess; | ||
let timeout; | ||
function dotnetRunExecutor(options, context, dotnetClient = new dotnet_1.DotNetClient(dotnet_1.dotnetFactory())) { | ||
@@ -22,13 +23,9 @@ const nxProjectConfiguration = utils_1.getExecutedProjectConfiguration(context); | ||
} | ||
if (timeout) { | ||
timeout.unref(); | ||
} | ||
timeout = setTimeout(() => { | ||
setupDotnetRun(dotnetClient, project, options); | ||
}, 1000); | ||
console.log(event, path); | ||
if (childProcess) { | ||
childProcess.kill(0); | ||
} | ||
childProcess = dotnetClient.run(project, Object.keys(options).map((x) => ({ | ||
flag: x, | ||
value: options[x], | ||
}))); | ||
childProcess.on('error', (err) => { | ||
console.error(err); | ||
}); | ||
}); | ||
@@ -39,2 +36,14 @@ }); | ||
exports.default = dotnetRunExecutor; | ||
const setupDotnetRun = (dotnetClient, project, options) => { | ||
if (childProcess) { | ||
childProcess.kill(0); | ||
} | ||
childProcess = dotnetClient.run(project, Object.keys(options).map((x) => ({ | ||
flag: x, | ||
value: options[x], | ||
}))); | ||
childProcess.on('error', (err) => { | ||
console.error(err); | ||
}); | ||
}; | ||
const exitHandler = (options, exitCode = 0) => { | ||
@@ -41,0 +50,0 @@ console.log('Exit Handler Called'); |
Sorry, the diff of this file is not supported yet
37921
792
+ Added@nx-dotnet/dotnet@0.0.6-dev.53(transitive)
+ Added@nx-dotnet/utils@0.0.6-dev.53(transitive)
- Removed@nx-dotnet/dotnet@0.0.6-dev.52(transitive)
- Removed@nx-dotnet/utils@0.0.6-dev.52(transitive)