Skip to content

Commit

Permalink
fix: fixed manifest location
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 2, 2018
1 parent 36f79a8 commit 14802aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ 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 > lib/.anycli.manifest.json')
this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev manifest > .anycli.manifest.json')
this.pjson.files.push('.anycli.manifest.json')
}
this.pjson.keywords = defaults.keywords || [this.type === 'plugin' ? 'anycli-plugin' : 'anycli']
this.pjson.homepage = defaults.homepage || `https://github.com/${this.pjson.repository}`
Expand All @@ -255,7 +256,7 @@ class App extends Generator {
this.pjson.anycli.bin = this.answers.bin || this._bin
this.pjson.bin = this.pjson.bin || {}
this.pjson.bin[this.pjson.anycli.bin] = './bin/run'
this.pjson.files.unshift('/bin')
this.pjson.files.push('/bin')
}
if (this.type !== 'plugin') {
this.pjson.main = defaults.main || (this.ts ? 'lib/index.js' : 'src/index.js')
Expand Down Expand Up @@ -311,6 +312,7 @@ class App extends Generator {
fixpack(this.destinationPath('./package.json'), require('fixpack/config.json'))
}
if (_.isEmpty(this.pjson.anycli)) delete this.pjson.anycli
this.pjson.files = _.uniq((this.pjson.files || []).sort())
this.fs.writeJSON(this.destinationPath('./package.json'), sortPjson(this.pjson))
this.fs.copyTpl(this.templatePath('editorconfig'), this.destinationPath('.editorconfig'), this)
this.fs.copyTpl(this.templatePath('scripts/greenkeeper'), this.destinationPath('.circleci/greenkeeper'), this)
Expand Down

0 comments on commit 14802aa

Please sign in to comment.