hugo-bin-extended 0.121.1 → 0.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/install.js +1 -1
  2. package/package.json +5 -5
package/lib/install.js CHANGED
@@ -16,7 +16,7 @@ function getProjectRoot() {
16
16
  const paths = cwd.split(path.sep);
17
17
  // If `process.cwd` ends with 'node_modules/*' then get the dependent root directory,
18
18
  // otherwise return the `cwd` (ordinary it will be the postinstall process of hugo-bin-extended itself).
19
- if (paths.length > 1 && paths[paths.length - 2] === 'node_modules') {
19
+ if (paths.length > 1 && paths.at(-2) === 'node_modules') {
20
20
  return path.resolve('../../', cwd);
21
21
  }
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hugo-bin-extended",
3
- "version": "0.121.1",
4
- "hugoVersion": "0.121.1",
3
+ "version": "0.122.0",
4
+ "hugoVersion": "0.122.0",
5
5
  "description": "Binary wrapper for Hugo",
6
6
  "repository": {
7
7
  "type": "git",
@@ -30,14 +30,14 @@
30
30
  "hugo": "bin/cli.js"
31
31
  },
32
32
  "dependencies": {
33
- "@xhmikosr/bin-wrapper": "^11.0.2",
33
+ "@xhmikosr/bin-wrapper": "^12.0.0",
34
34
  "pkg-conf": "^4.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@xhmikosr/bin-check": "^6.0.0",
38
38
  "c8": "^8.0.1",
39
39
  "uvu": "^0.5.6",
40
- "xo": "^0.54.2"
40
+ "xo": "^0.56.0"
41
41
  },
42
42
  "scripts": {
43
43
  "lint": "xo",
@@ -53,7 +53,7 @@
53
53
  "index.js"
54
54
  ],
55
55
  "engines": {
56
- "node": "^14.14.0 || >=16.0.0"
56
+ "node": ">=16"
57
57
  },
58
58
  "xo": {
59
59
  "space": true,