chore: add lint-staged task for dependency changes (#548)

This commit is contained in:
Aditya Deshlahre
2023-12-09 06:00:15 +05:30
committed by GitHub
parent 3db67c1212
commit b152dbe25e
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
module.exports = { module.exports = {
'**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,mdx}': ['prettier --write'], '**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,mdx}': ['prettier --write'],
'**/*/package.json': ['npm run precommit'],
}; };

View File

@ -21,7 +21,8 @@
"prisma:migrate-deploy": "npm run with:env -- npm run prisma:migrate-deploy -w @documenso/prisma", "prisma:migrate-deploy": "npm run with:env -- npm run prisma:migrate-deploy -w @documenso/prisma",
"prisma:studio": "npm run with:env -- npx prisma studio --schema packages/prisma/schema.prisma", "prisma:studio": "npm run with:env -- npx prisma studio --schema packages/prisma/schema.prisma",
"with:env": "dotenv -e .env -e .env.local --", "with:env": "dotenv -e .env -e .env.local --",
"reset:hard": "npm run clean && npm i && npm run prisma:generate" "reset:hard": "npm run clean && npm i && npm run prisma:generate",
"precommit": "npm install && git add package.json package-lock.json"
}, },
"engines": { "engines": {
"npm": ">=8.6.0", "npm": ">=8.6.0",