Skip to content

Commit 237a7e2

Browse files
committed
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
1 parent f5aabdd commit 237a7e2

11 files changed

Lines changed: 278 additions & 370 deletions

File tree

templates/academic-cv/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/academic-cv/pnpm-lock.yaml

Lines changed: 268 additions & 370 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/data-science-blog/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/dev-portfolio/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/documentation/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/link-in-bio/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/markdown-slides/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/resume/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

templates/starter/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

0 commit comments

Comments
 (0)