Merge branch 'main' into eslint-lint-staged

This commit is contained in:
Lucas Smith
2023-12-09 11:41:20 +11:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -22,7 +22,8 @@
"prisma:seed": "npm run with:env -- npm run prisma:seed -w @documenso/prisma", "prisma:seed": "npm run with:env -- npm run prisma:seed -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",