ts-lib-utils
Advanced tools
Comparing version 2.2.0-alpha.2 to 2.2.0
@@ -55,3 +55,20 @@ "use strict"; | ||
if (config.extends) { | ||
const project = path.resolve(dirname, config.extends); | ||
let project; | ||
if (path.isAbsolute(config.extends)) { | ||
project = config.extends; | ||
} | ||
else if (config.extends === '.' | ||
|| config.extends === '..' | ||
|| config.extends.startsWith(`.${path.sep}`) | ||
|| config.extends.startsWith(`..${path.sep}`) | ||
|| config.extends.startsWith('./') | ||
|| config.extends.startsWith('../')) { | ||
project = path.resolve(dirname, config.extends); | ||
} | ||
else if (config.extends.endsWith('.json')) { | ||
project = path.resolve(dirname, 'node_modules', config.extends); | ||
} | ||
else { | ||
project = path.resolve(dirname, 'node_modules', config.extends + '.json'); | ||
} | ||
const { configFilePath, dirname: extendsBasename } = getTsConfigFilePath(project); | ||
@@ -58,0 +75,0 @@ const extendsConfig = getTsConfig(configFilePath, extendsBasename); |
@@ -62,3 +62,20 @@ import * as tslib_1 from "tslib"; | ||
if (config.extends) { | ||
var project = path.resolve(dirname, config.extends); | ||
var project = void 0; | ||
if (path.isAbsolute(config.extends)) { | ||
project = config.extends; | ||
} | ||
else if (config.extends === '.' | ||
|| config.extends === '..' | ||
|| config.extends.startsWith("." + path.sep) | ||
|| config.extends.startsWith(".." + path.sep) | ||
|| config.extends.startsWith('./') | ||
|| config.extends.startsWith('../')) { | ||
project = path.resolve(dirname, config.extends); | ||
} | ||
else if (config.extends.endsWith('.json')) { | ||
project = path.resolve(dirname, 'node_modules', config.extends); | ||
} | ||
else { | ||
project = path.resolve(dirname, 'node_modules', config.extends + '.json'); | ||
} | ||
var _a = getTsConfigFilePath(project), configFilePath_1 = _a.configFilePath, extendsBasename = _a.dirname; | ||
@@ -65,0 +82,0 @@ var extendsConfig = getTsConfig(configFilePath_1, extendsBasename); |
{ | ||
"name": "ts-lib-utils", | ||
"version": "2.2.0-alpha.2", | ||
"version": "2.2.0", | ||
"description": "Utils to develop library using typescript", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "3815035d741467e38139ed5e3fcb8f72b84886cf" | ||
"gitHead": "bb02e64c1f349cbf94e1c8b1a5f20e89dd720c2b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
20099
532
1