From e897efe8422d0a73c6970e910af72fb56a97e202 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 31 Aug 2022 08:48:47 +0100 Subject: [PATCH] Moved bundling to the end of prepack steps - in its current form, bundling will happen before we build Admin - Admin complains because the version in its package.json for `@tryghost/members-csv` is different to the one linked in the monorepo - by putting bundling at the end, we write the new package versions after we've already built Admin, so this issue should go away --- ghost/core/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/core/package.json b/ghost/core/package.json index a09450a166..121750b80b 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -45,7 +45,7 @@ "lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend", "lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test", "build:css": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css", - "prepack": "npx --yes daniellockyer/monobundle && yarn workspace ghost-admin run build:prod && yarn build:css" + "prepack": "yarn workspace ghost-admin run build:prod && yarn build:css && npx --yes daniellockyer/monobundle" }, "engines": { "node": "^14.17.0 || ^16.13.0",