mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
11 lines
259 B
JavaScript
11 lines
259 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('./node_modules/.bin/lefthook install', { stdio: 'inherit' });
|