From 9a169888244e34b3ffd91b04e2d577285a2dc3d0 Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Wed, 10 Oct 2018 15:14:09 +0700 Subject: [PATCH] feat: add outDir option to override .ream location (#112) --- lib/index.js | 3 ++- lib/validateConfig.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 1f2e5e3..e532239 100644 --- a/lib/index.js +++ b/lib/index.js @@ -59,6 +59,7 @@ class Ream extends Event { const defaults = { entry: 'index.js', + outDir: '.ream', fsRoutes: false, transpileDependencies: [], runtimeCompiler: false, @@ -404,7 +405,7 @@ class Ream extends Event { } resolveOutDir(...args) { - return this.resolveBaseDir('.ream', ...args) + return this.resolveBaseDir(this.config.outDir, ...args) } resolveBaseDir(...args) { diff --git a/lib/validateConfig.js b/lib/validateConfig.js index 6d90891..e7c453c 100644 --- a/lib/validateConfig.js +++ b/lib/validateConfig.js @@ -2,6 +2,7 @@ const joi = require('joi') const schema = joi.object().keys({ entry: joi.string(), + outDir: joi.string(), fsRoutes: joi.alternatives().try([ joi.object().keys({ baseDir: joi.string(),