feat: migrate to blocksuite/affine (#8332)

Use `@blocksuite/affine` package for all blocksuite features in affine.

```ts
@blocksuite/store -> @blocksuite/affine/store
@blocksuite/global -> @blocksuite/affine/global
@blocksuite/block-std -> @blocksuite/affine/block-std
@blocksuite/blocks -> @blocksuite/affine/blocks
@blocksuite/presets -> @blocksuite/affine/presets
```
This commit is contained in:
Saul-Mirone
2024-09-20 10:55:47 +00:00
parent 39f60145fe
commit 35e232c61c
221 changed files with 504 additions and 486 deletions

View File

@@ -17,13 +17,11 @@ import corePackage from '../../packages/frontend/core/package.json' assert { typ
const clipboard = new Clipboard();
const oldHash = corePackage.dependencies['@blocksuite/block-std']
.split('-')
.pop();
const oldHash = corePackage.dependencies['@blocksuite/affine'].split('-').pop();
const info = await fetch(
'https://registry.npmjs.org/@blocksuite/block-std'
).then(res => res.json());
const info = await fetch('https://registry.npmjs.org/@blocksuite/affine').then(
res => res.json()
);
const latestVersion = info['dist-tags'].latest;
const latestHash = latestVersion.split('-').pop();