1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-24 10:25:57 -04:00

fix: support hugo's new macos .pkg installer (https://github.com/gohugoio/hugo/issues/14135)

- Replaced `careful-downloader` with custom download and checksum verification functions.
- Updated `log-symbols`, `read-pkg-up`, and added `adm-zip` and `tar` as dependencies.
- Enhanced installation process for macOS and other platforms, including cleanup of downloaded files.
- Adjusted binary path handling for macOS.
This commit is contained in:
2025-12-19 11:38:06 -05:00
parent 8004e3a98e
commit 6eb0302a83
6 changed files with 1206 additions and 1951 deletions
+10 -23
View File
@@ -30,15 +30,17 @@
"exports": "./index.js",
"types": "./index.d.ts",
"dependencies": {
"careful-downloader": "^3.0.0",
"log-symbols": "^5.1.0",
"read-pkg-up": "^9.1.0"
"adm-zip": "^0.5.16",
"log-symbols": "^7.0.1",
"read-package-up": "^11.0.0",
"tar": "^7.5.2"
},
"devDependencies": {
"@jakejarvis/eslint-config": "*",
"del": "^7.1.0",
"eslint": "^8.56.0",
"mocha": "^10.3.0"
"@types/adm-zip": "^0.5.7",
"del": "^8.0.1",
"eslint": "^9.39.2",
"globals": "^16.5.0",
"mocha": "^11.7.5"
},
"scripts": {
"postinstall": "node postinstall.js",
@@ -65,20 +67,5 @@
"frontmatter",
"go",
"golang"
],
"eslintConfig": {
"extends": "@jakejarvis/eslint-config",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"ignorePatterns": [
"vendor/**",
"*.d.ts"
]
}
]
}