From 9584c205fe22376ea89173734f649d13e3e31f55 Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Sat, 23 May 2026 11:31:24 -0700 Subject: [PATCH] Enable source maps Bun ignores `tspconfig.json` and `.npmignore` when package.json contains `files`, so I've updated the node scripts accordingly. Since I did this to also enable debugging via VSCode, I added it to the `.gitignore` file as well. --- .gitignore | 3 +++ packages/cli/package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4fed061..200b18f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,9 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json .cache *.tsbuildinfo +# VSCode +.vscode + # IntelliJ based IDEs .idea diff --git a/packages/cli/package.json b/packages/cli/package.json index a799e93..6a51920 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -17,10 +17,10 @@ "scripts": { "lint": "biome lint --write", "format": "biome format --write", - "build": "bun build src/index.ts --target node --outdir dist && mkdir -p dist/components && cp src/components/*.js dist/components/", + "build": "bun build src/index.ts --target node --outdir dist --sourcemap && mkdir -p dist/components && cp src/components/*.js dist/components/", "test": "bun test", "dev": "bun run build && bun link", - "deploy": "bun run build && bun publish" + "deploy": "bun run build && rm -f dist/*.map && bun publish" }, "devDependencies": { "@biomejs/biome": "^2.3.13", -- 2.51.2