fix: use git add when not using semantic release
MODIFY
src/generators/app.ts
src/generators/app.ts
@@ -245,7 +245,9 @@ class App extends Generator {
this.pjson.scripts.prepublishOnly = 'yarn run build'
}
if (['plugin', 'multi'].includes(this.type)) {
- this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev manifest', 'anycli-dev readme')
+ 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.files.push('.anycli.manifest.json')
}

fix: use git add when not using semantic release