import { register } from 'node:module';
import { pathToFileURL, fileURLToPath } from 'node:url';
import path from 'node:path';

const scriptDir = path.dirname(fileURLToPath(import.meta.url));
register(
  pathToFileURL(path.join(scriptDir, 'sveltekit-hooks.mjs')).href,
  pathToFileURL(scriptDir + '/')
);
