Skip to content

Commit

Permalink
fix(npm): fetch dependencie a. only necessary files in bundle
Browse files Browse the repository at this point in the history
- require node >= 18.0.0 for native fetch
- generate bundle with only necessary files (.js and documentation)
- bump version to 1.0.2
  • Loading branch information
z0rrn committed Mar 10, 2024
1 parent 2bf21b0 commit 4f9a749
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ If you use Bun you need to add this to your package.json to [allow the postinsta
}
```

### Requirements

This project uses native fetch (so no node-fetch) so you need nodejs version >= 18.0.0.

## Usage

### npm run-script
Expand Down
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hugo-install",
"version": "1.0.1",
"version": "1.0.2",
"description": "Install the Hugo SSG (https://gohugo.io) as part of `npm install` without using got.",
"keywords": [
"hugo",
Expand All @@ -15,6 +15,13 @@
"author": "Frederik Zorn <[email protected]>",
"type": "module",
"module": "install.js",
"files": [
"README.md",
"LICENSE",
"jsconfig.json",
"install.js",
"bin/cli.js"
],
"bin": {
"hugo": "bin/cli.js"
},
Expand All @@ -37,6 +44,9 @@
"peerDependencies": {
"typescript": "^5.0.0"
},
"engine": {
"node": ">=18.0.0"
},
"hugo-install": {
"hugoVersion": "0.123.2"
}
Expand Down

0 comments on commit 4f9a749

Please sign in to comment.