chore: prohibit import package itself (#2612)

Co-authored-by: Whitewater <me@waterwater.moe>
This commit is contained in:
Himself65
2023-05-31 15:00:50 +08:00
committed by GitHub
parent 06abb702f5
commit 248cd9a8ab
38 changed files with 138 additions and 98 deletions
@@ -1,9 +1,9 @@
import type { SQLiteProvider } from '@affine/workspace/type';
import { __unstableSchemas, AffineSchemas } from '@blocksuite/blocks/models';
import type { Y as YType } from '@blocksuite/store';
import { uuidv4, Workspace } from '@blocksuite/store';
import { beforeEach, describe, expect, test, vi } from 'vitest';
import type { SQLiteProvider } from '../../type';
import { createSQLiteProvider } from '../index';
const Y = Workspace.Y;
@@ -1,4 +1,3 @@
import { CallbackSet } from '@affine/workspace/utils';
import { Workspace as BlockSuiteWorkspace } from '@blocksuite/store';
import { assertExists } from '@blocksuite/store';
import type { Awareness } from 'y-protocols/awareness';
@@ -8,6 +7,7 @@ import {
} from 'y-protocols/awareness';
import type { BroadCastChannelProvider } from '../../type';
import { CallbackSet } from '../../utils';
import { localProviderLogger } from '../logger';
import type {
AwarenessChanges,