From 1027df4ae4608f7633227ba88284603e7610a2dd Mon Sep 17 00:00:00 2001 From: Dom Harrington Date: Mon, 17 Jun 2024 13:38:51 +0100 Subject: [PATCH] chore: fix build, update readme, add "type": "module" to package.json --- README.md | 2 +- package.json | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8c0062e..895e9d8 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/package.json b/package.json index 8cbede4..b92812b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -24,8 +25,11 @@ "author": "Dom Harrington ", "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", @@ -49,5 +53,6 @@ "all-contributors", "pr-body-labels" ] - } + }, + "type": "module" }