fix(templates): use hoisted node-linker so Hugo v0.161 can resolve tailwindcss

Hugo v0.161's css.TailwindCSS reads node_modules/.bin/tailwindcss and
expects either a symlink or a Node-shebang script. pnpm's default
isolated linker creates shell wrappers (#!/bin/sh with NODE_PATH
manipulation), which Hugo rejects with "binary tailwindcss is not a
Node.js script". With node-linker=hoisted, pnpm flattens node_modules
and creates plain symlinks for Node-shebang bins — same shape npm
produces, which Hugo handles via its symlink branch in resolveNodeBin
(common/hexec/exec.go).

- Add .npmrc with node-linker=hoisted to all 9 templates and test/
- Verified end-to-end: academic-cv builds cleanly against published
  modules/blox with Hugo v0.161.1
- Kit root and modules/blox keep pnpm's isolated linker for monorepo
This commit is contained in:
George Cushen committed 2026-05-02 03:29:43 +01:00
1 parent f5aabdd310
commit 237a7e2d59
11 files changed
+276 -368

No files matched your search

+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+266 -368
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted
+1
View File
@@ -0,0 +1 @@
node-linker=hoisted