mirror of https://github.com/laurent22/joplin.git
Tools: Disable tsc compile when committing - too slow
parent
ccf5271584
commit
b1908756d4
|
@ -1,5 +1,15 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'**/*.ts?(x)': () => 'npm run tsc',
|
// Don't compile when committing as it will process all TS files in the
|
||||||
|
// monorepo, which is too slow. Errors should be checked during development
|
||||||
|
// using `npm run watch`.
|
||||||
|
//
|
||||||
|
// Or if we add this back, we could do something like this:
|
||||||
|
// https://stackoverflow.com/a/44748041/561309
|
||||||
|
//
|
||||||
|
// The script would check where the TS file is located, then use the right
|
||||||
|
// tsconfig.json file along with the tsconfig override.
|
||||||
|
//
|
||||||
|
// '**/*.ts?(x)': () => 'npm run tsc',
|
||||||
'*.{js,jsx,ts,tsx}': [
|
'*.{js,jsx,ts,tsx}': [
|
||||||
'npm run linter-precommit',
|
'npm run linter-precommit',
|
||||||
'git add',
|
'git add',
|
||||||
|
|
Loading…
Reference in New Issue