Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/publish-dist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect-orpc": patch
---

Publish the compiled `dist` with type declarations. `publishConfig.exports` is not applied by npm or Bun, so 1.0.0 resolved to its TypeScript source at runtime and for type-checking. Consumers now get `dist/*.js` and `dist/*.d.ts`; the monorepo keeps resolving `src` through a `source` condition.
2 changes: 1 addition & 1 deletion examples/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"start": "bun --watch index.ts",
"start": "bun --conditions=source --watch index.ts",
"type:check": "tsc -b",
"test": "vitest *.test.ts"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/effect-orpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
],
"type": "module",
"exports": {
".": "./src/index.ts",
"./node": "./src/node.ts"
},
"publishConfig": {
"exports": {
".": {
"types": "./src/index.ts",
".": {
"source": "./src/index.ts",
"default": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./node": {
"types": "./src/node.ts",
}
},
"./node": {
"source": "./src/node.ts",
"default": {
"types": "./dist/node.d.ts",
"default": "./dist/node.js"
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/effect-orpc/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export default defineConfig({
sourcemap: true,
clean: true,
format: "esm",
dts: true,
});
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

// Bundler mode
"moduleResolution": "bundler",
"customConditions": ["source"],
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": []
},
"test": {
"dependsOn": ["^build"],
"outputs": []
}
}
Expand Down