Skip to content

Commit

Permalink
adding missing npm scripts pkg:org and tag for npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
oberocks committed Aug 1, 2023
1 parent 805ff5a commit d5cade2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d5cade2

Please sign in to comment.