Repository URL to install this package:
|
Version:
3.7.4 ▾
|
"use strict";
/**
* @fileoverview removes any exisitng build output.
* @file side-effect-only
*/
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const trash_1 = tslib_1.__importDefault(require("trash"));
const resolveToRoot_1 = require("../resolveToRoot");
const getConfigForEnv_1 = tslib_1.__importDefault(require("../oneConfig/getConfigForEnv"));
function clean() {
const buildOutputPath = getConfigForEnv_1.default('buildOutputPath');
const outputPath = resolveToRoot_1.resolveToRoot(buildOutputPath);
trash_1.default(outputPath).then(() => {
console.log(`Cleaned ${outputPath}`);
});
}
clean();
//# sourceMappingURL=clean.js.map