diff --git a/.gitignore b/.gitignore index 60de32e..add1afe 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ node_modules/ *.tgz npm-debug.log* yarn.lock +!lib/cli.js diff --git a/bin/index.js b/bin/index.js deleted file mode 100644 index dbb8c56..0000000 --- a/bin/index.js +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env node - -// fallback to global only if local doesn't exist! -require('fallback-cli')('@crazyfactory/uptrans/lib/index.js', '../lib/cli.js'); diff --git a/lib/cli.js b/lib/cli.js new file mode 100644 index 0000000..033de74 --- /dev/null +++ b/lib/cli.js @@ -0,0 +1,4 @@ +#!/usr/bin/env node + +// fallback to global only if local doesn't exist! +require('fallback-cli')('@crazyfactory/uptrans/lib/index.js', "./index.js"); diff --git a/package.json b/package.json index 3f63ed2..1bca912 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "./lib/index.js", "bin": { - "uptrans": "./bin/index.js" + "uptrans": "./lib/cli.js" }, "typings": "./lib/index", "module": "./lib.es2015/index.js",