Skip to content

Commit

Permalink
Update dependencies and drop Node.js < 18 support (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored May 14, 2024
1 parent 8651a17 commit a8d0af0
Show file tree
Hide file tree
Showing 6 changed files with 1,103 additions and 5,802 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node:
- 16
- 18
- 20
- 22
Expand All @@ -68,6 +67,9 @@ jobs:
- name: Install npm dependencies
run: npm ci

- name: Print hugo version
run: npm exec hugo version

- name: Run tests
run: npm run test:ci

Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,13 @@ execFile(hugoPath, ['version'], (error, stdout) => {
#### Unix

```sh
# older npm
$(npm bin)/hugo --help
# newer npm (v9+)
npm exec hugo help
npm run create -- post/my-new-post.md # see below 'npm run-script'
```

#### Windows

```bat
rem older npm
for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
rem newer npm (v9+)
npm exec hugo help
rem see below 'npm run-script'
npm run create -- post/my-new-post.md
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
import BinWrapper from '@xhmikosr/bin-wrapper';
import { packageConfig } from 'pkg-conf';
import { packageConfig } from 'package-config';

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

0 comments on commit a8d0af0

Please sign in to comment.