diff --git a/cat.js b/cat.js deleted file mode 100644 index 8235a44..0000000 --- a/cat.js +++ /dev/null @@ -1,12 +0,0 @@ -#! /usr/bin/env node - -const fs = require('fs') -const path = require('path') - -fs.readFile(path.join(process.cwd(), './spec.md'), {encoding: 'utf8'}, (err, file) => { - if (err) { - console.log('Unable to find file') - } - - console.log(file) -}) diff --git a/cat.sh b/cat.sh new file mode 100755 index 0000000..35c9aa3 --- /dev/null +++ b/cat.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +cat spec.md diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..df0a42f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "standard-readme-spec", + "version": "1.1.3", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index cce1c93..8153553 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,7 @@ "name": "standard-readme-spec", "version": "1.1.3", "description": "Readme Standard Style", - "main": "cat.js", - "bin": "cat.js", + "bin": "cat.sh", "repository": { "type": "git", "url": "git+https://github.com/RichardLitt/standard-readme.git"