mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Updates the prettier config to format all `.ts` and `.tsx` files in the repo using the existing defaults and removing overrides. The first commit in this PR contains the config changes, the second is just the result of running `yarn prettier-all`.
19 lines
354 B
JavaScript
19 lines
354 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const prompt = require('prompt-promise');
|
|
|
|
const run = async () => {
|
|
while (true) {
|
|
const otp = await prompt('NPM 2-factor auth code: ');
|
|
prompt.done();
|
|
if (otp) {
|
|
return otp;
|
|
} else {
|
|
console.error('\nTwo-factor auth is required to publish.');
|
|
// (Ask again.)
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = run;
|