Skip to content

Commit

Permalink
Log regular messages without spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 19, 2018
1 parent 522df0c commit ae8e2f0
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions lib/tasks.js
Expand Up @@ -13,7 +13,7 @@ const { getIsLateChangeLog } = require('./recommendations');
const { config } = require('./config');
const { log, info, warn, logError } = require('./log');
const { debug, debugConfig } = require('./debug');
const { spinner, getSpinner } = require('./spinner');
const { spinner } = require('./spinner');
const handleDeprecated = require('./deprecated');
const {
GitRepoError,
Expand Down Expand Up @@ -104,10 +104,7 @@ module.exports = async options => {
config.setOption('version', provisionalVersion);

const suffix = provisionalVersion ? `${latestVersion}...${provisionalVersion}` : `currently at ${latestVersion}`;
getSpinner().stopAndPersist({
symbol: 'πŸš€',
text: `Let's release ${options.name} (${suffix})`
});
log(`πŸš€ Let's release ${options.name} (${suffix})`);

if (!isLateChangeLog) {
const changelog = await getChangelog();
Expand Down Expand Up @@ -213,10 +210,7 @@ module.exports = async options => {
await spinner(scripts.afterRelease, () => run(scripts.afterRelease), format(scripts.afterRelease));

if (dist.repo) {
getSpinner().stopAndPersist({
symbol: `${EOL}πŸš€`,
text: `Let's release the distribution repo for ${options.name}${EOL}`
});
log(`${EOL}πŸš€ Let's release the distribution repo for ${options.name}${EOL}`);

await pushd(dist.stageDir);

Expand Down Expand Up @@ -288,10 +282,7 @@ module.exports = async options => {
log(`πŸ”— ${getPackageUrl()}`);
}

getSpinner().stopAndPersist({
symbol: `🏁`,
text: `Done (in ${Math.floor(process.uptime())}s.)`
});
log(`🏁 Done (in ${Math.floor(process.uptime())}s.)`);

return Promise.resolve({
changelog,
Expand Down

0 comments on commit ae8e2f0

Please sign in to comment.