diff --git a/examples/fastify/bin/start.ts b/examples/fastify/bin/start.ts index be93cf6..a8f1d37 100644 --- a/examples/fastify/bin/start.ts +++ b/examples/fastify/bin/start.ts @@ -1,8 +1,8 @@ import { hot } from 'hot-hook' -await hot.init({ +await hot.init({ root: import.meta.filename, - boundaries: ['../src/services/**.ts'] + boundaries: ['../src/services/**.ts'], }) await import('../src/index.js') diff --git a/examples/fastify/src/index.ts b/examples/fastify/src/index.ts index e7e6a55..25235d2 100644 --- a/examples/fastify/src/index.ts +++ b/examples/fastify/src/index.ts @@ -10,7 +10,7 @@ const fastify = Fastify({ }) fastify.get('/', async (request, reply) => { - const { PostsService } = await import('./services/posts_service.js', { with: { hot: 'true' }}) + const { PostsService } = await import('./services/posts_service.js', { with: { hot: 'true' } }) return new PostsService().getPosts() }) diff --git a/examples/fastify/src/services/posts_service.ts b/examples/fastify/src/services/posts_service.ts index 923b01a..fe2e236 100644 --- a/examples/fastify/src/services/posts_service.ts +++ b/examples/fastify/src/services/posts_service.ts @@ -1,4 +1,4 @@ -import { uppercasePostTitles } from "../helpers/posts"; +import { uppercasePostTitles } from '../helpers/posts' export class PostsService { /**