chore: full build for pretest

This commit is contained in:
Elliot DeNolf
2021-01-25 15:12:28 -05:00
parent 468df67384
commit ed37064e09
2 changed files with 2 additions and 3 deletions

View File

@@ -13,8 +13,7 @@
"registry": "https://registry.npmjs.org/"
},
"hooks": {
"before:init": ["yarn", "yarn test"],
"after:bump": ["yarn clean", "yarn build"]
"before:init": ["yarn", "yarn clean", "yarn test"]
},
"plugins": {
"@release-it/conventional-changelog": {

View File

@@ -20,7 +20,7 @@
"demo:build": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.ts node dist/bin/build",
"dev": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.ts nodemon",
"test": "yarn test:int && yarn test:client",
"pretest": "yarn build:tsc",
"pretest": "yarn build",
"test:int": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.ts NODE_ENV=test DISABLE_LOGGING=true jest --forceExit --runInBand",
"test:client": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.ts NODE_ENV=test jest --config=jest.react.config.js",
"clean": "rimraf dist",