Skip to content

Commit

Permalink
chore: wite some todos
Browse files Browse the repository at this point in the history
  • Loading branch information
svenliebig committed Oct 20, 2022
1 parent ec9ac81 commit 01f00d7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/utils/imports/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ export class ImportManager {
throw new UnresolvedImportError(i)
} else {
// this is a library
// TODO node_modules
// TODO @types

// recursion until mnt root: find closest package.json

// -- resolve node_modules

// -- -- resolve package name
// -- -- resolve @types

// -- -- -- parse package.json and find `types` property
// -- -- -- find relative file path to that file

throw new UnresolvedImportError(i)
}
}
Expand Down

0 comments on commit 01f00d7

Please sign in to comment.