Skip to content

feat: detect Umi temp directories as safe Node build artifacts - #78

Merged
ohing504 merged 2 commits into
mainfrom
feat/umi-temp-dirs
Nov 2, 2026
Merged

ohing504 merged 2 commits into
mainfrom
feat/umi-temp-dirs

Conversation

@ohing504

@ohing504 ohing504 commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

무엇이 바뀌나

Node 프로젝트에서 Umi 임시 폴더 .umi, .umi-production, .umi-test를 build/safe 산출물로 찾는다. src/ 아래와 프로젝트 루트를 src/ 유무와 관계없이 모두 찾는다.

왜

Umi는 이 폴더들에 진입 파일, 라우트, webpack 캐시를 생성하고 dev, build, test를 실행할 때마다 다시 만든다. 공식 문서는 이 폴더들을 커밋하지 말라고 안내한다. 실제 Umi 3 프로젝트에서 이 폴더들이 670MB를 차지했지만 스캔에 잡히지 않았다. Umi는 src/가 있으면 src/ 아래에, 없으면 프로젝트 루트에 이 폴더들을 만든다(Umi 소스 packages/core/src/service/path.ts의 getPaths).

SPEC과 결정 문서

  • docs/SPEC.md § Node.js 산출물 표에 Umi 임시 폴더 행을 추가
  • 결정 문서는 바뀌지 않음

🤖 Generated with Claude Code

https://claude.ai/code/session_018n8bPcGZaeNmytfiBseBPR

ohing504 and others added 2 commits November 2, 2026 21:53
Umi generates .umi, .umi-production and .umi-test (entry, routes and
webpack cache) under src/ when it exists, else at the project root, and
regenerates them on dev, build and test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018n8bPcGZaeNmytfiBseBPR
Cover the root .umi of a project with src/ and the root .umi-test in
the Umi scanner test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018n8bPcGZaeNmytfiBseBPR
@ohing504
ohing504 merged commit 66b077a into main Nov 2, 2026
4 checks passed
@ohing504
ohing504 deleted the feat/umi-temp-dirs branch November 2, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant