mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
9f08264e0d
- 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
63 lines
1.9 KiB
JSON
63 lines
1.9 KiB
JSON
{
|
|
"name": "ghost-monorepo",
|
|
"version": "0.0.0-private",
|
|
"description": "The professional publishing platform",
|
|
"private": true,
|
|
"repository": "https://github.com/TryGhost/Ghost",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
"ghost/*"
|
|
],
|
|
"eslintIgnore": [
|
|
"**/node_modules/**"
|
|
],
|
|
"scripts": {
|
|
"dev": "yarn workspace ghost run dev",
|
|
"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",
|
|
"test": "yarn workspaces run test",
|
|
"main": "yarn main:monorepo && yarn main:submodules",
|
|
"main:monorepo": "git checkout main && git pull ${GHOST_UPSTREAM:-origin} main && yarn && yarn workspace ghost run grunt subgrunt:init",
|
|
"main:submodules": "git submodule sync && git submodule update && git submodule foreach \"git checkout main && git pull ${GHOST_UPSTREAM:-origin} main && yarn\""
|
|
},
|
|
"resolutions": {
|
|
"@tryghost/logging": "2.2.3",
|
|
"moment": "2.24.0",
|
|
"moment-timezone": "0.5.23"
|
|
},
|
|
"renovate": {
|
|
"extends": [
|
|
"@tryghost:quietJS",
|
|
"@tryghost:disableTryGhostAutomerge",
|
|
"@tryghost:groupTestLint",
|
|
"@tryghost:groupCSS",
|
|
"@tryghost:groupBuildTools"
|
|
],
|
|
"ignoreDeps": [
|
|
"got",
|
|
"intl-messageformat",
|
|
"moment",
|
|
"moment-timezone",
|
|
"oembed-parser",
|
|
"simple-dom"
|
|
],
|
|
"ignorePaths": [
|
|
"test"
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"packagePatterns": [
|
|
"metascraper"
|
|
],
|
|
"groupName": "metascraper"
|
|
}
|
|
]
|
|
}
|
|
}
|