hugo-bin-extended 0.125.7 → 0.126.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.
- package/README.md +0 -6
- package/lib/index.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -35,9 +35,6 @@ execFile(hugoPath, ['version'], (error, stdout) => {
|
|
|
35
35
|
#### Unix
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
# older npm
|
|
39
|
-
$(npm bin)/hugo --help
|
|
40
|
-
# newer npm (v9+)
|
|
41
38
|
npm exec hugo help
|
|
42
39
|
npm run create -- post/my-new-post.md # see below 'npm run-script'
|
|
43
40
|
```
|
|
@@ -45,9 +42,6 @@ npm run create -- post/my-new-post.md # see below 'npm run-script'
|
|
|
45
42
|
#### Windows
|
|
46
43
|
|
|
47
44
|
```bat
|
|
48
|
-
rem older npm
|
|
49
|
-
for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
|
|
50
|
-
rem newer npm (v9+)
|
|
51
45
|
npm exec hugo help
|
|
52
46
|
rem see below 'npm run-script'
|
|
53
47
|
npm run create -- post/my-new-post.md
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import BinWrapper from '@xhmikosr/bin-wrapper';
|
|
6
|
-
import { packageConfig } from '
|
|
6
|
+
import { packageConfig } from 'package-config';
|
|
7
7
|
|
|
8
8
|
const pkg = new URL('../package.json', import.meta.url);
|
|
9
9
|
const { hugoVersion: HUGO_VERSION } = JSON.parse(await fs.readFile(pkg, 'utf8'));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hugo-bin-extended",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"hugoVersion": "0.
|
|
3
|
+
"version": "0.126.0",
|
|
4
|
+
"hugoVersion": "0.126.0",
|
|
5
5
|
"description": "Binary wrapper for Hugo",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"index.js"
|
|
44
44
|
],
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=18"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@xhmikosr/bin-wrapper": "^
|
|
50
|
-
"
|
|
49
|
+
"@xhmikosr/bin-wrapper": "^13.0.5",
|
|
50
|
+
"package-config": "^5.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@xhmikosr/bin-check": "^
|
|
53
|
+
"@xhmikosr/bin-check": "^7.0.3",
|
|
54
54
|
"c8": "^9.1.0",
|
|
55
55
|
"uvu": "^0.5.6",
|
|
56
|
-
"xo": "^0.
|
|
56
|
+
"xo": "^0.58.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"lint": "xo",
|