Skip to content

Commit e48e641

Browse files
committed
api: mention relative/absolute path for BaseURL
Either is fine, but relative paths will be resolved against the working directory with regular go filepath semantics.
1 parent ad4a164 commit e48e641

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resolver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ type Resolver interface {
2828
// package.json for resolution.
2929
type NodeResolver struct {
3030
// BaseURL is the root directory of the project. It serves
31-
// the same purpose as baseUrl in tsconfig.json.
31+
// the same purpose as baseUrl in tsconfig.json. If the value is relative,
32+
// it will be resolved against the current working directory.
3233
BaseURL string
3334
}
3435

0 commit comments

Comments
 (0)