From 392c9cc0d6c663c63ad0f85671e84d81e13b6492 Mon Sep 17 00:00:00 2001 From: himself65 Date: Mon, 6 Feb 2023 10:59:47 -0600 Subject: [PATCH] fix: alias --- packages/data-center/package.json | 1 - packages/i18n/package.json | 1 - packages/logger/package.json | 1 - tsconfig.json | 5 ++++- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/data-center/package.json b/packages/data-center/package.json index 087fb0b33d..0f5a56ca79 100644 --- a/packages/data-center/package.json +++ b/packages/data-center/package.json @@ -6,7 +6,6 @@ "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "exports": { - "./src/*": "./dist/src/*.js", ".": "./dist/src/index.js" }, "scripts": { diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 29358083a3..b92bac2669 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -6,7 +6,6 @@ "type": "module", "types": "dist/src/index.d.ts", "exports": { - "./src/*": "./dist/src/*.js", ".": "./dist/src/index.js" }, "scripts": { diff --git a/packages/logger/package.json b/packages/logger/package.json index b1c858f613..e0295266b0 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -5,7 +5,6 @@ "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "exports": { - "./src/*": "./dist/src/*.js", ".": "./dist/src/index.js" }, "scripts": { diff --git a/tsconfig.json b/tsconfig.json index 592edefeb6..f197d7b026 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,10 @@ "experimentalDecorators": true, "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": ["src/*"], + "@affine/datacenter": ["packages/datacenter/src"], + "@affine/i18n": ["packages/i18n/src"], + "@affine/logger": ["packages/logger/src"] } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],