Skip to content

Support for tsconfig.json Paths #117

@GeisonJr

Description

@GeisonJr

Description:
I'm using the borp package with a TypeScript project, and I noticed that borp doesn’t currently support paths defined in the tsconfig.json file. This feature would be highly beneficial for maintaining cleaner import paths and improving code organization.

Suggested Solution:
Add support for resolving module paths based on tsconfig.json configurations. This would allow for seamless integration of custom import paths, enabling shorter and more manageable imports across projects.

Example:
Here’s an example of the tsconfig.json paths section that borp would ideally support:

{
  "compilerOptions": {
    "incremental": true,
    "baseUrl": "./",
    "paths": {
      "@components/*": ["src/components/*"],
      "@utils/*": ["src/utils/*"]
    }
  }
}

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