Skip to content

Support for tsconfig paths in monorepos #127

@bennycode

Description

@bennycode

Project:

  • /tsconfig.json - root tsconfig, has path mappings such as @MyLib -> /libs/mylib/src/index.ts
  • /libs/*
  • /libs/mylib/tsconfig.json lib tsconfig extends root one and has an include field for src/*
  • /libs/mylib/src/*
  • /apps/myapp/tsconfig.json app tsconfig extends root one and has an include field for src/*
  • /apps/myapp/src/*

Currently sourceFile.getProject() from ts-morph to locate TS configs. The sourceFile should be a .d.ts file to properly find references from co-located packages: dsherret/ts-morph#1242 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions