Skip to content

Commit

Permalink
try fixing the pre-push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Dec 15, 2023
1 parent 8c0815b commit e536a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions scripts/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ if (lines[0].startsWith('/* generated */')) {
fs.writeFileSync('version.js', lines.join('\n'));
// amend the commit
cp.execSync('git add version.js');
cp.execSync('git commit --amend --no-edit');
cp.execSync('git commit --amend -C HEAD --no-edit');
console.log("Updated version.js");
} else {
console.warn("version.js doesn't look not generated, review the pre-push script or the version.js file")
console.warn("version.js doesn't look not generated, review the pre-push script or the version.js file");
}

process.exit(0);
2 changes: 1 addition & 1 deletion version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* generated */ const version = { "date": "2023-12-15T22:45:26.499Z", "commit": "fix: fix bad export" }
/* generated */ const version = { "date": "2023-12-15T22:50:47.894Z", "commit": "try fixing the pre-push hook" }

console.log("VERSION", version);

0 comments on commit e536a83

Please sign in to comment.