diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-13 08:40:20 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | e69cdfb7b5b0b4c7517d5439d45888702c6a1b71 (patch) | |
tree | afe81359d658671d470874db8718375d5f6925fd /packages/pipeline/package.json | |
parent | 45da317e15960037024d9c04c1a08135a2889843 (diff) | |
download | dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.gz dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.bz2 dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.lz dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.xz dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.tar.zst dexon-sol-tools-e69cdfb7b5b0b4c7517d5439d45888702c6a1b71.zip |
Configure TypeORM for migrations. Add new package.json scripts.
Diffstat (limited to 'packages/pipeline/package.json')
-rw-r--r-- | packages/pipeline/package.json | 5 |
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": { |