Skip to content

Commit

Permalink
fix: fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
thaisguigon committed Apr 19, 2024
1 parent b97039f commit 2bf47eb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/twenty-front/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"options": {
"cwd": "{projectRoot}",
"command": "tsc -b tsconfig.json",
"incremental": true
"args": ["--incremental"]
},
"configurations": {
"ci": { "incremental": false },
"ci": { "args": [] },
"watch": { "watch": true }
}
},
Expand Down
5 changes: 5 additions & 0 deletions packages/twenty-front/src/emotion.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ThemeType } from 'twenty-ui';

declare module '@emotion/react' {
export interface Theme extends ThemeType {}
}
5 changes: 0 additions & 5 deletions packages/twenty-front/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { DialogManagerScope } from '@/ui/feedback/dialog-manager/scopes/DialogMa
import { SnackBarProvider } from '@/ui/feedback/snack-bar-manager/components/SnackBarProvider';
import { SnackBarProviderScope } from '@/ui/feedback/snack-bar-manager/scopes/SnackBarProviderScope';
import { AppThemeProvider } from '@/ui/theme/components/AppThemeProvider';
import { ThemeType } from '@/ui/theme/constants/ThemeLight';
import { UserProvider } from '@/users/components/UserProvider';
import { UserProviderEffect } from '@/users/components/UserProviderEffect';
import { PageChangeEffect } from '~/effect-components/PageChangeEffect';
Expand Down Expand Up @@ -82,7 +81,3 @@ root.render(
</AppErrorBoundary>
</RecoilRoot>,
);

declare module '@emotion/react' {
export interface Theme extends ThemeType {}
}
8 changes: 7 additions & 1 deletion packages/twenty-front/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
"**/*.test.ts",
"**/*.test.tsx"
],
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
"include": [
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.d.ts",
"src/**/*.ts",
"src/**/*.tsx"
]
}
1 change: 0 additions & 1 deletion packages/twenty-front/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
Expand Down

0 comments on commit 2bf47eb

Please sign in to comment.