Files
2026-07-25 13:38:18 +05:30

1.1 KiB
Raw Permalink Blame History

Framework integration

The current WRNexusJS component scanner always includes packages/ui/components and the applications app/components. The installer therefore copies Captcha.wrn into packages/ui/components/Captcha.wrn while retaining the canonical package copy at packages/captcha/components/Captcha.wrn.

A future framework improvement can read component directories registered by plugins and pass them to createRouter({ componentDirs }). captchaPlugin() already exposes the package directory through configuration and plugin metadata, so the package is ready for that change without changing its public API.

The installer adds these TypeScript aliases:

{
  "@wrnexus/captcha": ["./packages/captcha/src/index.ts"],
  "@wrnexus/captcha/server": ["./packages/captcha/src/server/index.ts"],
  "@wrnexus/captcha/client": ["./packages/captcha/src/client/index.ts"],
  "@wrnexus/captcha/plugin": ["./packages/captcha/src/plugin.ts"],
  "@wrnexus/captcha/*": ["./packages/captcha/src/*"]
}

After installation, regenerate the UI component reference so Captcha appears in generated component documentation.