Run lint as part of deployments

This commit is contained in:
arkon 2023-11-11 10:27:51 -05:00
parent bbac199151
commit 6505f62809
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
publish = "dist"
[context.production]
command = "VITE_HOSTNAME=$URL pnpm build"
command = "VITE_HOSTNAME=$URL pnpm test"
[context.deploy-preview]
command = "VITE_HOSTNAME=$DEPLOY_PRIME_URL pnpm build"
command = "VITE_HOSTNAME=$DEPLOY_PRIME_URL pnpm test"

View File

@ -18,7 +18,7 @@
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"test": "pnpm lint && pnpm build && pnpm preview",
"test": "pnpm lint && pnpm build",
"dev": "vitepress dev src",
"build": "vitepress build src",
"preview": "vitepress preview src",