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 Jan 12, 2020
1 parent 3c28b83 commit 15c81ec
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 15c81ec

Please sign in to comment.