From bccda068b2fc44caf67d04de06c33f5908557aee Mon Sep 17 00:00:00 2001 From: jamie-at-bunny Date: Thu, 9 Jul 2026 14:49:46 +0200 Subject: [PATCH 1/2] fix(sandbox): drop inherited tsconfig paths in package build The root tsconfig maps @bunny.net/openapi-client to its source files so the repo builds without a prebuild step. The sandbox package build inherited that mapping, pulling openapi-client sources into its program and failing rootDir checks in the publish workflow. Override paths so the build resolves openapi-client through its dist exports instead. --- packages/sandbox/tsconfig.build.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/sandbox/tsconfig.build.json b/packages/sandbox/tsconfig.build.json index d432dd3..2e167e0 100644 --- a/packages/sandbox/tsconfig.build.json +++ b/packages/sandbox/tsconfig.build.json @@ -5,7 +5,9 @@ "declaration": true, "rewriteRelativeImportExtensions": true, "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + // Drop the root tsconfig's source paths so openapi-client resolves via its dist exports (build it first) + "paths": {} }, "exclude": ["src/**/*.test.ts"] } From c03dc83dabab0ba1e33599f8295223bfe5f46daf Mon Sep 17 00:00:00 2001 From: jamie-at-bunny Date: Thu, 9 Jul 2026 14:49:46 +0200 Subject: [PATCH 2/2] fix(sandbox): drop inherited tsconfig paths in package build The root tsconfig maps @bunny.net/openapi-client to its source files so the repo builds without a prebuild step. The sandbox package build inherited that mapping, pulling openapi-client sources into its program and failing rootDir checks in the publish workflow. Override paths so the build resolves openapi-client through its dist exports instead. --- packages/sandbox/tsconfig.build.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sandbox/tsconfig.build.json b/packages/sandbox/tsconfig.build.json index d432dd3..37548d7 100644 --- a/packages/sandbox/tsconfig.build.json +++ b/packages/sandbox/tsconfig.build.json @@ -5,7 +5,8 @@ "declaration": true, "rewriteRelativeImportExtensions": true, "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "paths": {} }, "exclude": ["src/**/*.test.ts"] }