Skip to content

Commit

Permalink
Update dependencies and drop Node.js < 16 support (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Dec 23, 2023
1 parent 1e1f196 commit d830d7e
Show file tree
Hide file tree
Showing 6 changed files with 1,367 additions and 2,546 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node:
- '14.14.0'
- 16
- 18
- 20
Expand Down
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getProjectRoot() {
const paths = cwd.split(path.sep);
// If `process.cwd` ends with 'node_modules/*' then get the dependent root directory,
// otherwise return the `cwd` (ordinary it will be the postinstall process of hugo-bin itself).
if (paths.length > 1 && paths[paths.length - 2] === 'node_modules') {
if (paths.length > 1 && paths.at(-2) === 'node_modules') {
return path.resolve('../../', cwd);
}

Expand Down
Loading

0 comments on commit d830d7e

Please sign in to comment.