UNPKG

374 BJavaScriptView Raw
1var path = require("path");
2
3module.exports = function(argv) {
4 // Determine the location of the config file
5 var config = argv.config[0] === "/" ?
6 argv.config :
7 path.join(process.cwd(), argv.config);
8
9 var steal = { config: config };
10
11 if (argv.main) {
12 steal.main = argv.main;
13 }
14
15 if(argv.bundlesPath) {
16 steal.bundlesPath = argv.bundlesPath;
17 }
18
19 return steal;
20};