UNPKG

now-flow

Version:

Add deployment workflows to Zeit now

27 lines (20 loc) 460 B
// Native const path = require('path') // Packages const mri = require('mri') const getLocalPathConfig = prefix => { /*eslint-disable */ const args = mri(process.argv.slice(2), { /*eslint-enable */ string: ['local-config'], alias: { 'local-config': 'A' } }) const customPath = args['local-config'] if (!customPath) { return path.join(prefix, 'now.json') } return path.resolve(prefix, customPath) } module.exports = getLocalPathConfig