From 12b8d09bcb5bd3daae42284db018b60e69de4617 Mon Sep 17 00:00:00 2001 From: Pavel Voropaiev Date: Mon, 31 Oct 2022 09:53:15 +0200 Subject: [PATCH 1/2] Introduced publish scripts --- CHANGELOG.md | 3 +++ package.json | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49c8e45..453ab94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.1.3 (October 28, 2022) +* Introduced publish scripts + ## 3.1.2 (October 28, 2022) * To fix the incorrect deploy of 3.1.1 diff --git a/package.json b/package.json index dbb1aae..0390210 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,9 @@ "posttest": "tsc", "test": "nyc mocha --require ts-node/register \"spec/**/*spec.ts\" --timeout 50000", "integration-test": "npm run pretest && nyc mocha --require ts-node/register \"spec-integration/**/*spec.ts\" --timeout 500000", - "build": "rm -rf dist && tsc" + "build": "rm -rf dist && tsc", + "publish-dev": "npm run build && npm publish --tag dev", + "publish-prod": "npm run build && npm publish" }, "dependencies": { "@elastic.io/jsonata-moment": "1.1.5", From ee9d6aa7b3da6f2caff64465b9d4666bad8b172b Mon Sep 17 00:00:00 2001 From: Pavel Voropaiev Date: Mon, 31 Oct 2022 09:58:36 +0200 Subject: [PATCH 2/2] Introduced publish scripts --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 47fac15..e3c6938 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ## Table of Contents - [Description](#description) +- [Publish](#publish) - [Available Functions](#Available-Functions) - [REST Clients](#REST-Clients) - [NoAuthRestClient](#NoAuthRestClient) @@ -30,6 +31,10 @@ To install, type npm install @elastic.io/component-commons-library ``` +# Publish +To publish the library one first needs to run `tsc` and then publish via either `npm publish` or `npm publish --tag dev`. +Alternatively, and this is a recommended way, you can simply run a predefined npm script - one of `npm run publish-dev` or `npm run publish-prod`. + # Available Functions ## REST Clients