const fs = require('fs');
const EXAMPLE_IDENTIFIER = '.example';

const files = [
    'info.example.plist'
];

files.forEach(file => {
    fs.createReadStream(file).pipe(fs.createWriteStream(file.replace(EXAMPLE_IDENTIFIER, '')));
});

const fs = require('fs');
const EXAMPLE_IDENTIFIER = '.example';

const files = [
    'info.example.plist'
];

files.forEach(file => {
    const newFile = file.replace(EXAMPLE_IDENTIFIER, '');
    fs.unlink(newFile, () => {
        fs.createReadStream(file).pipe(fs.createWriteStream(newFile));
    });
});

Update script to delete previous file before copying new plist
Update script to delete previous file before copying new plist
