create-bookpub-project
Version:
This is the official installer and book project generator for the BookPub NPM package, a book publishing (CLI) framework for managing a HTML/CSS/Javascript manuscript-to-market toolchain.
19 lines (11 loc) • 509 B
JavaScript
import { execSync } from 'child_process';
import path from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const args = process.argv.slice(2).join(' ');
console.log('Running bookpub with args: ' + args);
const command = path.join(__dirname, 'node_modules', '.bin', 'bookpub') + ' ' + args);
// Print a message to the console
console.log('Running local bookpub with command:', command);
execSync(command, { stdio: 'inherit' });