diff --git a/index.js b/bin/uniprot.js old mode 100644 new mode 100755 similarity index 98% rename from index.js rename to bin/uniprot.js index 293bd307..6918d6ad --- a/index.js +++ b/bin/uniprot.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { Option, program } from 'commander'; import { createInterface } from 'node:readline'; diff --git a/package.json b/package.json index e07702f5..fec1e02a 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,14 @@ "name": "unipept-cli", "version": "4.0.0", "description": "Command line interface to the Unipept web services", - "main": "index.js", "repository": "git@github.com:unipept/unipept-cli.git", "author": "Bart Mesuere ", "license": "MIT", "private": false, "type": "module", + "bin": { + "uniprot": "./bin/uniprot.js" + }, "dependencies": { "commander": "^12.1.0" }