Added monobundle as a prepack step

- in order to pack the tarball correctly, we need monobundle to run
  beforehand
- up until now, it's the responsibility of the release script to make sure
  to run it before `npm pack`
- this commit ensures it gets run, so the generated .tgz file is valid
This commit is contained in:
Daniel Lockyer 2022-08-10 14:14:47 +02:00
parent 0a03164fe4
commit 89106bce1c
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -45,7 +45,7 @@
"lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend", "lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend",
"lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test", "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", "build:css": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css",
"prepack": "yarn workspace ghost-admin run build:prod && yarn build:css" "prepack": "npx --yes daniellockyer/monobundle && yarn workspace ghost-admin run build:prod && yarn build:css"
}, },
"engines": { "engines": {
"node": "^14.17.0 || ^16.13.0", "node": "^14.17.0 || ^16.13.0",