yukey

build: no source maps in dist/

commit 19cdc86d8cb97c72d7615e9032f6708be59b06ff · parent dc38216d2f · browse this tree
Ximianth, 2026-10-24 10:49:11 UTC

The maps pointed at ../src/*.ts, which the packages don't ship, so a
consumer's debugger would resolve them to nothing.  The gallery bundle
keeps its inline map: it's the local dev surface, and src/ is there.
diff --git a/docs/hacking/README.md b/docs/hacking/README.md
index a9b1db8..cc20ceb 100644
--- a/docs/hacking/README.md
+++ b/docs/hacking/README.md
@@ -36,7 +36,7 @@ This is an npm workspace.  The root `package.json` is private and fans out to `p
 Things worth knowing
 --------------------
 
-- The published packages ship `dist/` (`.js` + `.d.ts` + maps), not `.ts`.
+- The published packages ship `dist/` (`.js` + `.d.ts`), not `.ts`.
   Lit's decorators require `experimentalDecorators` and `useDefineForClassFields: false`; compiling here means consumers don't have to match those flags.
   Consequence: anything consuming yukey via a `file:` dependency must `make build` here first.
 - `packages/e2e` imports `yukey-testkit` through the workspace symlink and resolves to its `dist/`, like any outside consumer would.
diff --git a/packages/yukey-testkit/tsconfig.build.json b/packages/yukey-testkit/tsconfig.build.json
index 30afe55..3ff5e9f 100644
--- a/packages/yukey-testkit/tsconfig.build.json
+++ b/packages/yukey-testkit/tsconfig.build.json
@@ -4,9 +4,7 @@
 		"noEmit": false,
 		"rootDir": "src",
 		"outDir": "dist",
-		"declaration": true,
-		"declarationMap": true,
-		"sourceMap": true
+		"declaration": true
 	},
 	"include": [
 		"src"
diff --git a/packages/yukey/tsconfig.build.json b/packages/yukey/tsconfig.build.json
index 1efdb73..c06f451 100644
--- a/packages/yukey/tsconfig.build.json
+++ b/packages/yukey/tsconfig.build.json
@@ -4,9 +4,7 @@
 		"noEmit": false,
 		"rootDir": "src",
 		"outDir": "dist",
-		"declaration": true,
-		"declarationMap": true,
-		"sourceMap": true
+		"declaration": true
 	},
 	"include": ["src"],
 	"exclude": ["src/**/*.test.ts", "src/**/*.gallery.ts", "src/gallery"]