Skip to content

Commit 5f3d430

Browse files
author
Matija Petrunic
committed
Add migration generation command
1 parent 1ae3259 commit 5f3d430

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"scripts": {
1111
"start:dev": "npx task dev",
1212
"db:migration:new": "yarn run typeorm-ts migration:create -n ",
13+
"db:migration:generate": "yarn run typeorm-ts migration:create -n ",
1314
"db:entity:new": "yarn run typeorm-ts entity:create -n ",
1415
"db:subscriber:new": "yarn run typeorm-ts subscriber:create -n ",
1516
"db:migrate": "npx task npm typeorm-ts migration:run",
@@ -32,7 +33,7 @@
3233
"typeorm-ts": "ts-node ./node_modules/typeorm/cli.js",
3334
"seeder": "ts-node ./node_modules/typeorm-seeding/dist/cli.js",
3435
"start:server": "node --inspect=0.0.0.0:56745 -r ts-node/register -r dotenv/config src/index.ts",
35-
"nodemon": "./node_modules/nodemon/bin/nodemon.js"
36+
"NODE_ENV=development nodemon": "./node_modules/nodemon/bin/nodemon.js"
3637
},
3738
"dependencies": {
3839
"fastify": "^2.13.0",

0 commit comments

Comments
 (0)