chore: release 2026.1.11-2

This commit is contained in:
Peter Steinberger
2026-01-12 10:14:24 +00:00
parent 35f8be33d2
commit c1f8f1d9d0
8 changed files with 37 additions and 16 deletions

View File

@@ -25,6 +25,18 @@ function getRepoRoot() {
return path.resolve(here, "..");
}
function ensureExecutable(targetPath) {
if (process.platform === "win32") return;
if (!fs.existsSync(targetPath)) return;
try {
const mode = fs.statSync(targetPath).mode & 0o777;
if (mode & 0o100) return;
fs.chmodSync(targetPath, 0o755);
} catch (err) {
console.warn(`[postinstall] chmod failed: ${err}`);
}
}
function extractPackageName(key) {
if (key.startsWith("@")) {
const idx = key.indexOf("@", 1);
@@ -213,6 +225,8 @@ function main() {
const repoRoot = getRepoRoot();
process.chdir(repoRoot);
ensureExecutable(path.join(repoRoot, "dist", "entry.js"));
if (!shouldApplyPnpmPatchedDependenciesFallback()) {
return;
}