fix: move workspace to top level (#2717)
This commit is contained in:
1 parent
7f2006488e
commit
4958d096b0
88 files changed
+353
-329
No files matched your search
@@ -3,7 +3,6 @@
|
||||
"private": true,
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@affine/env": "workspace:*",
|
||||
"jotai": "^2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { env } from '@affine/env';
|
||||
import type { EditorContainer } from '@blocksuite/editor';
|
||||
import { atom } from 'jotai';
|
||||
|
||||
export const lottieAtom = atom(import('lottie-web').then(m => m.default));
|
||||
|
||||
export const editorContainerModuleAtom = atom<Promise<typeof EditorContainer>>(
|
||||
env.isServer
|
||||
typeof window === 'undefined'
|
||||
? async () =>
|
||||
import('@blocksuite/editor').then(module => module.EditorContainer)
|
||||
: (import('@blocksuite/editor').then(
|
||||
|
||||
@@ -5,6 +5,5 @@
|
||||
"composite": true,
|
||||
"noEmit": false,
|
||||
"outDir": "lib"
|
||||
},
|
||||
"references": [{ "path": "../env" }]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user