hugo-bin-extended 0.112.3 → 0.112.5
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 +2 -2
- package/lib/index.js +2 -2
- package/lib/install.js +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -88,13 +88,13 @@ Each option can be configured in one of the following ways:
|
|
|
88
88
|
### As local or global [.npmrc](https://docs.npmjs.com/files/npmrc) configuration file
|
|
89
89
|
|
|
90
90
|
```ini
|
|
91
|
-
|
|
91
|
+
hugo_bin_download_repo = "https://some.example.com/artifactory/github-releases"
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
### As environment variables
|
|
95
95
|
|
|
96
96
|
```sh
|
|
97
|
-
export
|
|
97
|
+
export HUGO_BIN_DOWNLOAD_REPO="https://some.example.com/artifactory/github-releases"
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
**Note that you have to run `npm install hugo-bin-extended` to re-install hugo-bin-extended itself, if you change any of these options.**
|
package/lib/index.js
CHANGED
|
@@ -32,8 +32,8 @@ function extendedBin(baseUrl) {
|
|
|
32
32
|
async function main(cwd) {
|
|
33
33
|
const config = await packageConfig('hugo-bin-extended', { cwd });
|
|
34
34
|
const downloadRepo = [
|
|
35
|
-
process.env.
|
|
36
|
-
process.env.
|
|
35
|
+
process.env.HUGO_BIN_DOWNLOAD_REPO,
|
|
36
|
+
process.env.npm_config_hugo_bin_download_repo,
|
|
37
37
|
config.downloadRepo
|
|
38
38
|
].find(Boolean) || 'https://github.com';
|
|
39
39
|
const baseUrl = `${downloadRepo}/gohugoio/hugo/releases/download/v${hugoVersion}/`;
|
package/lib/install.js
CHANGED
|
@@ -32,10 +32,10 @@ async function main() {
|
|
|
32
32
|
const bin = await hugoBin(projectRoot);
|
|
33
33
|
|
|
34
34
|
bin.run(['version']).then(() => {
|
|
35
|
-
console.log('Hugo binary
|
|
35
|
+
console.log('Hugo binary successfully installed!');
|
|
36
36
|
})
|
|
37
37
|
.catch(error => {
|
|
38
|
-
console.error('Hugo binary
|
|
38
|
+
console.error('Hugo binary installation failed!');
|
|
39
39
|
throw new Error(error);
|
|
40
40
|
});
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hugo-bin-extended",
|
|
3
|
-
"version": "0.112.
|
|
4
|
-
"hugoVersion": "0.112.
|
|
3
|
+
"version": "0.112.5",
|
|
4
|
+
"hugoVersion": "0.112.5",
|
|
5
5
|
"description": "Binary wrapper for Hugo",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"hugo": "bin/cli.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@xhmikosr/bin-wrapper": "^
|
|
33
|
+
"@xhmikosr/bin-wrapper": "^6.0.1",
|
|
34
34
|
"pkg-conf": "^4.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"bin-check": "^4.1.0",
|
|
38
|
-
"c8": "^7.
|
|
38
|
+
"c8": "^7.14.0",
|
|
39
39
|
"uvu": "^0.5.6",
|
|
40
40
|
"xo": "^0.54.2"
|
|
41
41
|
},
|