diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e2917d6..5d43c29 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,8 +40,8 @@ jobs: - name: Publish release candidate if: "github.event.release.prerelease" - run: npm publish --access public --tag=canary --no-git-checks + run: npm publish --access public --tag=canary - name: Publish if: "!github.event.release.prerelease" - run: npm publish --access public --no-git-checks + run: npm publish --access public diff --git a/package.json b/package.json index f209e08..d3ffa80 100644 --- a/package.json +++ b/package.json @@ -9,37 +9,19 @@ "exports": { ".": { "import": "./dist/nodejs.mjs", - "require": "./dist/nodejs.js", - "types": "./dist/nodejs.d.ts", - "browser": "./dist/nodejs.mjs", - "bun": "./dist/nodejs.mjs", - "deno": "./dist/nodejs.mjs", - "edge-light": "./dist/nodejs.mjs", - "edge-routine": "./dist/nodejs.mjs", - "netlify": "./dist/nodejs.mjs", - "react-native": "./dist/nodejs.mjs", - "wintercg": "./dist/nodejs.mjs", - "worker": { - "import": "./dist/cloudflare.mjs", - "types": "./dist/cloudflare.d.ts" - }, - "workerd": { - "import": "./dist/cloudflare.mjs", - "types": "./dist/cloudflare.d.ts" - } + "require": "./dist/nodejs.js" }, "./cloudflare": { "import": "./dist/cloudflare.mjs", - "types": "./dist/cloudflare.d.ts" + "require": "./dist/cloudflare.js" }, "./nodejs": { "import": "./dist/nodejs.mjs", - "types": "./dist/nodejs.d.ts" + "require": "./dist/nodejs.js" } }, "main": "./dist/nodejs.js", "module": "./dist/nodejs.mjs", - "browser": "./dist/nodejs.mjs", "types": "./dist/nodejs.d.ts", "devDependencies": { "@commitlint/cli": "^18.6.0", @@ -75,4 +57,4 @@ "build": "tsup", "prepare": "husky install" } -} +} \ No newline at end of file diff --git a/tsup.config.js b/tsup.config.ts similarity index 84% rename from tsup.config.js rename to tsup.config.ts index 405cbce..917a50a 100644 --- a/tsup.config.js +++ b/tsup.config.ts @@ -3,8 +3,6 @@ import { defineConfig } from "tsup"; export default defineConfig({ entry: ["./src/platforms/nodejs.ts", "./src/platforms/cloudflare.ts"], format: ["cjs", "esm"], - sourcemap: false, clean: true, dts: true, - minify: true, });