From f1222746086b964b6749bdc0f6c0cf585e04268a Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Mon, 17 Jun 2024 16:18:10 +0200 Subject: [PATCH] move to bin folder --- index.js => bin/uniprot.js | 2 ++ package.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) rename index.js => bin/uniprot.js (98%) mode change 100644 => 100755 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" }