UNPKG

@nuxt-js/package

Version:

nuxt js package

32 lines (31 loc) 992 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.version = void 0; exports.configureNuxt = configureNuxt; exports.yourFunction = yourFunction; const node_child_process_1 = require("node:child_process"); const node_path_1 = require("node:path"); exports.version = '1.0.0'; function configureNuxt(options) { const scriptPath = (0, node_path_1.join)(process.cwd(), 'scripts/configure.sh'); const args = []; if (options.firebase) args.push('-f'); if (options.tailwind) args.push('-t'); if (options.shadcn) args.push('-sh'); try { (0, node_child_process_1.execSync)(`chmod +x ${scriptPath} && ${scriptPath} ${args.join(' ')}`, { stdio: 'inherit' }); } catch (error) { console.error('Failed to configure Nuxt project:', error); throw error; } } // Add your package's main functionality here function yourFunction() { return 'Hello from your package!'; }