<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>p_craft</author_name>
  <author_url>https://blog.hatena.ne.jp/p_craft/</author_url>
  <blog_title>弁護士ドットコム株式会社 Creators’ blog</blog_title>
  <blog_url>https://creators.bengo4.com/</blog_url>
  <categories>
    <anon>クラウドサイン</anon>
    <anon>フロントエンド</anon>
  </categories>
  <description>要旨 tsc のパスエイリアスはモジュール解決のために存在するもので、出力結果を書き換えるものではない 対策をしなければ、型定義ファイルにパスエイリアスがそのまま残り、npm パッケージとして公開されてしまう これにより、使用側で型の解決が正しく動作しないなどの問題が発生する 出力結果に含まれるパスエイリアスを書き換えたいなら、tsc 以外のツールを使う必要がある 今回は tsc-alias パッケージを使用して、ビルド後にパスエイリアスを相対パスに書き換える方法を採用した はじめに これはわたしが実際に体験した話なんですけどね。 クラウドサインには Delta Wing UI という、内製の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcreators.bengo4.com%2Fentry%2F2025%2F08%2F29%2F113000&quot; title=&quot;恐怖！ ビルドされたnpmパッケージ内のd.tsにパスエイリアス(~)！ - 弁護士ドットコム株式会社 Creators’ blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/b/bengo4/20250829/20250829113026.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-29 11:30:00</published>
  <title>恐怖！ ビルドされたnpmパッケージ内のd.tsにパスエイリアス(~)！</title>
  <type>rich</type>
  <url>https://creators.bengo4.com/entry/2025/08/29/113000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
