fix: add git hook setup and stable config hash sorting

This commit is contained in:
Peter Steinberger
2026-01-19 02:02:09 +00:00
parent dd1b08b3e8
commit a9fc2ca0ef
8 changed files with 363 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import fs from "node:fs";
import path from "node:path";
import { spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";
import { setupGitHooks } from "./setup-git-hooks.js";
function detectPackageManager(ua = process.env.npm_config_user_agent ?? "") {
// Examples:
@@ -252,6 +253,7 @@ function main() {
process.chdir(repoRoot);
ensureExecutable(path.join(repoRoot, "dist", "entry.js"));
setupGitHooks({ repoRoot });
if (!shouldApplyPnpmPatchedDependenciesFallback()) {
return;