From e2cfbfe1d573566a6d7f6844a914d08b9dd868df Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Sun, 17 Jan 2021 08:33:15 +1300 Subject: [PATCH] Add automatic documentation deployment (#198) --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index e3b929b..d39ced2 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "docs": "typedoc source/index.ts", "build": "del-cli dist && tsc", "prepublishOnly": "npm run build", + "postpublish": "gh-pages --dist docs --no-history --message \"Deploy documentation\"", "example": "npm run build && node example.js" }, "files": [ @@ -61,6 +62,7 @@ "ava": "^2.4.0", "del-cli": "^3.0.1", "expect-type": "^0.11.0", + "gh-pages": "^3.1.0", "nyc": "^15.1.0", "ts-node": "^9.1.1", "typedoc": "^0.20.13",