chore(root): clean up root commands and husky

This commit is contained in:
Ben Allfree 2024-08-03 04:30:31 -07:00
parent dcb0f4fe97
commit 4e138cf276
2 changed files with 3 additions and 13 deletions

View File

@ -1,6 +1,6 @@
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ]; then
pnpm check:types
pnpm build-frontends
if [ "$branch" = "v0/main" ]; then
pnpm -r check:types
pnpm -r build
fi

View File

@ -6,18 +6,8 @@
},
"license": "MIT",
"scripts": {
"check:types": "concurrently 'pnpm:check:types:*'",
"check:types:dashboard": "cd packages/dashboard && pnpm check:types",
"check:types:superadmin": "cd packages/superadmin && pnpm check:types",
"check:types:pockethost": "cd packages/pockethost && pnpm check:types",
"lint": "prettier -c \"./**/*.{ts,js,cjs,svelte,json}\"",
"lint:fix": "prettier -w \"./**/*.{ts,js,cjs,svelte,json}\"",
"build": "concurrently 'pnpm:build:*'",
"build-frontends": "concurrently 'pnpm:build:frontend:*'",
"build:frontend:dashboard": "cd packages/dashboard && pnpm build",
"build:frontend:lander": "cd packages/lander && pnpm build",
"build:frontend:superadmin": "cd packages/superadmin && pnpm build",
"build:docker": "cd packages/pockethost-instance && pnpm build",
"dev:cli": "cd packages/pockethost && pnpm dev",
"dev:lander": "cd packages/lander && pnpm start",
"dev:dashboard": "cd packages/dashboard && pnpm dev",