mirror of
https://github.com/n8n-io/n8n
synced 2026-05-10 13:32:23 +02:00
16 lines
399 B
JavaScript
Executable File
16 lines
399 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import { spawnSync } from 'node:child_process';
|
|
import { createRequire } from 'node:module';
|
|
import path from 'node:path';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
|
|
const cliBin = require.resolve('@n8n/node-cli/bin/n8n-node.js');
|
|
|
|
const result = spawnSync('node', [cliBin, 'create', ...process.argv.slice(2)], {
|
|
stdio: 'inherit',
|
|
});
|
|
|
|
process.exit(result.status ?? 1);
|