要使用別名安裝 npm 包:
sh
bun add my-custom-name@npm:zod現在可以將 zod 包作為 my-custom-name 導入。
ts
import { z } from "my-custom-name";
z.string();請參閱 文檔 > 包管理器 獲取 Bun 包管理器的完整文檔。
要使用別名安裝 npm 包:
bun add my-custom-name@npm:zod現在可以將 zod 包作為 my-custom-name 導入。
import { z } from "my-custom-name";
z.string();請參閱 文檔 > 包管理器 獲取 Bun 包管理器的完整文檔。