mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-23 19:08:25 +00:00
fix(@embark/console): fix cockpit console if using console command
This commit is contained in:
parent
4f8734f19b
commit
d5c3a9cf1d
@ -304,7 +304,9 @@ class EmbarkController {
|
||||
if (isSecondaryProcess(engine)) {
|
||||
return callback();
|
||||
}
|
||||
engine.startService("embarkListener");
|
||||
engine.startService("processManager");
|
||||
engine.startService("coreProcess");
|
||||
engine.startService("serviceMonitor");
|
||||
engine.startService("libraryManager");
|
||||
engine.startService("pipeline");
|
||||
@ -416,7 +418,9 @@ class EmbarkController {
|
||||
let defaultPaths = [...defaultResetPaths];
|
||||
|
||||
defaultPaths.push(embarkConfig.buildDir);
|
||||
embarkConfig.generationDir && defaultPaths.push(embarkConfig.generationDir);
|
||||
if (embarkConfig.generationDir) {
|
||||
defaultPaths.push(embarkConfig.generationDir);
|
||||
}
|
||||
|
||||
if (embarkConfig.options && embarkConfig.options.reset) {
|
||||
if (embarkConfig.options.reset.defaults) {
|
||||
@ -428,7 +432,11 @@ class EmbarkController {
|
||||
} else {
|
||||
removePaths = defaultPaths;
|
||||
}
|
||||
removePaths = [...new Set(removePaths.map(path => path.charAt(path.length - 1) === '/' ? path.substr(0, path.length - 1) : path))];
|
||||
removePaths = [
|
||||
...new Set(removePaths.map(path => {
|
||||
return path.charAt(path.length - 1) === '/' ? path.substr(0, path.length - 1) : path;
|
||||
}))
|
||||
];
|
||||
await embarkReset({removePaths});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user