-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Description
I'm having trouble getting dependency-tree to follow ts imports from js files. For instance if I define:
// one.ts
import {two} from './two';
export function one() {
console.log('one');
two()
}// two.js
import {three} from './three';
export function two() {
console.log('two');
three()
}// three.ts
import {four} from './four';
export function three() {
console.log('three');
four()
}// four.js
export function four() {
console.log('four');
}when I run dependency-tree on the source code:
dependency-tree --directory='.' one.ts
I get the following output:
{
"one.ts": [
"two.js"
],
"two.js": []
}
But I'm expecting dependency-tree to be able to resolve the typescript import from a javascript file. Is there any documentation on how to do this? It seems like a common enough case.
NikhilVerma
Metadata
Metadata
Assignees
Labels
No labels