From 57d47a79f957b93d4d2b8016249879f98df0d412 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Sun, 24 Jul 2022 12:46:07 +0200 Subject: [PATCH] Added `yarn setup` to root scripts - we had this working in the Ghost repo before switching to a monorepo - this commit adds a `setup` script to the root package.json so we can maintain the functionality --- ghost/core/package.json | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/core/package.json b/ghost/core/package.json index db0f5923a5..cf96908b0b 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -23,7 +23,7 @@ "start": "node index", "dev": "grunt dev", "dev:debug": "DEBUG=ghost:* grunt dev", - "setup": "yarn install && knex-migrator init && grunt symlink && grunt init || (exit 0)", + "setup": "knex-migrator init && grunt symlink && grunt init || (exit 0)", "main": "grunt shell:main && grunt subgrunt:init", "build": "grunt build", "test": "yarn test:unit", diff --git a/package.json b/package.json index 7742f8eac5..b064e3d8bb 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "fix:backend": "yarn cache clean && rm -rf node_modules && yarn", "fix": "yarn fix:admin && yarn fix:backend", "lint": "yarn workspaces run lint", + "setup": "yarn && yarn workspace ghost run setup", "start": "yarn workspace ghost run start", "test": "yarn workspaces run test", "main": "git pull && yarn && yarn workspace ghost run main"