npmci/dist/mod_clean/index.js

20 lines
1.4 KiB
JavaScript
Raw Normal View History

2016-06-26 02:54:10 +00:00
"use strict";
2017-03-11 00:10:37 +00:00
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
2017-05-18 20:40:09 +00:00
const plugins = require("./mod.plugins");
const paths = require("../npmci.paths");
2016-06-26 02:54:10 +00:00
/**
* cleans npmci config files
*/
2017-03-11 00:10:37 +00:00
exports.clean = () => __awaiter(this, void 0, void 0, function* () {
2016-06-26 02:54:10 +00:00
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
2017-03-11 00:10:37 +00:00
return;
});
2017-10-09 16:10:01 +00:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9tb2RfY2xlYW4vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUF3QztBQUN4Qyx3Q0FBdUM7QUFFdkM7O0dBRUc7QUFDUSxRQUFBLEtBQUssR0FBRyxHQUF3QixFQUFFO0lBQzNDLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsa0JBQWtCLENBQUMsQ0FBQTtJQUN6RCxNQUFNLENBQUE7QUFDUixDQUFDLENBQUEsQ0FBQSJ9