Skip to content

Commit 2da0e2d

Browse files
akoclaude
andcommitted
fix: make vscode-ext build portable across Linux and macOS
Replace `sed -i` (Linux-only) with a read-from-backup-write-to-target pattern that works on both platforms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eb8770f commit 2da0e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ vscode-ext:
188188
@echo "Building VS Code extension (version $(VSCE_VERSION))..."
189189
cd vscode-mdl && bun install && \
190190
cp package.json package.json.bak && \
191-
sed -i 's/"version": "[^"]*"/"version": "$(VSCE_VERSION)"/' package.json && \
191+
sed 's/"version": "[^"]*"/"version": "$(VSCE_VERSION)"/' package.json.bak > package.json && \
192192
bunx esbuild src/extension.ts --bundle --outfile=dist/extension.js \
193193
--external:vscode --format=cjs --platform=node \
194194
--define:__BUILD_TIME__="'$(BUILD_TIME)'" \

0 commit comments

Comments
 (0)