@zuplo/editor

中文文档
1.0.41542387496发布于 2026/11/03MITTypeScriptES Module零依赖

Local development editor for the Zuplo CLI

原始使用文档

Zuplo Editor

This project is not meant to be used independently. It is part of the Zuplo CLI

Publishing

The published package is publish/, not this directory.

pnpm --filter @zuplo/editor build:package
npm publish ./packages/editor/publish

This directory is a workspace member, so publishing it directly would ship the spec files and a dependencies list containing everything the editor imports. build:package assembles the real artifact instead: every runtime dependency is bundled and tree-shaken, only the declarations reachable from the entry points are copied, and the package.json is generated from scratch. The published package has no dependencies — see scripts/build-package.ts.

That last part is why EditorApp.fetch is a plain function and AssetSource.serve takes a Request, rather than the Hono and hono Context they really are: a published declaration can only name a type a consumer can resolve, and hono is bundled. The build fails if a reachable declaration names anything that isn't installable, so this can't regress quietly.

npm publish from this directory fails on purpose.

版本与发布记录

@zuplo/editor 共发布 2,757 个版本,首次发布于 2025/10/06;过去 12 个月发布了 2166 个版本。

版本发布日期距今
1.0.41542387496latest2026/11/03今天
1.0.415013929552026/11/03今天
1.0.414992623932026/11/03今天
1.0.414901360352026/11/03今天
1.0.414764834222026/11/03今天
1.0.412091067182026/10/312 天前

其他发布通道:dev → 1.0.23776202785-dev。

关于 @zuplo/editor 的常见问题

@zuplo/editor 是什么?

Zuplo CLI的本地开发编辑器

如何安装 @zuplo/editor?

在项目目录运行 npm install @zuplo/editor,或使用 pnpm add / yarn add / bun add。

@zuplo/editor 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@zuplo/editor 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@zuplo/editor 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@zuplo/editor 可以商用吗?

@zuplo/editor 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@zuplo/editor 还在维护吗?

最新版本 1.0.41542387496 发布于 2026/11/03(今天);至今共发布 2757 个版本,其中过去 12 个月发布了 2166 个;首次发布于 2025/10/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。