mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
chore: replace cross-env with shell-emulator & misc (#1464)
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
} from '../components/BlockSuiteEditor';
|
||||
|
||||
const workspace = new Workspace({
|
||||
room: 'test',
|
||||
id: 'test',
|
||||
providers: [],
|
||||
isSSR: typeof window === 'undefined',
|
||||
}).register(builtInSchemas);
|
||||
|
||||
Vendored
+6
@@ -51,6 +51,12 @@ export type Environment = Browser | Server | Desktop;
|
||||
|
||||
let environment: Environment | null = null;
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
CLIENT_APP?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export function getEnvironment() {
|
||||
if (environment) {
|
||||
return environment;
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["./src"]
|
||||
}
|
||||
Reference in New Issue
Block a user