File tree 2 files changed +11
-13
lines changed
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,19 @@ module.exports = {
47
47
default : {
48
48
script : series (
49
49
'nps banner.migrate' ,
50
- 'nps lint' ,
51
- 'nps clean.dist' ,
52
- 'nps transpile' ,
53
- 'nps copy' ,
54
- '\"./node_modules/.bin/typeorm\" migrations:run' ,
50
+ 'nps migrate.config' ,
51
+ runFast ( './node_modules/.bin/typeorm migrations:run' ) ,
55
52
)
56
53
} ,
57
- rollback : {
54
+ revert : {
58
55
script : series (
59
- 'nps banner.rollback' ,
60
- 'nps lint' ,
61
- 'nps clean.dist' ,
62
- 'nps transpile' ,
63
- 'nps copy' ,
64
- '\"./node_modules/.bin/typeorm\" migrations:revert' ,
56
+ 'nps banner.revert' ,
57
+ 'nps migrate.config' ,
58
+ runFast ( './node_modules/.bin/typeorm migrations:revert' ) ,
65
59
)
60
+ } ,
61
+ config : {
62
+ script : runFast ( './lib/ormconfig.ts' ) ,
66
63
}
67
64
} ,
68
65
/**
@@ -169,7 +166,7 @@ module.exports = {
169
166
serve : banner ( 'serve' ) ,
170
167
test : banner ( 'test' ) ,
171
168
migrate : banner ( 'migrate' ) ,
172
- rollback : banner ( 'rollback ' ) ,
169
+ revert : banner ( 'revert ' ) ,
173
170
clean : banner ( 'clean' )
174
171
}
175
172
}
Original file line number Diff line number Diff line change 59
59
"express-status-monitor" : " ^1.0.1" ,
60
60
"figlet" : " ^1.2.0" ,
61
61
"helmet" : " ^3.9.0" ,
62
+ "jsonfile" : " ^4.0.0" ,
62
63
"lodash" : " ^4.17.4" ,
63
64
"microframework" : " ^0.6.4" ,
64
65
"morgan" : " ^1.9.0" ,
You can’t perform that action at this time.
0 commit comments