Added yarn build command

refs https://github.com/TryGhost/Toolbox/issues/390

- this allows us to run `yarn build` and make it output a .tgz file
  which can be installed with `ghost install --archive ...`
This commit is contained in:
Daniel Lockyer 2022-09-26 18:27:34 +07:00
parent ceadb2634f
commit a94c93e1c0
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@
"scripts": {
"start": "node index",
"setup": "knex-migrator init && grunt symlink || (exit 0)",
"build": "yarn workspace ghost-admin run build",
"build": "npm pack --pack-destination ../..",
"test": "yarn test:unit",
"test:single": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000",
"test:all": "yarn test:unit && yarn test:integration && yarn test:e2e && yarn lint",

View File

@ -19,6 +19,7 @@
"**/node_modules/**"
],
"scripts": {
"build": "yarn workspace ghost run build",
"dev:debug": "DEBUG_COLORS=true DEBUG=@tryghost*,ghost:* yarn dev",
"dev:admin": "node .github/dev.js --admin",
"dev:ghost": "node .github/dev.js --ghost",