Skip to content

Commit

Permalink
fix: generator improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 6, 2018
1 parent c3bdfe0 commit 50c303f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ class App extends Generator {
if (!fs.existsSync('src/commands')) {
this.fs.copyTpl(this.templatePath(`src/command.${this._ext}.ejs`), this.destinationPath(`src/commands/hello.${this._ext}`), {...opts, name: 'hello'})
}
if (this.ts) {
if (this.ts && this.type !== 'multi') {
this.fs.copyTpl(this.templatePath('plugin/src/index.ts'), this.destinationPath('src/index.ts'), opts)
}
if (this.mocha && !fs.existsSync('test')) {
Expand Down
2 changes: 0 additions & 2 deletions templates/plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// this file is just here to make typescript not flatten the outDir
// we can't use rootDir as this doesn't allow us to use linked plugins typescript files
export default {}

0 comments on commit 50c303f

Please sign in to comment.