diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ad683f1 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +build: + npm run lint + npm run build + + +publish: build + chmod +x ./scripts/bin/index.js + npm publish diff --git a/package.json b/package.json index 209a95f..8eda78f 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/scripts/src/index.ts b/scripts/src/index.ts index 42ad289..50f6864 100644 --- a/scripts/src/index.ts +++ b/scripts/src/index.ts @@ -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";