fix: 型定義ファイル内のパスエイリアスを相対パスに変換#78
Merged
KinjiKawaguchi merged 1 commit intomainfrom Feb 1, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the build pipeline so that .d.ts files no longer contain unresolved subpath imports like #domain, by post-processing the build output with tsc-alias, and bumps the package version accordingly.
Changes:
- Bump package version from
2.1.1to2.1.2. - Update the
buildscript to runtsupand thentsc-aliasagainstdistusing the existingtsconfig.jsonpath aliases. - Add
tsc-alias(and its dependency graph inpackage-lock.json) as a dev dependency and reformat thefilesfield for consistency.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Bumps version, adds tsc-alias as a dev dependency, and updates the build script to rewrite path aliases in the emitted dist .d.ts files. |
| package-lock.json | Regenerates the lockfile to reflect the new version and the added tsc-alias package and its transitive dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tsupで生成される.d.tsファイル内の#domain等のsubpath importsが パッケージ利用者側で解決できない問題を修正。 tsc-aliasを追加し、ビルド後にパスエイリアスを相対パスに変換するように変更。 バージョンを2.1.2に更新。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
70f27c6 to
5e8ad0b
Compare
KinjiKawaguchi
added a commit
that referenced
this pull request
Mar 23, 2026
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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
.d.tsファイル内の#domain等のsubpath importsがパッケージ利用者側で解決できない問題を修正tsc-aliasを追加し、ビルド後にパスエイリアスを相対パスに変換するように変更背景
パッケージ利用者が
moduleResolution: "bundler"などを設定しても、.d.tsファイル内の#domainなどのsubpath importsはTypeScriptで解決できず、型がanyになる問題があった。Test plan
🤖 Generated with Claude Code