From 7ee08368a229f4e8e77d847435f0b818a7f22683 Mon Sep 17 00:00:00 2001 From: Haoxin Yang <1810849666@qq.com> Date: Tue, 25 Jun 2024 18:30:17 +0800 Subject: [PATCH 1/2] chore: mod tsconfig to use relative path import --- src/date-picker/trigger/trigger.component.ts | 4 +--- stories/input/number-input.component.ts | 2 +- stories/input/search-input.component.ts | 2 +- stories/select/basic.component.ts | 2 +- tsconfig.json | 3 +-- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/date-picker/trigger/trigger.component.ts b/src/date-picker/trigger/trigger.component.ts index fb338eab7..3e0fb924a 100644 --- a/src/date-picker/trigger/trigger.component.ts +++ b/src/date-picker/trigger/trigger.component.ts @@ -13,14 +13,12 @@ import { } from '@angular/core'; import { Dayjs } from 'dayjs'; -import { I18nPipe } from '../../i18n/i18n.pipe'; +import { I18nPipe, I18nService } from '../../i18n'; import { IconComponent } from '../../icon/icon.component'; import { InputComponent } from '../../input/input.component'; import { ComponentSize } from '../../internal/types'; import { buildBem } from '../../internal/utils'; -import { I18nService } from 'src/i18n'; - const bem = buildBem('aui-date-picker-trigger'); @Component({ diff --git a/stories/input/number-input.component.ts b/stories/input/number-input.component.ts index 5b0c612e9..771a32282 100644 --- a/stories/input/number-input.component.ts +++ b/stories/input/number-input.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; -import { ComponentSize } from 'src'; +import { ComponentSize } from '@alauda/ui'; @Component({ template: ` diff --git a/stories/input/search-input.component.ts b/stories/input/search-input.component.ts index 264780872..a164c26a6 100644 --- a/stories/input/search-input.component.ts +++ b/stories/input/search-input.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; -import { ComponentSize } from 'src'; +import { ComponentSize } from '@alauda/ui'; @Component({ template: ` diff --git a/stories/select/basic.component.ts b/stories/select/basic.component.ts index 8bfefcdac..1fd7fd4cc 100644 --- a/stories/select/basic.component.ts +++ b/stories/select/basic.component.ts @@ -2,7 +2,7 @@ import { NgFor } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { SelectModule } from 'src'; +import { SelectModule } from '@alauda/ui'; @Component({ standalone: true, diff --git a/tsconfig.json b/tsconfig.json index 9bead5122..de24a8974 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,9 +9,8 @@ ], "exclude": ["dist", "release"], "compilerOptions": { - "baseUrl": ".", "paths": { - "@alauda/ui": ["src"] + "@alauda/ui": ["./src"] }, "strictNullChecks": false }, From d2ae75ed136d8545cbd6e640587afa8c2c80076f Mon Sep 17 00:00:00 2001 From: Mrlang <1810849666@qq.com> Date: Tue, 25 Jun 2024 18:33:37 +0800 Subject: [PATCH 2/2] Create polite-guests-dance.md --- .changeset/polite-guests-dance.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/polite-guests-dance.md diff --git a/.changeset/polite-guests-dance.md b/.changeset/polite-guests-dance.md new file mode 100644 index 000000000..30f62a51c --- /dev/null +++ b/.changeset/polite-guests-dance.md @@ -0,0 +1,5 @@ +--- +"@alauda/ui": patch +--- + +chore: mod tsconfig to use relative path import