🎨 Update to use files array in package.json

- run `slimer fix package.json` to add a files array everywhere
- manually update slimer-cli to have a files array for bin
- manually update slimer to include commands or else this will break!!
- update pretty-cli to use our standard /lib/ pattern
- this means we only publish what we need to npm, and keeps things cleaner and safer
This commit is contained in:
Hannah Wolfe 2018-11-29 16:00:18 +00:00
parent d715596b50
commit 66f1ddcbe9
6 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
module.exports = require('./pretty-cli');
module.exports = require('./lib/pretty-cli');

View File

@ -12,6 +12,10 @@
"lint": "eslint . --ext .js --cache",
"posttest": "yarn lint"
},
"files": [
"index.js",
"lib"
],
"publishConfig": {
"access": "public"
},

View File

@ -2,7 +2,7 @@
// const testUtils = require('./utils');
require('./utils');
const prettyCLI = require('../pretty-cli');
const prettyCLI = require('../lib/pretty-cli');
// Check the API is as we depend on in other modules;
describe('API', function () {