disassemble-package
Version:
Separate the config contained in package.json into a file.
9 lines • 370 B
JavaScript
import { writeFile } from 'fs/promises';
import { join } from 'path';
export const disassembleSemanticRelease = async (path, json, { space }) => {
if (json.hasOwnProperty('release')) {
await writeFile(join(path, '.releaserc'), JSON.stringify(json.release, undefined, space));
delete json.release;
}
};
//# sourceMappingURL=semantic-release.js.map