From c8d12cd85265273b6f39538e856f91893a8096d4 Mon Sep 17 00:00:00 2001 From: phuong-hodfords Date: Wed, 15 Jan 2025 07:19:06 +0700 Subject: [PATCH] feat: update migration template --- lib/stubs/make-migration.stub | 4 ++-- package-lock.json | 9 +++++++-- package.json | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/stubs/make-migration.stub b/lib/stubs/make-migration.stub index c5764f3..1bb0718 100644 --- a/lib/stubs/make-migration.stub +++ b/lib/stubs/make-migration.stub @@ -2,11 +2,11 @@ import { QueryRunner } from 'typeorm'; import { BaseMigration } from '@hodfords/typeorm-helper'; export class $$CLASS$$ extends BaseMigration { - async run(queryRunner: QueryRunner) { + async run(queryRunner: QueryRunner): Promise { $$RUN$$ } - async rollback(queryRunner: QueryRunner) { + async rollback(queryRunner: QueryRunner): Promise { $$ROLLBACK$$ } } diff --git a/package-lock.json b/package-lock.json index 60feb1b..104e0fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hodfords/nestjs-command", - "version": "10.1.3", + "version": "10.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hodfords/nestjs-command", - "version": "10.1.3", + "version": "10.2.1", "license": "ISC", "dependencies": { "pluralize": "8.0.0" @@ -34,7 +34,12 @@ "typeorm": "0.3.20", "typescript": "5.6.2" }, + "optionalDependencies": { + "typeorm": "*" + }, "peerDependencies": { + "@nestjs/common": "*", + "@nestjs/core": "*", "commander": "12.1.0" } }, diff --git a/package.json b/package.json index ab78ba1..05796e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hodfords/nestjs-command", - "version": "10.2.0", + "version": "10.2.1", "description": "A utility for running CLI commands in NestJS apps", "main": "index.js", "scripts": {