Created
May 7, 2021 12:47
-
-
Save BetimBeja/ba5904d6700d857297058ae1ba50b052 to your computer and use it in GitHub Desktop.
Script to override pcfAllowLookup flag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const flagsPath = 'pcf-scripts/featureflags.json'; | |
const flags = require(flagsPath); | |
flags.pcfAllowLookup = 'on'; | |
fs.writeFile( | |
require.resolve(flagsPath), | |
JSON.stringify(flags, null, 2), | |
function writeJSON(err) { | |
if (err) return console.log(err); | |
console.log(JSON.stringify(flags, null, 2)); | |
console.log('writing to ' + flagsPath); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment