Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
feat: add outDir option to override .ream location (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov authored Oct 10, 2018
1 parent 1807da0 commit 9a16988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class Ream extends Event {

const defaults = {
entry: 'index.js',
outDir: '.ream',
fsRoutes: false,
transpileDependencies: [],
runtimeCompiler: false,
Expand Down Expand Up @@ -404,7 +405,7 @@ class Ream extends Event {
}

resolveOutDir(...args) {
return this.resolveBaseDir('.ream', ...args)
return this.resolveBaseDir(this.config.outDir, ...args)
}

resolveBaseDir(...args) {
Expand Down
1 change: 1 addition & 0 deletions lib/validateConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 9a16988

Please sign in to comment.