chore: Update ha-nunjucks to 1.6.2 (#2549)

- Replaces:
https://github.com/dermotduffy/advanced-camera-card/pull/2515
This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 015fb1876d
commit c3d3dd3934
15 changed files with 113 additions and 14 deletions
+10 -1
View File
@@ -35,7 +35,16 @@ const serveopts = {
* @type {import('rollup').RollupOptions['plugins']}
*/
const plugins = [
gitInfo.default({ enableBuildDate: true, updateVersion: false }),
gitInfo.default(
// Limit git-info to the project's own package.json. Without this it also
// rewrites any dependency's imported package.json into ESM, which then breaks
// the json() plugin downstream (ha-nunjucks imports its own package.json).
{
enableBuildDate: true,
updateVersion: false,
include: 'package.json',
},
),
styles({
modules: false,
// Behavior of inject mode, without actually injecting style