diff --git a/ghost/package-json/lib/filter.js b/ghost/package-json/lib/filter.js index d9ac182049..c461599514 100644 --- a/ghost/package-json/lib/filter.js +++ b/ghost/package-json/lib/filter.js @@ -4,7 +4,7 @@ var _ = require('lodash'), /** * ### Filter Packages - * Normalizes packages read by read-packages so that the apps and themes modules can use them. + * Normalizes packages read by read-packages so that the themes module can use them. * Iterates over each package and return an array of objects which are simplified representations of the package * with 3 properties: * - `name` - the package name @@ -17,10 +17,10 @@ var _ = require('lodash'), * * @param {object} packages as returned by read-packages * @param {array/string} active as read from the settings object - * @returns {Array} of objects with useful info about apps / themes + * @returns {Array} of objects with useful info about themes */ filterPackages = function filterPackages(packages, active) { - // turn active into an array (so themes and apps can be checked the same) + // turn active into an array if it isn't one, so this function can deal with lists and one-offs if (!Array.isArray(active)) { active = [active]; } diff --git a/ghost/package-json/lib/index.js b/ghost/package-json/lib/index.js index 0f5a4c1bc5..cbc3cb022f 100644 --- a/ghost/package-json/lib/index.js +++ b/ghost/package-json/lib/index.js @@ -3,9 +3,7 @@ * * Ghost has / is in the process of gaining support for several different types of sub-packages: * - Themes: have always been packages, but we're going to lean more heavily on npm & package.json in future - * - Adapters: an early version of apps, replace fundamental pieces like storage, will become npm modules - * - Apps: plugins that can be installed whilst Ghost is running & modify behaviour - * - More? + * - Adapters: replace fundamental pieces like storage, will become npm modules * * These utils facilitate loading, reading, managing etc, packages from the file system. */