Commit a10a97f1 authored by Truc Nguyen's avatar Truc Nguyen Committed by JeremJR

fix(build): force yargs argv as string for application and version parameters...

fix(build): force yargs argv as string for application and version parameters (otherwise '1.0' becomes '1') (#8)

* fix(build): force yargs argv as string for application and version parameters (otherwise '1.0' becomes '1')
parent 6a2f908b
......@@ -10,7 +10,10 @@
const mkdirp = require('mkdirp');
const queryString = require('query-string');
const winston = require('winston');
const argv = require('yargs').argv;
const argv = require('yargs')
.string(['a', 'v'])
.string('_')
.argv;
const variables = require('./variables.json');
let application= argv.a || argv._[0];
if(application){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment