@rlanz/ally-twitch
Version:
<p align="center"> <img src="https://github.com/RomainLanz/ally-twitch/assets/2793951/d3ccf29b-6169-4563-b932-5b15258a7fa3" alt="@rlanz/ally-twitch"> </p
26 lines (25 loc) • 680 B
JavaScript
/**
* @rlanz/ally-twitch
*
* @license MIT
* @copyright Romain Lanz <romain.lanz@pm.me>
*/
/**
* Configures the package
*/
export async function configure(command) {
const codemods = await command.createCodemods();
await codemods.defineEnvVariables({
TWITCH_CLIENT_ID: '',
TWITCH_CLIENT_SECRET: '',
TWITCH_CALLBACK_URL: '',
});
await codemods.defineEnvValidations({
variables: {
TWITCH_CLIENT_ID: 'Env.schema.string()',
TWITCH_CLIENT_SECRET: 'Env.schema.string()',
TWITCH_CALLBACK_URL: 'Env.schema.string()',
},
leadingComment: 'Variables for @rlanz/ally-twitch',
});
}