From a099ed5f2965c1ac35403d43a73ee38dedf4c017 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Wed, 1 Mar 2023 20:13:45 -0600 Subject: [PATCH] feat: use `@affine/debug` (#1244) --- apps/web/next.config.mjs | 2 + apps/web/package.json | 1 + apps/web/src/hooks/use-workspaces.ts | 5 +- apps/web/src/plugins/local/index.tsx | 5 +- packages/debug/package.json | 10 +- packages/debug/src/index.ts | 10 +- packages/debug/tsconfig.json | 10 ++ packages/logger/next-env.d.ts | 5 - packages/logger/package.json | 24 ---- packages/logger/pages/index.tsx | 11 -- packages/logger/src/Logger.tsx | 9 -- packages/logger/src/index.ts | 1 - packages/logger/tsconfig.json | 4 - pnpm-lock.yaml | 191 ++------------------------- tsconfig.json | 4 +- 15 files changed, 40 insertions(+), 252 deletions(-) create mode 100644 packages/debug/tsconfig.json delete mode 100644 packages/logger/next-env.d.ts delete mode 100644 packages/logger/package.json delete mode 100644 packages/logger/pages/index.tsx delete mode 100644 packages/logger/src/Logger.tsx delete mode 100644 packages/logger/src/index.ts delete mode 100644 packages/logger/tsconfig.json diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 29e6e52669..bfca02916a 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -1,3 +1,4 @@ +// @ts-check import path from 'node:path'; import debugLocal from 'next-debug-local'; import preset from './preset.config.mjs'; @@ -61,6 +62,7 @@ const nextConfig = { '@affine/component', '@affine/datacenter', '@affine/i18n', + '@affine/debug', '@affine/env', ], publicRuntimeConfig: { diff --git a/apps/web/package.json b/apps/web/package.json index f0053712dc..16c9ef49d0 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -11,6 +11,7 @@ "dependencies": { "@affine/component": "workspace:*", "@affine/datacenter": "workspace:*", + "@affine/debug": "workspace:*", "@affine/env": "workspace:*", "@affine/i18n": "workspace:*", "@blocksuite/blocks": "0.4.1-20230220214107-0a354de", diff --git a/apps/web/src/hooks/use-workspaces.ts b/apps/web/src/hooks/use-workspaces.ts index ad27aaacab..0d515492cd 100644 --- a/apps/web/src/hooks/use-workspaces.ts +++ b/apps/web/src/hooks/use-workspaces.ts @@ -1,5 +1,5 @@ import { Workspace } from '@affine/datacenter'; -import { config } from '@affine/env'; +import { config, getEnvironment } from '@affine/env'; import { nanoid } from '@blocksuite/store'; import { useCallback, useMemo, useSyncExternalStore } from 'react'; import useSWR from 'swr'; @@ -88,6 +88,9 @@ const emptyWorkspaces: RemWorkspace[] = []; export async function refreshDataCenter(signal?: AbortSignal) { dataCenter.isLoaded = false; dataCenter.callbacks.forEach(cb => cb()); + if (getEnvironment().isServer) { + return; + } // fixme(himself65): `prefetchWorkspace` is not used // use `config.enablePlugin = ['affine', 'local']` instead // if (!config.prefetchWorkspace) { diff --git a/apps/web/src/plugins/local/index.tsx b/apps/web/src/plugins/local/index.tsx index 80cfbc5375..eceb8c4b2a 100644 --- a/apps/web/src/plugins/local/index.tsx +++ b/apps/web/src/plugins/local/index.tsx @@ -1,3 +1,4 @@ +import { DebugLogger } from '@affine/debug'; import { config } from '@affine/env'; import { assertEquals, nanoid } from '@blocksuite/store'; import React from 'react'; @@ -16,6 +17,8 @@ import { import { createEmptyBlockSuiteWorkspace } from '../../utils'; import { WorkspacePlugin } from '..'; +const logger = new DebugLogger('local-plugin'); + export const kStoreKey = 'affine-local-workspace'; export const LocalPlugin: WorkspacePlugin = { @@ -134,7 +137,7 @@ export const LocalPlugin: WorkspacePlugin = { if (signal?.aborted) { return; } - console.info('no local workspace found, create a new one'); + logger.info('no local workspace found, create a new one'); const workspaceId = nanoid(); const blockSuiteWorkspace = createEmptyBlockSuiteWorkspace(workspaceId); blockSuiteWorkspace.meta.setName('Untitled Workspace'); diff --git a/packages/debug/package.json b/packages/debug/package.json index 11c8bd8d9b..838d1cd2ae 100644 --- a/packages/debug/package.json +++ b/packages/debug/package.json @@ -2,13 +2,11 @@ "name": "@affine/debug", "private": true, "main": "./src/index.ts", - "keywords": [], - "repository": { - "type": "git", - "url": "git+https://github.com/toeverything/AFFiNE.git" - }, "dependencies": { - "@types/debug": "^4.1.7", + "@affine/env": "workspace:*", "debug": "^4.3.4" + }, + "devDependencies": { + "@types/debug": "^4.1.7" } } diff --git a/packages/debug/src/index.ts b/packages/debug/src/index.ts index ca195ba980..9e65e1e5ee 100644 --- a/packages/debug/src/index.ts +++ b/packages/debug/src/index.ts @@ -1,11 +1,13 @@ +import { getEnvironment } from '@affine/env'; import debug from 'debug'; - type LogLevel = 'debug' | 'info' | 'warn' | 'error'; -const SESSION_KEY = 'affine:debug'; -const development = process.env.NODE_ENV === 'development'; +const env = getEnvironment(); -if (typeof window !== 'undefined') { +const SESSION_KEY = 'affine:debug'; +const development = env.isDebug; + +if (env.isBrowser) { // enable debug logs if the URL search string contains `debug` // e.g. http://localhost:3000/?debug if (window.location.search.includes('debug')) { diff --git a/packages/debug/tsconfig.json b/packages/debug/tsconfig.json new file mode 100644 index 0000000000..d55dc90ebc --- /dev/null +++ b/packages/debug/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "module": "ESNext", + "target": "ESNext", + "sourceMap": true + }, + "include": ["./src"], + "exclude": ["node_modules"] +} diff --git a/packages/logger/next-env.d.ts b/packages/logger/next-env.d.ts deleted file mode 100644 index 4f11a03dc6..0000000000 --- a/packages/logger/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/logger/package.json b/packages/logger/package.json deleted file mode 100644 index b5dbf295b2..0000000000 --- a/packages/logger/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@affine/logger", - "version": "0.3.0", - "description": "", - "main": "./src/index.ts", - "scripts": { - "dev": "next dev", - "build": "tsc --project ./tsconfig.json" - }, - "keywords": [], - "repository": { - "type": "git", - "url": "git+https://github.com/toeverything/AFFiNE.git" - }, - "dependencies": { - "next": "^13.1.6", - "react": "^18.2.0", - "react-dom": "^18.2.0" - }, - "devDependencies": { - "@types/react": "^18.0.28", - "typescript": "^4.9.5" - } -} diff --git a/packages/logger/pages/index.tsx b/packages/logger/pages/index.tsx deleted file mode 100644 index 5e3f2d3581..0000000000 --- a/packages/logger/pages/index.tsx +++ /dev/null @@ -1,11 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-restricted-imports -import { Logger } from '../src'; - -const Page = () => { - return ( -
-

Track Example

- -
- ); -}; diff --git a/packages/logger/src/Logger.tsx b/packages/logger/src/Logger.tsx deleted file mode 100644 index 1c2941b38a..0000000000 --- a/packages/logger/src/Logger.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import { useEffect } from 'react'; - -export const Logger = () => { - useEffect(() => { - console.log('@affine/logger: Render Track'); - }, []); - - return null; -}; diff --git a/packages/logger/src/index.ts b/packages/logger/src/index.ts deleted file mode 100644 index 3e96d48eeb..0000000000 --- a/packages/logger/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { Logger } from './Logger'; diff --git a/packages/logger/tsconfig.json b/packages/logger/tsconfig.json deleted file mode 100644 index 7513033f03..0000000000 --- a/packages/logger/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["./src"] -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87fe98bf51..ccfca27d0a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -144,6 +144,7 @@ importers: specifiers: '@affine/component': workspace:* '@affine/datacenter': workspace:* + '@affine/debug': workspace:* '@affine/env': workspace:* '@affine/i18n': workspace:* '@blocksuite/blocks': 0.4.1-20230220214107-0a354de @@ -186,6 +187,7 @@ importers: dependencies: '@affine/component': link:../../packages/component '@affine/datacenter': link:../../packages/data-center + '@affine/debug': link:../../packages/debug '@affine/env': link:../../packages/env '@affine/i18n': link:../../packages/i18n '@blocksuite/blocks': 0.4.1-20230220214107-0a354de_txcevohh7lsyxi5mbohonudlma @@ -337,11 +339,14 @@ importers: packages/debug: specifiers: + '@affine/env': workspace:* '@types/debug': ^4.1.7 debug: ^4.3.4 dependencies: - '@types/debug': 4.1.7 + '@affine/env': link:../env debug: 4.3.4 + devDependencies: + '@types/debug': 4.1.7 packages/env: specifiers: @@ -379,21 +384,6 @@ importers: ts-node: 10.9.1_ellgaeuoqnti3hful2ny2iugba typescript: 4.9.5 - packages/logger: - specifiers: - '@types/react': ^18.0.28 - next: ^13.1.6 - react: ^18.2.0 - react-dom: ^18.2.0 - typescript: ^4.9.5 - dependencies: - next: 13.1.6_biqbaboplfbrettd7655fr4n2y - react: 18.2.0 - react-dom: 18.2.0_react@18.2.0 - devDependencies: - '@types/react': 18.0.28 - typescript: 4.9.5 - packages: /@ampproject/remapping/2.2.0: @@ -3537,10 +3527,6 @@ packages: resolution: {integrity: sha512-6iNixFzCndH+Bl4FetQzOMjxCJqg8fs0LAlZviig1K6mIjOWH2m2oPcHcOg1Ta5VCe7Bx5KG1Hs+NrWDUkBt9A==} dev: false - /@next/env/13.1.6: - resolution: {integrity: sha512-s+W9Fdqh5MFk6ECrbnVmmAOwxKQuhGMT7xXHrkYIBMBcTiOqNWhv5KbJIboKR5STXxNXl32hllnvKaffzFaWQg==} - dev: false - /@next/env/13.2.2: resolution: {integrity: sha512-sBcFEJS8j2cNQemYy07TKUd8lSWj3/mzFA4GCTr/4T4LfYiw5Ep+PZ06AuFdR3z+jIZt9YqaXwUYi1J4p4yABQ==} dev: true @@ -3564,15 +3550,6 @@ packages: dev: false optional: true - /@next/swc-android-arm-eabi/13.1.6: - resolution: {integrity: sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ==} - engines: {node: '>= 10'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: false - optional: true - /@next/swc-android-arm-eabi/13.2.2: resolution: {integrity: sha512-JHTnsNTl9gDQkWqggJFj6rQHK2+9lIMGolOPihfZBQAE48amVsGkYyFHbiuWnhwnYX99fCFWomARDwOtLAhzdQ==} engines: {node: '>= 10'} @@ -3600,15 +3577,6 @@ packages: dev: false optional: true - /@next/swc-android-arm64/13.1.6: - resolution: {integrity: sha512-cMwQjnB8vrYkWyK/H0Rf2c2pKIH4RGjpKUDvbjVAit6SbwPDpmaijLio0LWFV3/tOnY6kvzbL62lndVA0mkYpw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: false - optional: true - /@next/swc-android-arm64/13.2.2: resolution: {integrity: sha512-j3zfjrojWuejU7bjucwBFviN9hQkQ1HqRVYMp8PDX82LXMc2pV4uZ3e9jQ8qk3OWsA1m+luaBK8o46NvS/Tetg==} engines: {node: '>= 10'} @@ -3636,15 +3604,6 @@ packages: dev: false optional: true - /@next/swc-darwin-arm64/13.1.6: - resolution: {integrity: sha512-KKRQH4DDE4kONXCvFMNBZGDb499Hs+xcFAwvj+rfSUssIDrZOlyfJNy55rH5t2Qxed1e4K80KEJgsxKQN1/fyw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: false - optional: true - /@next/swc-darwin-arm64/13.2.2: resolution: {integrity: sha512-X66dKAq6IBmkirnsWyvncJ9i3kWkE2WrRbXGoFoEPNoyjgtV2qyLyk4ET9JIS0TJ2u01qODML6j4pKeqK8rNLA==} engines: {node: '>= 10'} @@ -3672,15 +3631,6 @@ packages: dev: false optional: true - /@next/swc-darwin-x64/13.1.6: - resolution: {integrity: sha512-/uOky5PaZDoaU99ohjtNcDTJ6ks/gZ5ykTQDvNZDjIoCxFe3+t06bxsTPY6tAO6uEAw5f6vVFX5H5KLwhrkZCA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: false - optional: true - /@next/swc-darwin-x64/13.2.2: resolution: {integrity: sha512-jsJKzVLlCNrG/Ot9Owv8QWUymAyS+Hcf/KQsXOYtL6PgvGqBMJ931SdaBpLOuyRD+sozTIRiAPCDwVgF/62PBQ==} engines: {node: '>= 10'} @@ -3708,15 +3658,6 @@ packages: dev: false optional: true - /@next/swc-freebsd-x64/13.1.6: - resolution: {integrity: sha512-qaEALZeV7to6weSXk3Br80wtFQ7cFTpos/q+m9XVRFggu+8Ib895XhMWdJBzew6aaOcMvYR6KQ6JmHA2/eMzWw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: false - optional: true - /@next/swc-freebsd-x64/13.2.2: resolution: {integrity: sha512-oToMAjhdGWSgSOimKJ9GwPxOqoBIbbVUKoFGP5Imy5UGbbsnyV2jSLGhoi2/dH1Ko5X5d1R1la/X05xNB/p6ag==} engines: {node: '>= 10'} @@ -3744,15 +3685,6 @@ packages: dev: false optional: true - /@next/swc-linux-arm-gnueabihf/13.1.6: - resolution: {integrity: sha512-OybkbC58A1wJ+JrJSOjGDvZzrVEQA4sprJejGqMwiZyLqhr9Eo8FXF0y6HL+m1CPCpPhXEHz/2xKoYsl16kNqw==} - engines: {node: '>= 10'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-arm-gnueabihf/13.2.2: resolution: {integrity: sha512-DSgXP2kkLt+oM3fRWaa2xPAUmtTnoa+GBfV5Czbgv4htY1BKClobp7Bj909TZUswvxXJtXiW8GrJp2To5lQfmw==} engines: {node: '>= 10'} @@ -3780,15 +3712,6 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu/13.1.6: - resolution: {integrity: sha512-yCH+yDr7/4FDuWv6+GiYrPI9kcTAO3y48UmaIbrKy8ZJpi7RehJe3vIBRUmLrLaNDH3rY1rwoHi471NvR5J5NQ==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-arm64-gnu/13.2.2: resolution: {integrity: sha512-HR1Nf7kz5NmijCiArJTz4bjJlbWyPA3JQ3SbxnPXDMPUkECBG1p0z6y2N2+oqNouMyOriNR6TSEgh7F2tASdZg==} engines: {node: '>= 10'} @@ -3816,15 +3739,6 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl/13.1.6: - resolution: {integrity: sha512-ECagB8LGX25P9Mrmlc7Q/TQBb9rGScxHbv/kLqqIWs2fIXy6Y/EiBBiM72NTwuXUFCNrWR4sjUPSooVBJJ3ESQ==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-arm64-musl/13.2.2: resolution: {integrity: sha512-hDf08/yPZisKQ19lMHkVuQUmipmSq9QPzFmNDcV7e4QazTbIRwCC8J605EHedg+RGHS78CUwVhGQoQ2mbQ5y3w==} engines: {node: '>= 10'} @@ -3852,15 +3766,6 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu/13.1.6: - resolution: {integrity: sha512-GT5w2mruk90V/I5g6ScuueE7fqj/d8Bui2qxdw6lFxmuTgMeol5rnzAv4uAoVQgClOUO/MULilzlODg9Ib3Y4Q==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-x64-gnu/13.2.2: resolution: {integrity: sha512-9QeTU1YVhQXoVUOBXErJoExZR3XTovplMCTwB+RAtHu3oUGGs4KQFY8MoFUOmMA7CAJnKS+h1MD1T9/HDpS9PQ==} engines: {node: '>= 10'} @@ -3888,15 +3793,6 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl/13.1.6: - resolution: {integrity: sha512-keFD6KvwOPzmat4TCnlnuxJCQepPN+8j3Nw876FtULxo8005Y9Ghcl7ACcR8GoiKoddAq8gxNBrpjoxjQRHeAQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-x64-musl/13.2.2: resolution: {integrity: sha512-SvyejahQLY79YJFXU27AcoDbmRqdK08t7HAf5LmocLdR5fxIneg7Oim/pwcuS/w8pYqDSAiCiMO0AAxSfO5jZQ==} engines: {node: '>= 10'} @@ -3924,15 +3820,6 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc/13.1.6: - resolution: {integrity: sha512-OwertslIiGQluFvHyRDzBCIB07qJjqabAmINlXUYt7/sY7Q7QPE8xVi5beBxX/rxTGPIbtyIe3faBE6Z2KywhQ==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: false - optional: true - /@next/swc-win32-arm64-msvc/13.2.2: resolution: {integrity: sha512-Av46kUBp1qtJdk/HrIHZMIARE+jcMSJLHcrs/MkbHR1p4iEXf3JkZRrdQDUKZaz/VHDYc7Qw+vUv7zmgPZJbmw==} engines: {node: '>= 10'} @@ -3960,15 +3847,6 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc/13.1.6: - resolution: {integrity: sha512-g8zowiuP8FxUR9zslPmlju7qYbs2XBtTLVSxVikPtUDQedhcls39uKYLvOOd1JZg0ehyhopobRoH1q+MHlIN/w==} - engines: {node: '>= 10'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: false - optional: true - /@next/swc-win32-ia32-msvc/13.2.2: resolution: {integrity: sha512-6HvAJY7yYfU+Ast3GPM8O+BsLGAdhZV0qUwHerJo5+Yzzx0VXW+OZTJ9O6RU01HBiMiqdz7SF3Or4Vca6WZKkQ==} engines: {node: '>= 10'} @@ -3996,15 +3874,6 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc/13.1.6: - resolution: {integrity: sha512-Ls2OL9hi3YlJKGNdKv8k3X/lLgc3VmLG3a/DeTkAd+lAituJp8ZHmRmm9f9SL84fT3CotlzcgbdaCDfFwFA6bA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: false - optional: true - /@next/swc-win32-x64-msvc/13.2.2: resolution: {integrity: sha512-7oNoiepUMf43+/4kUdpeGGkEBd3bOQwzo4O+bq/jslHb1IrQ7b8ZF1ODQyrDd661um6q5D+0sOtyRZJpo8e1jQ==} engines: {node: '>= 10'} @@ -5555,7 +5424,7 @@ packages: resolution: {integrity: sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==} dependencies: '@types/ms': 0.7.31 - dev: false + dev: true /@types/detect-port/1.3.2: resolution: {integrity: sha512-xxgAGA2SAU4111QefXPSp5eGbDm/hW6zhvYl9IeEPZEry9F4d66QAHm5qpUXjb6IsevZV/7emAEx5MhP6O192g==} @@ -5708,7 +5577,7 @@ packages: /@types/ms/0.7.31: resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} - dev: false + dev: true /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} @@ -10914,50 +10783,6 @@ packages: - babel-plugin-macros dev: false - /next/13.1.6_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw==} - engines: {node: '>=14.6.0'} - hasBin: true - peerDependencies: - fibers: '>= 3.1.0' - node-sass: ^6.0.0 || ^7.0.0 - react: ^18.2.0 - react-dom: ^18.2.0 - sass: ^1.3.0 - peerDependenciesMeta: - fibers: - optional: true - node-sass: - optional: true - sass: - optional: true - dependencies: - '@next/env': 13.1.6 - '@swc/helpers': 0.4.14 - caniuse-lite: 1.0.30001419 - postcss: 8.4.14 - react: 18.2.0 - react-dom: 18.2.0_react@18.2.0 - styled-jsx: 5.1.1_react@18.2.0 - optionalDependencies: - '@next/swc-android-arm-eabi': 13.1.6 - '@next/swc-android-arm64': 13.1.6 - '@next/swc-darwin-arm64': 13.1.6 - '@next/swc-darwin-x64': 13.1.6 - '@next/swc-freebsd-x64': 13.1.6 - '@next/swc-linux-arm-gnueabihf': 13.1.6 - '@next/swc-linux-arm64-gnu': 13.1.6 - '@next/swc-linux-arm64-musl': 13.1.6 - '@next/swc-linux-x64-gnu': 13.1.6 - '@next/swc-linux-x64-musl': 13.1.6 - '@next/swc-win32-arm64-msvc': 13.1.6 - '@next/swc-win32-ia32-msvc': 13.1.6 - '@next/swc-win32-x64-msvc': 13.1.6 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - dev: false - /next/13.2.2_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-dDKfGBqSxqmqx5WN9tDFg0uGUkD/LGUxR29tpe8AEmo2SwfbPWf04qyvDcKmpjt2fCzP4132BvFRZFlg+11kGw==} engines: {node: '>=14.6.0'} diff --git a/tsconfig.json b/tsconfig.json index 29cb4cad27..02e3dcd00f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,10 +20,8 @@ "@affine/component": ["./packages/component/src/index"], "@affine/datacenter": ["./packages/datacenter/src"], "@affine/i18n": ["./packages/i18n/src"], - "@affine/logger": ["./packages/logger/src"], "@affine/debug": ["./packages/debug"], - "@affine/env": ["./packages/env"], - "@toeverything/pathfinder-logger": ["./packages/logger"] + "@affine/env": ["./packages/env"] } }, "references": [