Run rimraf on a directory in a subprocess to hack around slowness
$ npm install @lerna/rimraf-dir
@lerna/rimraf-dirRun rimraf on a directory in a subprocess to hack around slowness
const { rimrafDir } = require("@lerna/rimraf-dir");
rimrafDir("/path/to/directory").then(removedDir => {
console.log("removed", removedDir);
});
Install lerna for access to the lerna CLI.
© 2010 - cnpmjs.org x YWFE | Home | YWFE