UNPKG

publish-please

Version:

Safe and highly functional replacement for `npm publish`.

12 lines (10 loc) 266 B
'use strict'; const exec = require('child_process').execSync; module.exports = function (command) { try { const result = exec(command, { encoding: 'utf8' }); return result.toString(); } catch (error) { return error.message; } };