mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore: standardize tsconfig (#9568)
This commit is contained in:
@@ -10,5 +10,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"async-call-rpc": "^6.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine/electron": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
events as mainEvents,
|
||||
handlers as mainHandlers,
|
||||
} from '@affine/electron/main/exposed';
|
||||
import type { appInfo as exposedAppInfo } from '@affine/electron/preload/electron-api';
|
||||
import type { AppInfo } from '@affine/electron/preload/electron-api';
|
||||
import type { SharedStorage } from '@affine/electron/preload/shared-storage';
|
||||
|
||||
type MainHandlers = typeof mainHandlers;
|
||||
@@ -29,9 +29,7 @@ export type ClientHandler = {
|
||||
} & HelperHandlers;
|
||||
export type ClientEvents = MainEvents & HelperEvents;
|
||||
|
||||
export const appInfo = (globalThis as any).__appInfo as
|
||||
| typeof exposedAppInfo
|
||||
| null;
|
||||
export const appInfo = (globalThis as any).__appInfo as AppInfo | null;
|
||||
export const apis = (globalThis as any).__apis as ClientHandler | undefined;
|
||||
export const events = (globalThis as any).__events as ClientEvents | undefined;
|
||||
|
||||
@@ -39,7 +37,7 @@ export const sharedStorage = (globalThis as any).__sharedStorage as
|
||||
| SharedStorage
|
||||
| undefined;
|
||||
|
||||
export type { SharedStorage };
|
||||
export type { AppInfo, SharedStorage };
|
||||
|
||||
export {
|
||||
type SpellCheckStateSchema,
|
||||
@@ -49,3 +47,7 @@ export {
|
||||
type WorkbenchViewModule,
|
||||
} from '@affine/electron/main/shared-state-schema';
|
||||
export type { UpdateMeta } from '@affine/electron/main/updater/event';
|
||||
export type {
|
||||
AddTabOption,
|
||||
TabAction,
|
||||
} from '@affine/electron/main/windows-manager';
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"extends": "../../../tsconfig.web.json",
|
||||
"include": ["./src"],
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"noEmit": false,
|
||||
"outDir": "lib"
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../../common/infra"
|
||||
},
|
||||
{
|
||||
"path": "../../frontend/apps/electron"
|
||||
}
|
||||
]
|
||||
"references": [{ "path": "../apps/electron" }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user