Skip to content

Commit

Permalink
check in changes after migration no checked in through migration commits
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed May 1, 2023
1 parent 20efc5d commit 933599d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21430,6 +21430,10 @@ function migrate(keepMigrationsFile, legacyPeerDeps) {
if (!keepMigrationsFile) {
fs_1.default.unlinkSync('./migrations.json');
}
yield (0, exec_1.exec)('bash', [
'-c',
'(git add . && git commit -am "chore: [nx migration] changes") || true'
]);
});
}
exports.migrate = migrate;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/nx-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ export async function migrate(
if (!keepMigrationsFile) {
fs.unlinkSync('./migrations.json')
}
await exec('bash', [
'-c',
'(git add . && git commit -am "chore: [nx migration] changes") || true'
])
}

0 comments on commit 933599d

Please sign in to comment.