npmci/ts/npmci.clean.ts

13 lines
287 B
TypeScript
Raw Permalink Normal View History

2016-11-25 12:25:45 +00:00
import * as plugins from './npmci.plugins'
import * as paths from './npmci.paths'
2016-06-26 02:54:10 +00:00
/**
* cleans npmci config files
*/
export let clean = () => {
2016-11-25 12:25:45 +00:00
let done = plugins.q.defer()
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig)
done.resolve()
return done.promise
}