Change files
This commit is contained in:
Родитель
fa0fb88d79
Коммит
d05f8b7b19
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "minor",
|
||||
"comment": "Added mkdirp to flamegrill so that it will create output directory if it doesn't exist",
|
||||
"packageName": "flamegrill",
|
||||
"email": "lewisdy@tcd.ie",
|
||||
"commit": "fa0fb88d79f21f4a602ef6540b795a861f3ba949",
|
||||
"date": "2019-10-10T21:20:33.040Z"
|
||||
}
|
|
@ -18,7 +18,6 @@
|
|||
"start": "tsc -w --preserveWatchOutput"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/mkdirp": "^0.5.2",
|
||||
"concat-stream": "^2.0.0",
|
||||
"flamebearer": "^1.1.3",
|
||||
"n-readlines": "^1.0.0",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import mkdirp from 'mkdirp';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { profile, ScenarioProfile } from './profile';
|
||||
import { processProfiles, ProcessedScenario } from './process';
|
||||
|
@ -39,12 +39,7 @@ export interface CookResults {
|
|||
* @returns {string} the directory path
|
||||
*/
|
||||
function resolveDir(dirPath: string): string {
|
||||
mkdirp(dirPath, (err, made) => {
|
||||
if (made === null){
|
||||
console.log("Unable to create directory");
|
||||
console.error(err);
|
||||
}
|
||||
})
|
||||
fs.mkdirSync(dirPath);
|
||||
return path.resolve(dirPath);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче