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
25 lines
346 B
Ruby
25 lines
346 B
Ruby
server := src/bootstrap.ts
|
|
typeorm := ts-node ../../node_modules/.bin/typeorm
|
|
|
|
build:
|
|
tsc --build ./
|
|
|
|
orm:
|
|
typeorm $args
|
|
|
|
migration: build
|
|
# typeorm migration:create -n $name
|
|
$typeorm migration:generate -n $name
|
|
|
|
migrate:
|
|
$typeorm migration:run
|
|
|
|
migrate-revert:
|
|
$typeorm migration:revert
|
|
|
|
start:
|
|
ts-node $server
|
|
|
|
test:
|
|
jest $args
|