Not sure if this is an issue with spike-core or spike-records.
My records config looks something like this:
const records = new Records({
addDataTo: locals,
posts: {
url: 'https://url-to-some.com/post.json',
template: {
transform: (data) => { return data.items },
path: 'views/post.sgr',
output: (post) => { return `/post/${post.fields.slug}.html` }
}
}
})
But every time I edit views/post.sgr I have to restart the server with spike watch which is actually for me an npm script npm start. But it happens if I run it as an npm script or globally.