mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-02 00:22:32 +03:00
be20a690b3
Fixes: #6436 Changes made: - Added typecheck step before twenty-ui build to check stories TS errors - Added a tsconfig.dev.json to add stories and tests to typecheking when in dev mode - Added tsconfig.dev.json to storybook dev command of twenty-ui to typecheck stories while developing - Fixed twenty-ui stories that were broken - Added a serve command to serve front build - Fixed unit test from another PR --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com> Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable", "ES2023", "ES2023.Array"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
"allowJs": true,
|
|
"esModuleInterop": true,
|
|
"moduleResolution": "bundler",
|
|
"allowSyntheticDefaultImports": true,
|
|
"allowImportingTsExtensions": false,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"strict": true,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"outDir": "../../.cache/tsc",
|
|
"paths": {
|
|
"@/*": ["packages/twenty-front/src/modules/*"],
|
|
"~/*": ["packages/twenty-front/src/*"],
|
|
"twenty-ui": ["packages/twenty-ui/src/index.ts"],
|
|
"@ui/*": ["packages/twenty-ui/src/*"]
|
|
}
|
|
},
|
|
"files": [],
|
|
"exclude": ["**/object-metadata/utils/getObjectMetadataItemsMock.ts"],
|
|
"include": [],
|
|
"references": [
|
|
{
|
|
"path": "./tsconfig.dev.json"
|
|
},
|
|
{
|
|
"path": "./tsconfig.build.json"
|
|
},
|
|
{
|
|
"path": "./tsconfig.spec.json"
|
|
},
|
|
{
|
|
"path": "./tsconfig.storybook.json"
|
|
}
|
|
],
|
|
"extends": "../../tsconfig.base.json"
|
|
} |