hugo-extended 0.126.2 → 0.127.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/lib/install.js CHANGED
@@ -23,14 +23,12 @@ async function install() {
23
23
  const binFile = getBinFilename();
24
24
 
25
25
  // stop here if there's nothing we can download
26
- if (!releaseFile) {
26
+ if (!releaseFile)
27
27
  throw new Error(`Are you sure this platform is supported? See: https://github.com/gohugoio/hugo/releases/tag/v${version}`);
28
- }
29
28
 
30
29
  // warn if platform doesn't support Hugo Extended, proceed with vanilla Hugo
31
- if (!isExtended(releaseFile)) {
30
+ if (!isExtended(releaseFile))
32
31
  console.warn(`${logSymbols.info} Hugo Extended isn't supported on this platform, downloading vanilla Hugo instead.`);
33
- }
34
32
 
35
33
  // download release from GitHub and verify its checksum
36
34
  const download = await downloader(getReleaseUrl(version, releaseFile), {
package/lib/utils.js CHANGED
@@ -44,14 +44,12 @@ export function getBinVersion(bin) {
44
44
  // Simply detect if the given file exists.
45
45
  export function doesBinExist(bin) {
46
46
  try {
47
- if (fs.existsSync(bin)) {
47
+ if (fs.existsSync(bin))
48
48
  return true;
49
- }
50
49
  } catch (error) {
51
50
  // something bad happened besides Hugo not existing
52
- if (error.code !== "ENOENT") {
51
+ if (error.code !== "ENOENT")
53
52
  throw error;
54
- }
55
53
 
56
54
  return false;
57
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hugo-extended",
3
- "version": "0.126.2",
3
+ "version": "0.127.0",
4
4
  "description": "✏️ Plug-and-play binary wrapper for Hugo Extended, the awesomest static-site generator.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/jakejarvis/hugo-extended",
@@ -37,12 +37,8 @@
37
37
  "eslint": "^8.56.0",
38
38
  "mocha": "^10.3.0"
39
39
  },
40
- "scripts": {
41
- "postinstall": "node postinstall.js",
42
- "test": "eslint . && mocha"
43
- },
44
40
  "engines": {
45
- "node": ">=14.14"
41
+ "node": ">=16.14"
46
42
  },
47
43
  "keywords": [
48
44
  "hugo",
@@ -77,5 +73,9 @@
77
73
  "vendor/**",
78
74
  "*.d.ts"
79
75
  ]
76
+ },
77
+ "scripts": {
78
+ "postinstall": "node postinstall.js",
79
+ "test": "eslint . && mocha"
80
80
  }
81
- }
81
+ }