mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
build: Add reset script (#10627)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
This commit is contained in:
17
scripts/ensure-zx.mjs
Normal file
17
scripts/ensure-zx.mjs
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user