Skip to content

Commit d564c44

Browse files
sayefdeenclaude
andcommitted
fix: bundle @trpc-studio/core into published package
The core package is private and was listed as a dependency, causing install failures. Now bundled directly into the server build via tsup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 97d730c commit d564c44

4 files changed

Lines changed: 25 additions & 6 deletions

File tree

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,23 @@
2727
"engines": {
2828
"node": ">=18.0.0",
2929
"pnpm": ">=10.0.0"
30-
}
30+
},
31+
"version": "1.0.0",
32+
"description": "A Swagger-like developer UI for [tRPC](https://trpc.io) APIs with automatic output type extraction.",
33+
"main": "index.js",
34+
"directories": {
35+
"example": "examples"
36+
},
37+
"repository": {
38+
"type": "git",
39+
"url": "git+https://github.com/sayefdeen/trpc-studio.git"
40+
},
41+
"keywords": [],
42+
"author": "",
43+
"license": "ISC",
44+
"type": "commonjs",
45+
"bugs": {
46+
"url": "https://github.com/sayefdeen/trpc-studio/issues"
47+
},
48+
"homepage": "https://github.com/sayefdeen/trpc-studio#readme"
3149
}

packages/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@srawad/trpc-studio",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Swagger-like UI for tRPC with automatic output type extraction",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -47,10 +47,10 @@
4747
}
4848
},
4949
"dependencies": {
50-
"@trpc-studio/core": "workspace:*",
5150
"zod-to-json-schema": "^3.22.0"
5251
},
5352
"devDependencies": {
53+
"@trpc-studio/core": "workspace:*",
5454
"@trpc-studio/ui": "workspace:*",
5555
"@trpc/server": "^10.45.0",
5656
"@types/node": "^20.0.0",

packages/server/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig([
1111
treeshake: true,
1212
minify: false,
1313
external: ["@trpc/server", "zod"],
14+
noExternal: ["@trpc-studio/core"],
1415
},
1516
{
1617
entry: ["src/cli.ts"],

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)