clean.js 567 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const tslib_1 = require("tslib");
  4. const utils_1 = require("../utils");
  5. const chalk_1 = tslib_1.__importDefault(require("chalk"));
  6. class CleanCommand {
  7. constructor() {
  8. this.description = 'Clean js file while it has the same name ts/tsx file';
  9. }
  10. async run(_, { cwd }) {
  11. (0, utils_1.cleanJs)(cwd);
  12. console.info(chalk_1.default.red('\nWARNING: `ets clean` has been deprecated! Use `tsc -b --clean` instead\n'));
  13. }
  14. }
  15. exports.default = new CleanCommand();