build/copy-readme.js
function copyReadmeFiles() {
    const resolvedSrcReadmePaths = path.resolve(rootDir, srcReadmePaths);

    glob(resolvedSrcReadmePaths, void(0), function(error, files) {
        files.forEach((filePath) => {
        const destReadmePath = filePath.replace(/(\bsrc\b)(?!.*\1)/, destDir);
            fs.copyFileSync(filePath, destReadmePath);
        });
    });
}
function copyReadmeFiles() {
    const resolvedSrcReadmePaths = path.resolve(rootDir, srcReadmePaths);

    glob(resolvedSrcReadmePaths, void(0), function(error, files) {
        files.forEach((filePath) => {
        const destReadmePath = filePath.replace(/(\bsrc\b)(?!.*\1)/, destDir);
            fs.copyFileSync(filePath, destReadmePath);
        });
    });
}
function copyReadmeFiles ( ) { const resolvedSrcReadmePaths = path . resolve ( rootDir , srcReadmePaths ) ; glob ( resolvedSrcReadmePaths , void ( 0 ) , function ( error , files ) { files . forEach ( ( filePath ) => { const destReadmePath = filePath . replace ( / (\bsrc\b)(?!.*\1) / , destDir ) ; fs . copyFileSync ( filePath , destReadmePath ) ; } ) ; } ) ; }
Function to copy readme files to their dist folder
Function to copy readme files to their dist folder