Skip to content

Commit

Permalink
Follow API changes in commander 7.0.0+
Browse files Browse the repository at this point in the history
Options now have to be exlicitly requested.
  • Loading branch information
CendioOssman committed Sep 28, 2021
1 parent d971c0f commit a85c85f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/use_require.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ function makeLibFiles(sourceMaps) {
});
}

if (program.clean) {
let options = program.opts();

if (options.clean) {
console.log(`Removing ${paths.libDirBase}`);
fse.removeSync(paths.libDirBase);
}

makeLibFiles(program.withSourceMaps);
makeLibFiles(options.withSourceMaps);

0 comments on commit a85c85f

Please sign in to comment.