每日构建
TypeScript 的 main
分支的夜间构建在太平洋标准时间午夜发布到 npm。以下是您如何获取它并将其与您的工具一起使用。
使用 npm
npm install -g typescript@next
更新您的 IDE 以使用每日构建
您还可以更新您的 IDE 以使用 nightly drop。首先,您需要通过 npm 安装包。您可以全局安装 npm 包或安装到本地 node_modules
文件夹。
本节的其余部分假设 typescript@next
已经安装。
Visual Studio Code
使用以下内容更新 .vscode/settings.json
:
"typescript.tsdk": "<path to your folder>/node_modules/typescript/lib"
更多信息请访问 VSCode 文档。
Sublime Text
Sk5OPBc2He/2luO8jyTIesE7YjOAfwpM4uPzaVgBthvheYyrT6N0I/q0a/vAO/U4TSqiie3lfmxH1AcolNz8Rw==
"typescript_tsdk": "<path to your folder>/node_modules/typescript/lib"
zqeDLMMdUhSyiKZYpYX7hvLf5USvcSZCRRmJ2IFaw6W0FAFBCXurznElmLYoOHlwaV1VM4BElNWZ4sK5abYknE7pRpW9E5tRjgRdys1Mo+SVynYPKh4g9rR+/VP81vwMSGRUTiRZ4xiMg/YvyWI07LFg0Lre1vRJsvKlCqYunY1eNGpvIyDHDUcE1/jWQBlH
Visual Studio 2013 和 2015
i36dGk/0hYm1gtU2dByUaKvwUfPw6Zri51qsKPsTSpCmg2jpQ/0gEY8ddA1k1ehOs+T1lI/U+6854xA5KxOZyYjTktr2dgywwujkUuBg0D8=
e0NWWP7iUEfcoe/hMUb+28XiRJGtnGR9j9o+hB2ZT+wLzOi9fLYWNYiTFG0VudEtp0cVw4ufE/UgX/gc+lh6lntYVJqaiUznlLgiqCHgoMihIH8Tauv7H2IcmB0Ake/4kvm/sV/amTqEnhzxcJkEdQ==
YTlBcwoVu5tzOqDY/3qE65B6RchH4GSxZFCsRJxs7BMJfzmRSspDYr08PxaXPahQx1rl3YIOwUs8vRuAF95k0lcM6Sy+Chnx9kauYcf7JRU=
gejpIz8WpcPaaPlmF8zbJNvIxzbnTbeZZanOd33sGH+/njfeFwZMUTzUmQFIULEq3QHxmukvK/ALBWqrDHucXty791LLT8mOR2gJvg0YQ1xp2sEkBvsMEk03Qpw5UFF3GIGN+cxDN4efzBjXkBcNx5+z9lAxzg9D/yN27jCrIPw=
qx+WyADU1LQh0+Zecj0QThxZSR6X5LPA9y5ECEfemOSA00O5RQX+1MvVq+5PuulZ
FZDNrAJJ5xDy/yX+mXLV+EbUtRWQ5PJnWPP0Xq+p30g=
VSDevMode.ps1 14 -tsScript <path to your folder>/node_modules/typescript/lib
hKNgT5LaUVGxnUiRSqQKMLhZUeXijClgsZisxSBVu2Y=
VSDevMode.ps1 12 -tsScript <path to your folder>/node_modules/typescript/lib
IntelliJ IDEA(Mac)
yTdO59Bp6KvdkVo2fHKcTuPr2JO5vAkJJwxUdSyh6SuecmVx563n78gKfmJrkqobfr3fyF4Mx0oWVTzlpDWdVz7eLFV/Kt5Ua5MFQQlvAOo6vbxcQEIXSFrB1iPhxjVkGZv+DP+86sk9BR5Kd8hQIA==
kUwo1qcEpzwrc+0QyVScZZmh0k8dhUWjdXGifAXwW80xZN7VM+dc8Zx8imySGe45QTdD/BkIo2BP84LE+S7sM/4u5+OHoIxO+H1p8C9kCRiG/tXMRf5wR7y1lUdCBsmduoKDSZMapmTPm/dbkzMFQw==
IntelliJ IDEA(Windows)
BIjbvPSnRbCrcDUkMxgCwy5aIZAgdxXE6d4VlNu9v7QlUfVnm62twEy399mt8oW+L+2HxUvCRGWjr++rUsi+NUahjaGSZkMc96CqnSu0poj3TyFtM59xjYVOiC9S3iVZdGGE3ko+fQQUB55GIKuJk85Fn3xuzU10r/M7ShaC8ouRcT7kwIgcBKFcrnDbo4ON
kUwo1qcEpzwrc+0QyVScZZmh0k8dhUWjdXGifAXwW80xZN7VM+dc8Zx8imySGe45wkPYTadP3Q/GGJoTV/o9RgnfcB2y9nPTIcPkI2VLGIg+3cSc9o8KKz/jf3NPsk08qS48tmt92GaYrty/MfnGSCAtv0g7Zm91h21Orx4Nk8o=