Comparing version 3.9.0 to 3.9.1
@@ -111,2 +111,9 @@ #!/usr/bin/env node | ||
if (config.tsConfig) { | ||
const ts = require('typescript'); | ||
const tsParsedConfig = ts.readJsonConfigFile(config.tsConfig, ts.sys.readFile); | ||
const obj = ts.parseJsonSourceFileConfigFileContent(tsParsedConfig, ts.sys, path.dirname(config.tsConfig)); | ||
config.tsConfig = obj.raw; | ||
} | ||
if (program.includeNpm) { | ||
@@ -113,0 +120,0 @@ config.includeNpm = program.includeNpm; |
# CHANGELOG | ||
## v3.9.1 (June 08, 2020) | ||
* Improved performance when reading TypeScript config (Thanks to @FauxFaux) | ||
## v3.9.0 (May 07, 2020) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "madge", | ||
"version": "3.9.0", | ||
"version": "3.9.1", | ||
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>", | ||
@@ -66,2 +66,3 @@ "repository": "git://github.com/pahen/madge", | ||
"rc": "^1.2.7", | ||
"typescript": "^3.7.5", | ||
"walkdir": "^0.4.1" | ||
@@ -68,0 +69,0 @@ }, |
@@ -370,2 +370,6 @@ <p align="center"> | ||
## Using both Javascript and Typescript in your project? | ||
Madge uses [dependency-tree](https://www.npmjs.com/package/dependency-tree) which uses [filing-cabinet](https://www.npmjs.com/package/filing-cabinet) to resolve modules. However it requires configurations for each file type (js/jsx) and (ts/tsx). So provide both `webpackConfig` and `tsConfig` options to madge. | ||
## Using mixed import syntax in the same file? | ||
@@ -372,0 +376,0 @@ |
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
75957
1820
491
22
+ Addedtypescript@^3.7.5