Follow API changes in commander 7.0.0+

Options now have to be exlicitly requested.
This commit is contained in:
Pierre Ossman 2021-09-28 10:46:41 +02:00
parent d971c0fe55
commit a85c85fb5f
1 changed files with 4 additions and 2 deletions

View File

@ -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);