lightswind
Version:
A professionally designed component library & templates market that brings together functionality, accessibility, and beautiful aesthetics for modern applications.
24 lines (20 loc) • 621 B
JavaScript
const fs = require("fs-extra");
const path = require("path");
// Define the source and destination folder pairs
const foldersToCopy = [
{
from: path.join(__dirname, "dist", "components", "ui"),
to: path.join(process.cwd(), "src", "components", "lightswind"),
},
{
from: path.join(__dirname, "dist", "components", "lib"),
to: path.join(process.cwd(), "src", "components", "lib"),
},
];
// Copy each folder
foldersToCopy.forEach(({ from, to }) => {
fs.ensureDirSync(to);
fs.copySync(from, to);
console.log(`✅ Copied from ${from} to ${to}`);
});