build/copy-schemas.js
function copySchemaFiles() {
    const resolvedSrcSchemaPaths = path.resolve(rootDir, srcSchemaPaths);

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

    glob(resolvedSrcSchemaPaths, void(0), function(error, files) {
        files.forEach((filePath) => {
        const destSchemaPath = filePath.replace(/(\bsrc\b)(?!.*\1)/, destDir);
            fs.copyFileSync(filePath, destSchemaPath);
        });
    });
}
function copySchemaFiles ( ) { const resolvedSrcSchemaPaths = path . resolve ( rootDir , srcSchemaPaths ) ; glob ( resolvedSrcSchemaPaths , void ( 0 ) , function ( error , files ) { files . forEach ( ( filePath ) => { const destSchemaPath = filePath . replace ( / (\bsrc\b)(?!.*\1) / , destDir ) ; fs . copyFileSync ( filePath , destSchemaPath ) ; } ) ; } ) ; }
Function to copy schema files to their dist folder
Function to copy schema files to their dist folder