forked from cadence/out-of-your-element
Why did I make it this way??? #13
1 changed files with 5 additions and 0 deletions
|
|
@ -78,6 +78,11 @@ function readRegistration() {
|
|||
/** @type {import("../types").AppServiceRegistrationConfig} */ // @ts-ignore
|
||||
let reg = readRegistration()
|
||||
|
||||
fs.watch(registrationFilePath, {persistent: false}, () => {
|
||||
let newReg = readRegistration()
|
||||
Object.assign(reg, newReg)
|
||||
})
|
||||
|
||||
module.exports.registrationFilePath = registrationFilePath
|
||||
module.exports.readRegistration = readRegistration
|
||||
module.exports.getTemplateRegistration = getTemplateRegistration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue