Build tsc project before generating migration
This is especially important for comments-server, because ts-node will use compiled js files from @rondo/server - that's just how node's module resolution works and I do not think there's anything that we can do to change that
This commit is contained in:
parent
49fc73a1c2
commit
6fb69e40df
@ -1,10 +1,13 @@
|
|||||||
server := src/bootstrap.ts
|
server := src/bootstrap.ts
|
||||||
typeorm := ts-node ../../node_modules/.bin/typeorm
|
typeorm := ts-node ../../node_modules/.bin/typeorm
|
||||||
|
|
||||||
|
build:
|
||||||
|
tsc --build ./
|
||||||
|
|
||||||
orm:
|
orm:
|
||||||
typeorm $args
|
typeorm $args
|
||||||
|
|
||||||
migration:
|
migration: build
|
||||||
# typeorm migration:create -n $name
|
# typeorm migration:create -n $name
|
||||||
$typeorm migration:generate -n $name
|
$typeorm migration:generate -n $name
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user