Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8d0af0

Browse filesBrowse files
authored
Update dependencies and drop Node.js < 18 support (#148)
1 parent 8651a17 commit a8d0af0
Copy full SHA for a8d0af0

File tree

Expand file treeCollapse file tree

6 files changed

+1103
-5802
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+1103
-5802
lines changed

‎.github/workflows/ci.yml

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
matrix:
4949
os: [ubuntu-latest, macos-latest, windows-latest]
5050
node:
51-
- 16
5251
- 18
5352
- 20
5453
- 22
@@ -68,6 +67,9 @@ jobs:
6867
- name: Install npm dependencies
6968
run: npm ci
7069

70+
- name: Print hugo version
71+
run: npm exec hugo version
72+
7173
- name: Run tests
7274
run: npm run test:ci
7375

‎.npmrc

Copy file name to clipboardExpand all lines: .npmrc
-1Lines changed: 0 additions & 1 deletion
This file was deleted.

‎README.md

Copy file name to clipboardExpand all lines: README.md
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,13 @@ execFile(hugoPath, ['version'], (error, stdout) => {
3535
#### Unix
3636

3737
```sh
38-
# older npm
39-
$(npm bin)/hugo --help
40-
# newer npm (v9+)
4138
npm exec hugo help
4239
npm run create -- post/my-new-post.md # see below 'npm run-script'
4340
```
4441

4542
#### Windows
4643

4744
```bat
48-
rem older npm
49-
for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
50-
rem newer npm (v9+)
5145
npm exec hugo help
5246
rem see below 'npm run-script'
5347
npm run create -- post/my-new-post.md

‎lib/index.js

Copy file name to clipboardExpand all lines: lib/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path';
33
import process from 'node:process';
44
import { fileURLToPath } from 'node:url';
55
import BinWrapper from '@xhmikosr/bin-wrapper';
6-
import { packageConfig } from 'pkg-conf';
6+
import { packageConfig } from 'package-config';
77

88
const pkg = new URL('../package.json', import.meta.url);
99
const { hugoVersion: HUGO_VERSION } = JSON.parse(await fs.readFile(pkg, 'utf8'));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.