rev-dep 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +0 -29
- package/bin.js +2 -2
- package/package.json +4 -4
package/Readme.md
CHANGED
|
@@ -261,35 +261,6 @@ V2 comes with bunch of new commands
|
|
|
261
261
|
|
|
262
262
|
Comparing to previous versions, these tsconfig features are not supported
|
|
263
263
|
|
|
264
|
-
#### Config extends
|
|
265
|
-
|
|
266
|
-
If you tsconfig uses extends, and you have some paths defined in config being extended, paths from extended config won't be used during resolution
|
|
267
|
-
|
|
268
|
-
eg.
|
|
269
|
-
|
|
270
|
-
```json
|
|
271
|
-
// tsconfig.json
|
|
272
|
-
{
|
|
273
|
-
"extends": "./tsconfig.base.json",
|
|
274
|
-
"paths": {
|
|
275
|
-
"@/components": ["src/components/*"]
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
```json
|
|
281
|
-
// tsconfig.base.json
|
|
282
|
-
{
|
|
283
|
-
"paths": {
|
|
284
|
-
"@/utils": ["src/utils/*"]
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
In that scenario imports with `@/utils` won't be resolved.
|
|
290
|
-
|
|
291
|
-
Why it's not supported ? I consider this typescript capability as an usage edge-case. I forgot to to implement it at the begging and I don't feel like investing more time now, before this package get some reasonable adoption and people will be actually requesting this feature.
|
|
292
|
-
|
|
293
264
|
#### Multiple path aliases
|
|
294
265
|
|
|
295
266
|
Only first path will be used in resolution.
|
package/bin.js
CHANGED
|
@@ -45,8 +45,8 @@ if (packageDir === '') {
|
|
|
45
45
|
console.log('https://github.com/jayu/rev-dep/issues')
|
|
46
46
|
process.exit(1)
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
const binary = path.join(packageDir, 'bin', 'rev-dep')
|
|
48
|
+
const isWin = process.platform === "win32"
|
|
49
|
+
const binary = path.join(packageDir, 'bin', 'rev-dep' + (isWin ? '.exe' : ''))
|
|
50
50
|
|
|
51
51
|
if (!fs.existsSync(binary)) {
|
|
52
52
|
console.error("Could not locate binary in package directory.")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rev-dep",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Trace imports, detect unused code, clean dependencies — all with a super-fast CLI",
|
|
5
5
|
"bin": "bin.js",
|
|
6
6
|
"files": [
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"node": ">=18"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@rev-dep/darwin-arm64": "2.
|
|
21
|
-
"@rev-dep/linux-x64": "2.
|
|
22
|
-
"@rev-dep/win32-x64": "2.
|
|
20
|
+
"@rev-dep/darwin-arm64": "2.3.0",
|
|
21
|
+
"@rev-dep/linux-x64": "2.3.0",
|
|
22
|
+
"@rev-dep/win32-x64": "2.3.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"dependency-analysis",
|