mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
🎨 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:
parent
d715596b50
commit
66f1ddcbe9
@ -1 +1 @@
|
||||
module.exports = require('./pretty-cli');
|
||||
module.exports = require('./lib/pretty-cli');
|
||||
|
@ -12,6 +12,10 @@
|
||||
"lint": "eslint . --ext .js --cache",
|
||||
"posttest": "yarn lint"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"lib"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user