n8n/scripts/prepare.mjs
Tomi Turtiainen c64cd51822
chore: Fix dev setup on windows machines (no-changelog) (#11065)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
2025-01-08 13:24:41 +02:00

11 lines
244 B
JavaScript

#!/usr/bin/env node
import { execSync } from 'node:child_process';
// Skip lefthook install in CI or Docker build
if (process.env.CI || process.env.DOCKER_BUILD) {
process.exit(0);
}
execSync('pnpm lefthook install', { stdio: 'inherit' });