module.exports = function()

in debug-mode-plugin/scripts/disable-debug-mode.js [20:32]


module.exports = function (context) {
    const path = require('path');
    const shell = require('shelljs');

    const libPath = path.resolve(context.opts.projectRoot, 'platforms', 'windows', 'cordova', 'lib');
    const appUtilsPath = path.join(libPath, 'WindowsStoreAppUtils.ps1');
    const appUtilsBackupPath = path.join(libPath, 'WindowsStoreAppUtils.ps1.bak');
    const destScriptPath = path.join(libPath, 'EnableDebuggingForPackage.ps1');

    // Remove the patch and copu over backup StoreAppUtils script
    shell.rm('-f', destScriptPath);
    shell.cp('-f', appUtilsBackupPath, appUtilsPath);
};