Skip to content

Commit

Permalink
fix(MigrationSource): use appRoot for reading migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 27, 2019
1 parent e016fdc commit 0b9e0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migrator/MigrationSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class MigrationSource {
* paths are resolved from the project root
*/
private _getDirectoryFiles (directoryPath: string): Promise<MigrationNode[]> {
const basePath = this._app.cliCwd || this._app.appRoot
const basePath = this._app.appRoot

return new Promise((resolve, reject) => {
const path = isAbsolute(directoryPath) ? directoryPath : join(basePath, directoryPath)
Expand Down

0 comments on commit 0b9e0b0

Please sign in to comment.