adventofcode/2023/preset/day/preset.ts

21 lines
442 B
TypeScript

export default definePreset({
name: 'day',
options: {
perl: false,
js: false,
},
handler: async(context) => {
if( context.options.perl ) {
await extractTemplates({
from: 'perl', whenConflict: 'skip'
})
}
if( context.options.js ) {
await extractTemplates({
from: 'js', whenConflict: 'skip'
})
}
// ...
},
})