Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"husky": "^9.1.7",
"lint-staged": "^15.5.0",
"prettier": "^3.5.3",
"tsdown": "^0.8.1",
"turbo": "^2.5.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.8"
Expand Down
18 changes: 9 additions & 9 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"browser": "dist/index.browser.js",
"browser": "dist/browser/index.browser.js",
"exports": {
".": {
"workerd": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"edge-light": {
"types": "./dist/index.d.ts",
"default": "./dist/index.serverless.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
Expand All @@ -31,6 +27,10 @@
"types": "./async-context/index.d.ts",
"default": "./async-context/index.browser.js"
},
"import": {
"types": "./async-context/index.d.ts",
"default": "./async-context/index.js"
},
"require": {
"types": "./async-context/index.d.cts",
"default": "./async-context/index.cjs"
Expand Down Expand Up @@ -102,8 +102,8 @@
"stream"
],
"scripts": {
"build": "rimraf dist interrupter middleware stream util async-context && tsup",
"dev": "tsup --watch",
"build": "rimraf dist interrupter middleware stream util async-context && tsdown",
"dev": "tsdown --watch",
"test": "vitest run",
"test:ui": "vitest --ui",
"prepublishOnly": "cp ../../README.md ./README.md"
Expand All @@ -116,7 +116,7 @@
"p-retry": "^6.2.1",
"rimraf": "^6.0.1",
"stream-chain": "^3.4.0",
"tsup": "^8.4.0",
"tsdown": "^0.8.1",
"typescript": "^5.8.2",
"zod": "^3.24.2"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from "tsup";
import { defineConfig } from "tsdown";

export default defineConfig([
// Core APIs
Expand All @@ -14,14 +14,10 @@ export default defineConfig([
// Core APIs - Browser ESM
{
entry: ["src/core/index.ts"],
outDir: "dist",
outExtension: () => ({
js: ".browser.js",
}),
outDir: "dist/browser",
tsconfig: "./tsconfig.browser.build.json",
platform: "browser",
format: ["esm"],
minify: true,
sourcemap: true,
},
// Async Context APIs
Expand Down
Loading