fix(husky): use absolute paths in pre-commit for type checks
- Use git rev-parse --show-toplevel for absolute paths - Fixes 'cd frontend: No such file or directory' error - Fix type cast parsing error in virtual-column.service.spec.ts
This commit is contained in:
+3
-1
@@ -1 +1,3 @@
|
||||
pnpm lint-staged
|
||||
cd "$(git rev-parse --show-toplevel)" && pnpm lint-staged
|
||||
cd "$(git rev-parse --show-toplevel)/backend" && pnpm tsc --noEmit
|
||||
cd "$(git rev-parse --show-toplevel)/frontend" && pnpm tsc --noEmit
|
||||
|
||||
@@ -160,12 +160,6 @@ describe('VirtualColumnService', () => {
|
||||
columnName: 'col',
|
||||
jsonPath: '$.x',
|
||||
dataType: input as
|
||||
|
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
| 'INT'
|
||||
| 'VARCHAR'
|
||||
| 'BOOLEAN'
|
||||
|
||||
Reference in New Issue
Block a user