Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

make a runnable script #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build:
npm run lint
npm run build


publish: build
chmod +x ./scripts/bin/index.js
npm publish
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"build": "tsc -p scripts/tsconfig.json",
"create-wallet": "node scripts/bin/index.js"
},
"bin": {
"create-wallet": "./scripts/bin/index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/kinecosystem/devtools"
Expand Down
1 change: 1 addition & 0 deletions scripts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import { Keypair, KinNetwork, createWallet } from "@kinecosystem/kin.js";
import * as jsonwebtoken from "jsonwebtoken";
import axios from "axios";
Expand Down