unimported
Advanced tools
Comparing version 1.20.0 to 1.20.1
@@ -114,3 +114,3 @@ "use strict"; | ||
config, | ||
moduleDirectory }, args), { cwd }); | ||
moduleDirectory }, args), { cwd: cwd.replace(/\\/g, '/') }); | ||
if (args.init) { | ||
@@ -117,0 +117,0 @@ yield (0, config_1.writeConfig)({ |
@@ -260,2 +260,3 @@ "use strict"; | ||
} | ||
path = path.replace(/\\/g, '/'); | ||
// be sure to only process each file once, and not end up in recursion troubles | ||
@@ -271,4 +272,5 @@ if (result.files.has(path)) { | ||
try { | ||
const generator = () => parse(String(path), config); | ||
parseResult = config.cacheId | ||
? yield (0, cache_1.resolveEntry)(path, () => parse(path, config), config.cacheId) | ||
? yield (0, cache_1.resolveEntry)(path, generator, config.cacheId) | ||
: yield parse(path, config); | ||
@@ -275,0 +277,0 @@ result.files.set(path, parseResult); |
{ | ||
"name": "unimported", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"description": "Scans your nodejs project folder and shows obsolete files and modules", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -63,3 +63,3 @@ # unimported | ||
You can drop in npx unresolved into your CI. It will fail if it finds any unimported files that are not explicitly set up in the unresolved config file. | ||
You can drop in `npx unimported` into your CI. It will fail if it finds any unimported files that are not explicitly set up in the `unimported` config file. | ||
@@ -74,3 +74,3 @@ ### Cache | ||
If you need to clear the cache, use `--clearCache`. | ||
If you need to clear the cache, use `--clear-cache`. | ||
@@ -302,4 +302,8 @@ ### Clear Cache | ||
- [depcheck](https://www.npmjs.com/depcheck) | ||
- [unrequired](https://npmjs.com/unrequired) | ||
- [trucker](https://npmjs.com/trucker) | ||
- [ts-unused-exports](https://www.npmjs.com/ts-unused-exports) | ||
- [no-unused-export](https://www.npmjs.com/no-unused-export) | ||
- [ts-prune](https://www.npmjs.com/ts-prune) | ||
@@ -345,2 +349,8 @@ ## License | ||
</tr> | ||
<tr> | ||
<td align="center"><a href="https://startup-cto.net/"><img src="https://avatars.githubusercontent.com/u/3396992?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Bartholomae</b></sub></a><br /><a href="https://github.com/smeijer/unimported/commits?author=dbartholomae" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://t.me/gontovnik"><img src="https://avatars.githubusercontent.com/u/3436659?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Danil Gontovnik</b></sub></a><br /><a href="https://github.com/smeijer/unimported/commits?author=gontovnik" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/jarjee"><img src="https://avatars.githubusercontent.com/u/3888305?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nathan Smyth</b></sub></a><br /><a href="https://github.com/smeijer/unimported/commits?author=jarjee" title="Code">💻</a></td> | ||
<td align="center"><a href="http://petersieg.me/"><img src="https://avatars.githubusercontent.com/u/3128659?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Peter Sieg</b></sub></a><br /><a href="https://github.com/smeijer/unimported/commits?author=chasingmaxwell" title="Code">💻</a> <a href="https://github.com/smeijer/unimported/commits?author=chasingmaxwell" title="Tests">⚠️</a></td> | ||
</tr> | ||
</table> | ||
@@ -347,0 +357,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
101317
1752
360