UNPKG

nr-cli

Version:

Ask for the scripts command to run in the package.json file

11 lines (10 loc) 246 B
const path = require('path'); module.exports = { getScripts() { try { const package = require(path.resolve(process.cwd(), 'package.json')); if (package.scripts) return Object.keys(package.scripts); } catch (e) { } } }