Skip to content

Commit 7a69338

Browse files
Really Himclaude
andcommitted
fix: ignore package-lock.json in release script uncommitted files check
The release script was failing because npm version updates both package.json and package-lock.json, but the script only expected package.json changes. Now it properly ignores both files when checking for uncommitted changes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ab357b1 commit 7a69338

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/release.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ async function main() {
5353
const uncommittedFiles = gitStatus
5454
.split('\n')
5555
.filter(
56-
(line) => line.trim() && !line.includes('package.json') && !line.includes('src/server.ts')
56+
(line) =>
57+
line.trim() &&
58+
!line.includes('package.json') &&
59+
!line.includes('package-lock.json') &&
60+
!line.includes('src/server.ts')
5761
);
5862

5963
if (uncommittedFiles.length > 0) {

0 commit comments

Comments
 (0)