Skip to content

Commit d830d7e

Browse files
authored
Update dependencies and drop Node.js < 16 support (#145)
1 parent 1e1f196 commit d830d7e

File tree

6 files changed

+1367
-2546
lines changed

6 files changed

+1367
-2546
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
matrix:
4747
os: [ubuntu-latest, macos-latest, windows-latest]
4848
node:
49-
- '14.14.0'
5049
- 16
5150
- 18
5251
- 20

lib/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getProjectRoot() {
1616
const paths = cwd.split(path.sep);
1717
// If `process.cwd` ends with 'node_modules/*' then get the dependent root directory,
1818
// otherwise return the `cwd` (ordinary it will be the postinstall process of hugo-bin itself).
19-
if (paths.length > 1 && paths[paths.length - 2] === 'node_modules') {
19+
if (paths.length > 1 && paths.at(-2) === 'node_modules') {
2020
return path.resolve('../../', cwd);
2121
}
2222

0 commit comments

Comments
 (0)