run build checks only when relevant FE changes (#1664)

This commit is contained in:
Lucy C
2022-07-20 20:22:26 -06:00
committed by GitHub
parent 40d446ba32
commit 97bdb2dd64
2 changed files with 9 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
module.exports = {
'**/*.{js,ts,html,md,json}': 'prettier --write',
'*.ts': 'tslint --fix',
'projects/ui/**/*.ts': () => 'npm run check:ui',
'projects/shared/**/*.ts': () => 'npm run check:shared',
'projects/diagnostic-ui/**/*.ts': () => 'npm run check:diagnostic-ui',
'projects/setup-wizard/**/*.ts': () => 'npm run check:setup-wizard',
}

View File

@@ -84,11 +84,7 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run check"
"pre-commit": "lint-staged --concurrent false"
}
},
"lint-staged": {
"**/*.{js,ts,html,md,less,json}": "prettier --write",
"*.ts": "tslint --fix"
}
}