Follow API changes in commander 7.0.0+
Options now have to be exlicitly requested.
This commit is contained in:
parent
d971c0fe55
commit
a85c85fb5f
|
@ -130,9 +130,11 @@ function makeLibFiles(sourceMaps) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (program.clean) {
|
let options = program.opts();
|
||||||
|
|
||||||
|
if (options.clean) {
|
||||||
console.log(`Removing ${paths.libDirBase}`);
|
console.log(`Removing ${paths.libDirBase}`);
|
||||||
fse.removeSync(paths.libDirBase);
|
fse.removeSync(paths.libDirBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
makeLibFiles(program.withSourceMaps);
|
makeLibFiles(options.withSourceMaps);
|
||||||
|
|
Loading…
Reference in New Issue