From e46102652077bea1a17eb02e159e1e37fde538ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Mon, 27 Jan 2025 18:29:31 +0800 Subject: [PATCH] chore: base alias --- tests/focus.test.tsx | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/focus.test.tsx b/tests/focus.test.tsx index 6e36452..44f6f53 100644 --- a/tests/focus.test.tsx +++ b/tests/focus.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { spyElementPrototypes } from 'rc-util/lib/test/domHook'; -import Input from 'rc-input'; +import Input from '../src'; import { fireEvent, render } from '@testing-library/react'; const getInputRef = () => { diff --git a/tsconfig.json b/tsconfig.json index 71f9c78..b8da981 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "@/*": ["src/*"], "@@/*": [".dumi/tmp/*"], - "rc-input": ["src/index.tsx"] + "rc-input": ["src/index.tsx"], + "@rc-component/input": ["src/index.tsx"] } }, "include": [".dumirc.ts", "**/*.ts", "**/*.tsx"]