diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca404bf..6877b39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: release: uses: sxzz/workflows/.github/workflows/release.yml@v1 with: - publish: false + publish: true permissions: contents: write id-token: write diff --git a/package.json b/package.json index 2320c50..8005efc 100644 --- a/package.json +++ b/package.json @@ -22,12 +22,8 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { - ".": { - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - }, + ".": "./dist/index.js", + "./cli": "./dist/cli.js", "./package.json": "./package.json" }, "bin": { @@ -42,7 +38,7 @@ "build": "tsdown", "dev": "tsx ./src/cli.ts", "typecheck": "tsc --noEmit", - "release": "bumpp && pnpm publish", + "release": "bumpp", "prepublishOnly": "pnpm run build" }, "dependencies": { diff --git a/tsdown.config.ts b/tsdown.config.ts index 9cb8e7a..bfdd51e 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -9,4 +9,5 @@ export default defineConfig({ alias: { chalk: 'ansis', }, + exports: true, })