UNPKG

rn-logo-replacer

Version:

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

20 lines (19 loc) 821 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeCopy = executeCopy; const copy_1 = require("../../../file_actions_obj/copy"); const path_1 = __importDefault(require("path")); const basic_1 = require("./basic"); function executeCopy(source, destination, platform) { let paths = (0, basic_1.formAllPaths)(platform); let action; paths.forEach(subFolder => { const fullSourceSubPath = path_1.default.join(source, subFolder); const fullDestinationSubPath = path_1.default.join(destination, subFolder); action = new copy_1.Copy(fullSourceSubPath, fullDestinationSubPath); action.execute(); }); }