Skip to main content
要以别名安装 npm 包:
terminal
bun add my-custom-name@npm:zod

现在 zod 包可以作为 my-custom-name 导入。
https://mintcdn.com/teemo/2s-4Z6VdGqiCeBNX/icons/typescript.svg?fit=max&auto=format&n=2s-4Z6VdGqiCeBNX&q=85&s=087b260066909db1cd3e9c7292bc34b2index.ts
import { z } from "my-custom-name";

z.string();

请参阅 文档 > 包管理器 以获取 Bun 包管理器的完整文档。