Conversation
- 소스 기반 추출에서 .d.ts 기반 추출로 전환하여 빌드 산출물만으로 동작 - PackageConfig에서 미사용 entrypoint 필드 제거 - Vite HMR에서 .ts/.tsx 변경 시에도 props 캐시 무효화 - extractor 테스트 11개 추가 (bun test)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extractAllProps가 소스 파일 대신 빌드 산출물(.d.ts)에서 props를 추출하도록 변경.skipAddingFilesFromTsConfig: true로 소스 로딩을 건너뛰고, tsconfig의outDir에서.d.ts파일만 로드.d.ts와tsconfig.json만 감시하던 것을.ts/.tsx변경에도 props 캐시를 무효화하도록 확장PackageConfig.entrypoint필드 삭제extractor.test.ts11개 테스트 (컴포넌트 감지, props 정확성, override, 에러 처리)Verification
diff -rq로 동일함을 확인bun test11/11 통과Test plan
bun test src/— 11개 테스트 통과pnpm --filter astro-component-docs build— 빌드 성공pnpm --filter website build— 웹사이트 빌드 성공, 출력 동일