Try to make this package work properly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
d9f2b4186f
commit
6c072b339d
2 changed files with 4 additions and 9 deletions
|
@ -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 <sam@samtherapy.net>",
|
||||
"license": "MIT",
|
||||
"pkg": {
|
||||
"scripts": "dist/*.js",
|
||||
"targets": ["node16-linux-x64", "node16-macos-x64", "node16-win-x64"],
|
||||
"outputPath": "dist"
|
||||
}
|
||||
"license": "MIT"
|
||||
}
|
|
@ -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;
|
||||
|
|
Reference in a new issue