diff --git a/.eslintignore b/.eslintignore index 83ec1824..8aa19248 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1 @@ -/lib-es5 +/lib-es5 diff --git a/.gitignore b/.gitignore index dd9ae015..e72b94d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -*.*~ -node_modules -npm-debug.log /lib-es5 +/node_modules +npm-debug.log +*.*~ diff --git a/.npmignore b/.npmignore index 9165754b..d9861dc0 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,6 @@ -/lib -/patches/*.patch -/test -.eslintignore -.gitignore +/lib +/patches/*.patch +/test +.eslintignore +.gitignore +npm-debug.log diff --git a/lib/bin.js b/lib/bin.js index 1de243ab..1ffe038b 100644 --- a/lib/bin.js +++ b/lib/bin.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { log } from './log.js'; import minimist from 'minimist'; import { need } from './index.js'; diff --git a/package.json b/package.json index 34c4bcf1..cbda6f87 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "readme": "", "main": "lib-es5/index.js", - "bin": "lib-es5/bin.js", + "bin": { + "pkg-fetch": "lib-es5/bin.js" + }, "babel": { "plugins": [ "transform-async-to-generator", @@ -30,6 +32,7 @@ "devDependencies": { "ava": "0.16.0", "babel-cli": "6.11.4", + "babel-eslint": "6.1.2", "babel-plugin-transform-async-to-generator": "6.8.0", "babel-plugin-transform-runtime": "6.12.0", "babel-preset-es2015": "6.13.2",