You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
I'm trying to build some modules which depend on this, but since it can't be found with require.resolve() as it has no canonical file it's proving quite difficult to reliably resolve the install location to do fs.readFile etc on it. Looking in ./node_modules works in most cases, but not if the parent project already has this as a dependency.
Either adding a main property in the package.json to point to the template file (ideal scenario for me), or adding a blank (or maybe log a usage warning) index.js file in the root will allow require.resolve('govuk_template_mustache'); to successfully resolve the install location, and so make it easier to build other modules which sit on top of this without needing additional caveats.