mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: standardize tsconfig (#9568)
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
"update-shadcn": "shadcn-ui add -p src/components/ui"
|
||||
},
|
||||
"exports": {
|
||||
"./*": "./src/*"
|
||||
"./*": "./src/*.ts",
|
||||
"./components/ui/*": "./src/components/ui/*.tsx"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@ import {
|
||||
ToastTitle,
|
||||
ToastViewport,
|
||||
} from '@affine/admin/components/ui/toast';
|
||||
import { useToast } from '@affine/admin/components/ui/use-toast';
|
||||
|
||||
import { useToast } from './use-toast';
|
||||
|
||||
export function Toaster() {
|
||||
const { toasts } = useToast();
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "../../../tsconfig.web.json",
|
||||
"include": ["./src"],
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
"allowJs": true,
|
||||
"composite": true,
|
||||
"verbatimModuleSyntax": false,
|
||||
"jsx": "react-jsx"
|
||||
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../component" },
|
||||
{ "path": "../core" },
|
||||
{ "path": "../graphql" },
|
||||
{ "path": "../../common/infra" }
|
||||
],
|
||||
"exclude": ["dist"]
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user