From 9c4cd8406381157321c51643351c98debcfaeea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Hern=C3=A1ndez=20Serrano?= Date: Fri, 6 Aug 2021 19:17:16 +0200 Subject: [PATCH] API holds current version --- build/build.docs.js | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/build.docs.js b/build/build.docs.js index f17fe2e..2b86b0c 100644 --- a/build/build.docs.js +++ b/build/build.docs.js @@ -25,7 +25,7 @@ async function typedoc () { // typedoc options here entryPoints: ['src/ts/index.ts'], plugin: ['typedoc-plugin-markdown'], - includeVersion: false, + includeVersion: true, entryDocument: 'API.md', readme: 'none', hideBreadcrumbs: true diff --git a/package.json b/package.json index f1e5a37..6b3d7d4 100644 --- a/package.json +++ b/package.json @@ -54,9 +54,11 @@ "clean": "rimraf .nyc_output .mocha-ts coverage dist docs", "coverage": "nyc --check-coverage --exclude build --exclude '{src/ts/**/*.spec.ts,test/**/*.ts}' --reporter=text --reporter=lcov node ./build/bin/mocha-ts.js --require build/testing/mocha/mocha-init.js '{src/ts/**/*.spec.ts,test/**/*.ts}'", "docs": "node build/build.docs.js", + "git:add": "git add -A", "lint": "ts-standard --fix", "mocha": "node ./build/bin/mocha-ts.js --require build/testing/mocha/mocha-init.js ", - "preversion": "npm run build", + "version": "run-s build git:add", + "postversion": "git push --follow-tags", "test": "run-s test:browser test:node", "test:browser": "node build/testing/browser/index.js", "test:node": "npm run mocha -- '{src/ts/**/*.spec.ts,test/**/*.ts}'",