From 11564f1c22aa4a62a322cb13941f5de077bce0bf Mon Sep 17 00:00:00 2001 From: NoriDev Date: Sun, 22 Oct 2023 02:23:07 +0900 Subject: [PATCH] add schemasync --- package.json | 3 ++- packages/backend/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eb48551e35..e88d589644 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "test-and-coverage": "pnpm -r test-and-coverage", "clean": "node ./scripts/clean.js", "clean-all": "node ./scripts/clean-all.js", - "cleanall": "pnpm clean-all" + "cleanall": "pnpm clean-all", + "schemasync": "cd packages/backend && pnpm typeorm schema:sync -d ormconfig.js" }, "resolutions": { "chokidar": "3.5.3", diff --git a/packages/backend/package.json b/packages/backend/package.json index 0e1d2b5692..33011b2bac 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -23,7 +23,8 @@ "jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit", "jest-clear": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --clearCache", "test": "pnpm jest", - "test-and-coverage": "pnpm jest-and-coverage" + "test-and-coverage": "pnpm jest-and-coverage", + "schemasync": "pnpm typeorm schema:sync -d ormconfig.js" }, "optionalDependencies": { "@swc/core-android-arm64": "1.3.11",