UNPKG

@sp-packages/copyrc

Version:

A lightweight CLI tool to automate copying template files during project setup or runtime.

2 lines (1 loc) 306 B
"use strict";import{copyTemplateFile as l}from"../utils/helper.js";import{Printer as o}from"../utils/logger.js";export function copyrc(i){let e=!0;for(const r of i.files)l(r.source,r.destination)||(e=!1);e?o.success("All required files are copied or already exist."):o.error("Some files failed to copy.")}