From 6c072b339d2697cc0771ac26c469dfba1cedec52 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Wed, 16 Feb 2022 09:39:53 -0600 Subject: [PATCH] Try to make this package work properly Signed-off-by: Sam Therapy --- package.json | 9 ++------- src/token.ts | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index f140716..91c90c4 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "bin": "dist/token.js", "scripts": { "build": "yarn clean && tsc", - "package": "yarn build && pkg . -o dist/feditoken", + "package": "pkg dist/token.js -t node16-linux-x64,node16-macos-x64,node16-win-x64 -o dist/feditoken -C Gzip", "clean": "rm -rf dist", "token": "node ./dist/token.js", "lint": "eslint --ext .ts src", @@ -31,10 +31,5 @@ }, "repository": "https://git.froth.zone/Sam/js-feditoken", "author": "Sam Therapy ", - "license": "MIT", - "pkg": { - "scripts": "dist/*.js", - "targets": ["node16-linux-x64", "node16-macos-x64", "node16-win-x64"], - "outputPath": "dist" - } + "license": "MIT" } \ No newline at end of file diff --git a/src/token.ts b/src/token.ts index 7408bfd..a1551dd 100644 --- a/src/token.ts +++ b/src/token.ts @@ -33,7 +33,7 @@ if (args.help) { optionList: optionDefinitions }, { - content: "Project home: {underline https://git.froth.zone/Sam/fediverse-imagebot}" + content: "Project home: {underline https://git.froth.zone/Sam/js-feditoken}" } ]); console.log(usage); @@ -48,7 +48,7 @@ if (args.verbose) { const instance: string = question("Instance URL: "); callDetector(instance).then(type => { const client = generator(type, instance); - client.registerApp("Node Imagebot", { website: "https://git.froth.zone/Sam/fediverse-imagebot" }) + client.registerApp("JS-Token", { website: "https://git.froth.zone/Sam/js-feditoken" }) .then((appData) => { const clientId = appData.clientId; const clientSecret = appData.clientSecret;