Skip to content

Commit

Permalink
fix: added clean step
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent 7da24c6 commit da22f7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ class App extends Generator {
if (['plugin', 'multi'].includes(this.type)) {
this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev manifest')
if (this.semantic_release) this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev readme')
else this.pjson.scripts.version = nps.series('anycli-dev readme', 'git add README.md')
this.pjson.scripts.postpublish = 'rm .anycli.manifest.json'
this.pjson.scripts.version = nps.series('anycli-dev readme', 'git add README.md')
this.pjson.scripts.clean = 'rm -f .anycli.manifest.json'
this.pjson.scripts.postpublish = this.pjson.scripts.preversion = 'yarn run clean'
this.pjson.files.push('.anycli.manifest.json')
}
this.pjson.keywords = defaults.keywords || [this.type === 'plugin' ? 'anycli-plugin' : 'anycli']
Expand Down

0 comments on commit da22f7f

Please sign in to comment.