Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Plugin doesn't activate inside subdirectory #9

Closed
stevenmusumeche opened this issue Sep 29, 2017 · 1 comment
Closed

Plugin doesn't activate inside subdirectory #9

stevenmusumeche opened this issue Sep 29, 2017 · 1 comment

Comments

@stevenmusumeche
Copy link

My project has its source code in a subdirectory and tsconfig in that subdirectory. For example:

root
--project1
--project2
----tsconfig.json

I only use Typescript in project2. This works great. When adding this plugin, I don't get any errors, but it's also not activated. Here is my project2/tsconfig.json file

{
    "compilerOptions": {
        "outDir": "build/dist",
        "module": "commonjs",
        "target": "es5",
        "lib": ["es7", "dom"],
        "sourceMap": true,
        "allowJs": true,
        "jsx": "react",
        "moduleResolution": "node",
        "rootDir": "src",
        "forceConsistentCasingInFileNames": true,
        "noImplicitReturns": true,
        "noImplicitThis": true,
        "noImplicitAny": true,
        "strictNullChecks": true,
        "suppressImplicitAnyIndexErrors": true,
        "noUnusedLocals": false,
        "plugins": [
            {
                "name": "typescript-styled-plugin"
            }
        ]
    },
    "exclude": [
        "node_modules",
        "build",
        "scripts",
        "acceptance-tests",
        "webpack",
        "jest",
        "src/setupTests.ts",
        "coverage"
    ],
    "types": ["typePatches"]
}

I have tried adding typescript and typescript-styled-plugin to node_modules in both the root and subdirectory, but neither solved the issue.

@mjbvz
Copy link
Contributor

mjbvz commented Feb 26, 2019

Closing since this issue has not been active recently. If someone want to investigate this, let me know

@mjbvz mjbvz closed this as completed Feb 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants