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:
Jerko Steiner 2019-03-18 14:27:29 +05:00
parent 49fc73a1c2
commit 6fb69e40df

View File

@ -1,10 +1,13 @@
server := src/bootstrap.ts
typeorm := ts-node ../../node_modules/.bin/typeorm
build:
tsc --build ./
orm:
typeorm $args
migration:
migration: build
# typeorm migration:create -n $name
$typeorm migration:generate -n $name