From d5cade2701b2cafa19549f9b81ebb73ae5ab07f6 Mon Sep 17 00:00:00 2001 From: "OBE (Online Business Engineering)" <33532265+oberocks@users.noreply.github.com> Date: Tue, 1 Aug 2023 09:16:21 -0400 Subject: [PATCH] adding missing npm scripts pkg:org and tag for npm publishing --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 860e0284..c7634695 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "main": "src/index.js", "type": "module", "scripts": { - "build": "tsc" + "build": "tsc", + "pkg:org": "npm config set scope obewds", + "tag": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags" }, "files": [ "dist"