* Execute the command to eject stubs from the specified package. * Copies the stubs to the application root and logs success messages * for each ejected file.
()
| 55 | * for each ejected file. |
| 56 | */ |
| 57 | async run() { |
| 58 | const stubs = await this.app.stubs.create() |
| 59 | const copied = await stubs.copy(this.stubPath, { |
| 60 | pkg: this.pkg, |
| 61 | }) |
| 62 | |
| 63 | copied.forEach((stubPath) => { |
| 64 | this.logger.success(`eject ${stringHelpers.toUnixSlash(this.app.relativePath(stubPath))}`) |
| 65 | }) |
| 66 | } |
| 67 | } |