From 187fec3f325625af1d3470e38b05d59a4818987b Mon Sep 17 00:00:00 2001 From: cj Date: Thu, 8 Dec 2016 00:55:44 -0600 Subject: [PATCH] if srcDir not set, default to this.dir (rootDir) --- lib/nuxt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nuxt.js b/lib/nuxt.js index 8dfbc0473b..5b841cdc92 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -51,7 +51,7 @@ class Nuxt { // Env variables this.dev = this.options.dev this.dir = (typeof options.rootDir === 'string' && options.rootDir ? options.rootDir : process.cwd()) - this.srcDir = (typeof options.srcDir === 'string' && options.srcDir ? options.srcDir : process.cwd()) + this.srcDir = (typeof options.srcDir === 'string' && options.srcDir ? options.srcDir : this.dir) // If store defined, update store options to true if (fs.existsSync(join(this.srcDir, 'store', 'index.js'))) { this.options.store = true