Skip to content

chore: ビルド成果物(cjs/esm)を非コミット化#19

Merged
april418 merged 1 commit into
masterfrom
chore/gitignore-build-artifacts
Jun 9, 2026
Merged

chore: ビルド成果物(cjs/esm)を非コミット化#19
april418 merged 1 commit into
masterfrom
chore/gitignore-build-artifacts

Conversation

@april418

@april418 april418 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

概要

im-core のビルド成果物 cjs/ esm/ をコミット対象から外す。version 据え置き・republish なし(published パッケージは CI が再ビルドするため不変)。

根拠

  • publish CI(publish-to-artifactregistry.yml)は pnpm run build(tsc)→pnpm publish毎回 cjs/esm を生成するため、コミット済み成果物は publish に不要
  • コミットは drift・レビューノイズ・マージコンフリクトを招くだけ(利点なし)
  • 同組織の IMUID-js は既に dist を gitignoreim-ulid も同時に非コミット化(Bump word-wrap from 1.2.3 to 1.2.4 #7) で方針を揃える
  • consumer は AR から取得(ignoreScripts: true で prepare も走らない)→ git install 非依存

変更内容

  • .gitignorecjs/ esm/ を追加
  • git rm -r --cached cjs esm(追跡解除・ディスク上のファイルは保持)

build(tsc) は cjs/esm/.d.ts を完全生成するため、非コミット化しても publish に影響なし。

🤖 Generated with Claude Code

cjs/esm は publish CI の `pnpm run build`(tsc) で生成され publish される
ため、リポジトリにコミットする必要がない。コミットは drift・レビュー
ノイズ・コンフリクトを招くだけ。.gitignore に cjs/ esm/ を追加し追跡から
外す(--cached でディスク上のファイルは保持)。published パッケージは CI が
再ビルドするため不変。同組織の IMUID-js / im-ulid と方針を揃える。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@april418 april418 merged commit 3d4b57b into master Jun 9, 2026
2 checks passed
@april418 april418 deleted the chore/gitignore-build-artifacts branch June 9, 2026 17:36
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