Skip to content

Commit

Permalink
Merge pull request #45 from upstash/DX-1264
Browse files Browse the repository at this point in the history
DX-1264: Unify exports
  • Loading branch information
CahidArda authored Oct 1, 2024
2 parents e5090fa + a21bfb0 commit 04adc06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 4 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -75,4 +57,4 @@
"build": "tsup",
"prepare": "husky install"
}
}
}
2 changes: 0 additions & 2 deletions tsup.config.js → tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

0 comments on commit 04adc06

Please sign in to comment.