@datkt/konanc-config
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -0,1 +1,11 @@ | ||
<a name="5.0.1"></a> | ||
## [5.0.1](https://github.com/datkt/konanc-config/compare/5.0.0...5.0.1) (2018-11-07) | ||
### Bug Fixes | ||
* **index.js:** Convert string to single item array to fix merging ([5a7d90e](https://github.com/datkt/konanc-config/commit/5a7d90e)) | ||
<a name="5.0.0"></a> | ||
@@ -2,0 +12,0 @@ # [5.0.0](https://github.com/datkt/konanc-config/compare/4.2.0...5.0.0) (2018-11-07) |
10
index.js
@@ -50,2 +50,10 @@ const { extname, dirname, resolve } = require('path') | ||
if ('string' == typeof conf.library) { | ||
conf.library = [ conf.library ] | ||
} | ||
if ('string' == typeof conf.require) { | ||
conf.require = [ conf.require ] | ||
} | ||
if ('string' == typeof conf.repo) { | ||
@@ -122,3 +130,5 @@ const { repo } = conf | ||
for (const dep of conf.require) { | ||
const prefixed = prefix + dep | ||
merge(conf, load(dep, defaults, env)) | ||
merge(conf, load(prefixed, defaults, env)) | ||
for (const repo of repos) { | ||
@@ -125,0 +135,0 @@ if (repo && 'string' === typeof repo) { |
{ | ||
"name": "@datkt/konanc-config", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Command line utility to read '*.kc' konanc config files to print compiler flags", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
18786
170