From 9f08264e0dc6862f28701ee79db859f71d36d3e5 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 27 Jul 2022 14:21:31 +0200 Subject: [PATCH] Added `knex-migrator` script to top-level package.json - now we've switched to a monorepo, commands like `knex-migrator health` won't work from the top-level directory because they expect to be run alongside the MigratorConfig.js file - this commit adds a `knex-migrator` script in the top-level package.json so you can run `yarn knex-migrator ...` - whilst this is only a bandaid, it should give a route forwards for running knex-migrator commands from your top-level directory --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4a53983d96..fe8561894a 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "fix:admin": "yarn cache clean && cd ghost/core/core/admin && rm -rf node_modules tmp dist && yarn && cd ../../../..", "fix:backend": "yarn cache clean && rm -rf node_modules && yarn", "fix": "yarn fix:admin && yarn fix:backend", + "knex-migrator": "yarn workspace ghost run knex-migrator", "lint": "yarn workspaces run lint", "setup": "yarn && yarn workspace ghost run setup", "start": "yarn workspace ghost run start",