move api pretest to api package.json instead of CI

This commit is contained in:
41666 2022-01-30 17:02:00 -05:00
parent 650691aead
commit 4d231c011e
2 changed files with 2 additions and 4 deletions

View file

@ -31,9 +31,7 @@ jobs:
- run: yarn lint
- run: |
yarn build:api
yarn test
- run: yarn test
worker_build:
runs-on: ubuntu-latest

View file

@ -8,7 +8,7 @@
"build:dev": "esbuild --bundle --sourcemap --platform=node --format=esm --outdir=dist --out-extension:.js=.mjs ./src/index.ts",
"lint:types": "tsc --noEmit",
"posttest": "rm .env",
"pretest": "cp ../../.env.example .env",
"pretest": "cp ../../.env.example .env && yarn build",
"start": "miniflare --watch --debug",
"test": "jest"
},