Skip to content

Commit 5a42964

Browse files
authored
fix(packaging): embed source content in sourcemaps (vercel#1769)
Enable TypeScript inlineSources in the shared package tsconfig so published @workflow packages ship self-contained JavaScript sourcemaps. This fixes Vite and Vitest warnings in downstream repos when sourcemaps point at ../src/*.ts paths that are not published.
1 parent 5f4d683 commit 5a42964

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.changeset/few-cups-share.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
"@workflow/ai": patch
3+
"@workflow/astro": patch
4+
"@workflow/builders": patch
5+
"@workflow/cli": patch
6+
"@workflow/core": patch
7+
"@workflow/errors": patch
8+
"@workflow/next": patch
9+
"@workflow/nitro": patch
10+
"@workflow/nuxt": patch
11+
"@workflow/rollup": patch
12+
"@workflow/serde": patch
13+
"@workflow/sveltekit": patch
14+
"@workflow/typescript-plugin": patch
15+
"@workflow/utils": patch
16+
"@workflow/vite": patch
17+
"@workflow/vitest": patch
18+
"@workflow/world-local": patch
19+
"@workflow/world-postgres": patch
20+
"@workflow/world-testing": patch
21+
"@workflow/world-vercel": patch
22+
"workflow": patch
23+
---
24+
25+
Embed source content in published sourcemaps.

packages/tsconfig/base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"esModuleInterop": true,
88
"forceConsistentCasingInFileNames": true,
99
"sourceMap": true,
10-
"inlineSources": false,
10+
"inlineSources": true,
1111
"isolatedModules": true,
1212
"moduleResolution": "node16",
1313
"noUnusedLocals": true,

0 commit comments

Comments
 (0)