From 7d746237100084ac3456f1af92ff664db4e50cc8 Mon Sep 17 00:00:00 2001 From: yhh <359807859@qq.com> Date: Sat, 27 Dec 2025 10:27:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E9=85=8D=E7=BD=AE=20publishConfig?= =?UTF-8?q?.directory=20=E7=A1=AE=E4=BF=9D=E4=BB=8E=20dist=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/fix-publish-directory.md | 5 +++++ packages/framework/core/package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-publish-directory.md diff --git a/.changeset/fix-publish-directory.md b/.changeset/fix-publish-directory.md new file mode 100644 index 00000000..a199f419 --- /dev/null +++ b/.changeset/fix-publish-directory.md @@ -0,0 +1,5 @@ +--- +"@esengine/ecs-framework": patch +--- + +fix(core): 修复 npm 发布目录配置,确保从 dist 目录发布以保持与 Cocos Creator 的兼容性 diff --git a/packages/framework/core/package.json b/packages/framework/core/package.json index 6a06cf1d..841f3895 100644 --- a/packages/framework/core/package.json +++ b/packages/framework/core/package.json @@ -70,7 +70,8 @@ }, "publishConfig": { "access": "public", - "registry": "https://registry.npmjs.org/" + "registry": "https://registry.npmjs.org/", + "directory": "dist" }, "repository": { "type": "git",