Skip to content

Commit

Permalink
add runkit definition to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlescure committed Oct 2, 2020
1 parent 8f8a5cb commit 067c0cc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.tgz
.vscode
.github
release.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Please consider:

- [Buying me a coffee](https://www.buymeacoffee.com/jeanlescure) :coffee:
- Supporting me on [Patreon](https://www.patreon.com/jeanlescure) :trophy:
- Starring this repo on [Github](https://github.com/jeanlescure/string-crypto) :star2: :octocat:
- Starring this repo on [Github](https://github.com/jeanlescure/string-crypto) :star2:

## Usage

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "string-crypto",
"version": "1.0.1",
"version": "1.0.2",
"description": "Small and and simple (yet secure) library to encrypt and decrypt strings using PBKDF2 for key derivation and AES (defaulted to 256-bit / SHA512)",
"main": "dist/index.js",
"author": "Jean M. Lescure",
"license": "Apache-2.0",
"types": "dist/index.d.ts",
"runkitExampleFilename": "./runkit.js",
"scripts": {
"build": "rollup -c",
"dev": "concurrently \"rollup -cw\" \"nodemon --inspect runkit.js\"",
Expand Down
9 changes: 9 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

npm login
npm publish
npm pack
git tag -a v$(jq -r .version package.json) -m "Releasing version v$(jq -r .version package.json)"
git push origin --tags
npm adduser --registry=https://npm.pkg.github.com/
read -n 1 -s -r -p "Add @ to package.json and press any key to continue"
npm publish --registry=https://npm.pkg.github.com/

0 comments on commit 067c0cc

Please sign in to comment.