docs-2/docs/versions/minecraft/autowhitelist/1.2.0/configs/sample-config.data.ts
LunaFox 594d4b0a30
Todas as verificações foram bem sucedidas
/ build (push) Successful in 27s
chore: Add @everyone to the docs and document the new datapack command
2025-06-27 17:29:27 -03:00

13 linhas
385 B
TypeScript

import fs from 'node:fs'
export default {
watch: ['./sample.txt'],
load(watchedFiles: string[]) {
// watchedFiles will be an array of absolute paths of the matched files.
// generate an array of blog post metadata that can be used to render
// a list in the theme layout
return watchedFiles.map((file) => {
return fs.readFileSync(file, 'utf-8')
})
}
}