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",