Skip to content

Commit b48e006

Browse files
committed
Use node instead of tsx
1 parent 4793741 commit b48e006

File tree

11 files changed

+26
-554
lines changed

11 files changed

+26
-554
lines changed

.github/workflows/hugo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
- name: Install Dart Sass
2929
run: sudo snap install dart-sass
3030

31+
- name: Setup Node.js
32+
uses: actions/setup-node@v6
33+
with:
34+
node-version: '22.6'
35+
36+
- name: Install Node dependencies
37+
run: npm ci
38+
3139
- name: Build site
3240
run: ./build.sh
3341
env:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- uses: actions/setup-node@v6
4343
with:
44-
node-version: '22'
44+
node-version: '22.6'
4545

4646
- name: Get cached dependencies
4747
uses: actions/cache@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v22.6.0
File renamed without changes.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727

2828
### Minimum Requirements
2929

30-
The minimum Node and NPM versions can be found in the
31-
[package.json file](package.json) under `engines`.
30+
- **Node.js**: v22.6.0 or later (required for native TypeScript support)
31+
- **NPM**: v9 or later
32+
33+
The minimum versions can be found in the [package.json file](package.json)
34+
under `engines`.
3235

3336
If you need help installing and/or managing Node and NPM versions, check out
3437
[NVM](https://github.com/nvm-sh/nvm).

bin/check-shortcode-parity.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
3+
import { fileURLToPath } from 'url';
34

4-
const SHORTCODES_DIR = path.join(__dirname, '..', 'layouts', 'shortcodes');
5+
const currentDir = path.dirname(fileURLToPath(import.meta.url));
6+
const SHORTCODES_DIR = path.join(currentDir, '..', 'layouts', 'shortcodes');
57

68
function getShortcodeFiles(dir: string, extension: string): Set<string> {
79
const files = new Set<string>();

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -eu
44

55
# Generate _headers file from TypeScript configuration
6-
npx tsx scripts/generate-headers.ts
6+
npm run build:headers
77

88
hugo --gc --minify -b "$CF_PAGES_URL"

0 commit comments

Comments
 (0)