@monodeploy/changelog
Advanced tools
Comparing version 0.2.6 to 0.3.0
@@ -41,15 +41,21 @@ "use strict"; | ||
const changesetPath = _path.default.resolve(config.cwd, config.changesetFilename); | ||
const serializedData = JSON.stringify(changesetData, null, 2); | ||
await _fs.promises.mkdir(_path.default.dirname(changesetPath), { | ||
recursive: true | ||
}); | ||
await _fs.promises.writeFile(changesetPath, JSON.stringify(changesetData, null, 2), { | ||
encoding: 'utf8' | ||
}); | ||
if (config.changesetFilename === '-') { | ||
console.log(serializedData); | ||
} else { | ||
const changesetPath = _path.default.resolve(config.cwd, config.changesetFilename); | ||
_logging.default.info(`[Changeset] Written to: ${changesetPath}`, { | ||
report: context.report | ||
}); | ||
await _fs.promises.mkdir(_path.default.dirname(changesetPath), { | ||
recursive: true | ||
}); | ||
await _fs.promises.writeFile(changesetPath, serializedData, { | ||
encoding: 'utf8' | ||
}); | ||
_logging.default.info(`[Changeset] Written to: ${changesetPath}`, { | ||
report: context.report | ||
}); | ||
} | ||
return changesetData; | ||
@@ -56,0 +62,0 @@ }; |
{ | ||
"name": "@monodeploy/changelog", | ||
"version": "0.2.6", | ||
"version": "0.3.0", | ||
"repository": "git@github.com:tophat/monodeploy.git", | ||
@@ -5,0 +5,0 @@ "author": "Top Hat Monocle Corp. <opensource@tophat.com>", |
17504
386