Skip to content

Commit b51b176

Browse files
Merge pull request #12 from hodfords-solutions/feat/update-migration-template
feat: update migration template
2 parents eee5dfe + c8d12cd commit b51b176

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

lib/stubs/make-migration.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { QueryRunner } from 'typeorm';
22
import { BaseMigration } from '@hodfords/typeorm-helper';
33

44
export class $$CLASS$$ extends BaseMigration {
5-
async run(queryRunner: QueryRunner) {
5+
async run(queryRunner: QueryRunner): Promise<void> {
66
$$RUN$$
77
}
88

9-
async rollback(queryRunner: QueryRunner) {
9+
async rollback(queryRunner: QueryRunner): Promise<void> {
1010
$$ROLLBACK$$
1111
}
1212
}

package-lock.json

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hodfords/nestjs-command",
3-
"version": "10.2.0",
3+
"version": "10.2.1",
44
"description": "A utility for running CLI commands in NestJS apps",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)