Skip to content

Commit

Permalink
chore: fix build, update readme, add "type": "module" to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jun 17, 2024
1 parent 85c7b09 commit 1027df4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const options = {
execOptions: { maxBuffer: 1000 * 1024 },
};

const commits = await gitlogPromise(options);
const commits = await gitlog(options);
```

`gitlog` comes with full typescript support!
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"pretest": "npm run lint",
"test": "jest",
"lint": "prettier --check .",
"format": "prettier --write ."
"format": "prettier --write .",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
Expand All @@ -24,8 +25,11 @@
"author": "Dom Harrington <[email protected]>",
"license": "BSD-3-Clause",
"engines": {
"node": ">= 10.x"
"node": ">= 20.x"
},
"files": [
"dist"
],
"devDependencies": {
"@auto-it/all-contributors": "^10.46.0",
"@auto-it/first-time-contributor": "^10.46.0",
Expand All @@ -49,5 +53,6 @@
"all-contributors",
"pr-body-labels"
]
}
},
"type": "module"
}

0 comments on commit 1027df4

Please sign in to comment.