Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple tsconfig.xxx.json per app/library #42

Open
Papooch opened this issue Oct 23, 2024 · 0 comments
Open

Support for multiple tsconfig.xxx.json per app/library #42

Papooch opened this issue Oct 23, 2024 · 0 comments

Comments

@Papooch
Copy link

Papooch commented Oct 23, 2024

I have a monorepo setup (pnpm workspaces), where each package has essentially three tsconfigs

  • tsconfig.build.json - for the build options
  • tsconfig.spec.json - for test-specific options (e.g. including test files)
  • tsconfig.json - which ties them together via references with the content:
{
    "extends": "../../tsconfig.base.json",
    "files": [],
    "include": [],
    "references": [
        {
            "path": "./tsconfig.build.json"
        },
        {
            "path": "./tsconfig.spec.json"
        }
    ]
}

Where tsconfig.base.json is the very root one.

When I run this script in the project, it removes those references completely, leaving me with this:

{
    "extends": "../../tsconfig.base.json",
    "files": [],
    "include": [],
+    "compilerOptions": {}
-    "references": [
-        {
-            "path": "./tsconfig.build.json"
-        },
-        {
-            "path": "./tsconfig.spec.json"
-        }
-    ]
}

which I don't want, because it breaks editor support.

I just want it to add references to libraries that this one depends on. Is there any way of achieving that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant