From a506dd33cfdac6629777a0ce8e54f288e902004a Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 4 Jan 2017 09:38:20 +1100 Subject: [PATCH] feat(generic): expose some util methods through JS API --- src/api/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/index.js b/src/api/index.js index 1143a50288..a3e63e4a92 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -9,6 +9,9 @@ import _package from './package'; import publish from './publish'; import start from './start'; +import getForgeConfig from '../util/forge-config'; +import readPackageJSON from '../util/read-package-json'; + module.exports = { 'import': _import, // eslint-disable-line init, @@ -18,4 +21,8 @@ module.exports = { 'package': _package, // eslint-disable-line publish, start, + utils: { + getForgeConfig, + readPackageJSON, + }, };