UNPKG

rn-logo-replacer

Version:

This is a project aiming at remplacing the logo of a react native app with a single npx command

19 lines (18 loc) 714 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeDelete = executeDelete; const path_1 = __importDefault(require("path")); const basic_1 = require("./basic"); const delete_1 = require("../../../file_actions_obj/delete"); function executeDelete(source, platform) { let paths = (0, basic_1.formAllPaths)(platform); let action; paths.forEach(subFolder => { const fullSourceSubPath = path_1.default.join(source, subFolder); action = new delete_1.Delete(fullSourceSubPath); action.execute(); }); }