mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-30 06:59:41 -08:00
c97a96d314
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
import { accessSync, constants } from 'node:fs';
|
|
import { execSync } from 'node:child_process';
|
|
|
|
const ZX_PATH = 'node_modules/.bin/zx';
|
|
|
|
if (!zxExists()) {
|
|
execSync('pnpm --frozen-lockfile --filter n8n-monorepo install', { stdio: 'inherit' });
|
|
}
|
|
|
|
function zxExists() {
|
|
try {
|
|
accessSync(ZX_PATH, constants.F_OK);
|
|
return true;
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|