@datkt/konanc-config
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -0,1 +1,11 @@ | ||
<a name="5.2.0"></a> | ||
# [5.2.0](https://github.com/datkt/konanc-config/compare/5.1.1...5.2.0) (2018-11-12) | ||
### Features | ||
* **index.js:** Resolve relative library paths if './' is in path prefix ([d6785c8](https://github.com/datkt/konanc-config/commit/d6785c8)) | ||
<a name="5.1.1"></a> | ||
@@ -2,0 +12,0 @@ ## [5.1.1](https://github.com/datkt/konanc-config/compare/5.1.0...5.1.1) (2018-11-07) |
13
index.js
@@ -75,3 +75,3 @@ const { extname, dirname, resolve, sep: PATH_SEPARATOR } = require('path') | ||
const relative = find(resolve(dirname(config), repo)) | ||
const resolved= find(repo) | ||
const resolved = find(repo) | ||
@@ -109,2 +109,13 @@ if (relative && !conf.repo.includes(relative)) { | ||
conf.library = conf.library.map((library) => { | ||
if (!library || 'string' != typeof library) { | ||
return '' | ||
} | ||
if ('.' + PATH_SEPARATOR == library.slice(0, 2)) { | ||
return resolve(dirname(config), library) | ||
} | ||
return library | ||
}) | ||
const children = [] | ||
@@ -111,0 +122,0 @@ |
{ | ||
"name": "@datkt/konanc-config", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "Command line utility to read '*.kc' konanc config files to print compiler flags", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21234
217