Skip to content

Commit

Permalink
fix(postinstall): use rimraf to dispose of pre-git/simple-commit-message
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Jul 30, 2017
1 parent 0eff4d7 commit ebd761e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/setup-semantic-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
const debug = require('debug')('github-post-release');
const path = require('path');
const fs = require('fs');
const rimraf = require('rimraf');

const isForced = process.argv.some(a => a === '--force');

Expand Down Expand Up @@ -77,6 +78,6 @@ console.log('⚠️ Use "semantic-release-cli setup" to complete setting up sema
console.log('⚠️ For scoped packages add {"publishConfig":{"access": "public"}} to package.json');

if (fs.existsSync(preGitOldModules('simple-commit-message'))) {
console.log('⚠️ Removed "simple-commit-message" from git-it dependencies');
fs.rmdirSync(preGitOldModules('simple-commit-message'));
rimraf.sync(preGitOldModules('simple-commit-message'));
console.log('⚠️ Removed "simple-commit-message" from pre-git dependencies');
}

0 comments on commit ebd761e

Please sign in to comment.