aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/package.json
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-13 08:40:20 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit329c68f610843ebded9ca31fc9cd6f3eed744a8e (patch)
tree166b089d14a10e47e206a971998597960e267790 /packages/pipeline/package.json
parent6fb333f2003a67277a7605332f146adb2758cdd0 (diff)
downloaddexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.tar
dexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.tar.gz
dexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.tar.bz2
dexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.tar.lz
dexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.tar.xz
dexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.tar.zst
dexon-sol-tools-329c68f610843ebded9ca31fc9cd6f3eed744a8e.zip
Configure TypeORM for migrations. Add new package.json scripts.
Diffstat (limited to 'packages/pipeline/package.json')
-rw-r--r--packages/pipeline/package.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json
index 3380a970a..367296e05 100644
--- a/packages/pipeline/package.json
+++ b/packages/pipeline/package.json
@@ -13,7 +13,10 @@
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"clean": "shx rm -rf lib",
- "lint": "tslint --project ."
+ "lint": "tslint --project .",
+ "migrate:run": "yarn typeorm migration:run --config ./lib/src/ormconfig",
+ "migrate:revert": "yarn typeorm migration:revert --config ./lib/src/ormconfig",
+ "migrate:create": "yarn typeorm migration:create --config ./lib/src/ormconfig --dir migrations"
},
"config": {
"postpublish": {