diff --git a/package.json b/package.json index 3abe5ca..386e1df 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,7 @@ "dependencies": { "command-line-args": "5.2.1", "command-line-usage": "6.1.3", - "megalodon": "4.1.0", - "typescript": "4.8.4" + "megalodon": "4.1.0" }, "devDependencies": { "@types/command-line-args": "5.2.0", @@ -14,10 +13,11 @@ "eslint-config-prettier": "8.5.0", "eslint-plugin-prettier": "4.2.1", "pkg": "5.8.0", - "prettier": "2.7.1" + "prettier": "2.7.1", + "typescript": "4.8.4" }, "name": "feditoken", - "version": "1.2.0", + "version": "1.2.1", "description": "Token Generation for the fediverse (Pleroma, Mastodon, Misskey)", "main": "dist/token.js", "bin": "dist/token.js", @@ -28,9 +28,13 @@ "lint:ci": "eslint --ext .ts,.js ./src && prettier ./src --check", "package": "pkg . -C Gzip", "test": "echo \"No tests yet!\" && exit 0", - "token": "node ./dist/token.js" + "token": "node ./dist/token.js", + "prepublishOnly": "pnpm build" }, "repository": "https://git.froth.zone/Sam/js-feditoken", "author": "Sam Therapy ", - "license": "0BSD" -} + "license": "0BSD", + "files": [ + "dist" + ] +} \ No newline at end of file diff --git a/src/token.ts b/src/token.ts index 10be5b3..c03a2be 100644 --- a/src/token.ts +++ b/src/token.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + // Takes a user inputted fediverse instance and generates a token for the bot, and adds it to the configuration file import generator, { detector } from "megalodon";