From a8f897dd3957f1117b95ef604df92720c2a2fa3d Mon Sep 17 00:00:00 2001 From: spencer Date: Sun, 10 Aug 2025 12:41:18 +0800 Subject: [PATCH] fix(package): correct exports configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move xports from publishConfig to the package root so Node can resolve it - Prefix all subpath keys with ./ - Replace wildcard * with ./* - Add explicit ./register export - Keep ./package.json export --- .github/workflows/release.yml | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e162502..c932613 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,6 +41,8 @@ jobs: - name: Changesets - Version or Publish uses: changesets/action@v1 with: + commit: "chore: update versions" + title: "chore: update versions" version: pnpm run changeset:version publish: pnpm run changeset:publish env: diff --git a/package.json b/package.json index 4a674bd..eb6c43f 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "exports": { ".": "./dist/cjs/index.js", "./package.json": "./package.json", - "*": "./dist/cjs/*", - "register": "./dist/cjs/register.js" + "./register": "./dist/cjs/register.js", + "./*": "./dist/cjs/*.js" } }, "repository": {