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
This commit is contained in:
Daniel Lockyer 2022-07-27 14:21:31 +02:00
parent 532f9ee984
commit 9f08264e0d
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -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",