dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.
MIT License
1.82k stars 104 forks source link

How to ignore expecific paths? #126

Closed lindomar-oliveira closed 4 years ago

lindomar-oliveira commented 4 years ago
    ...
    "paths": {
      "@common/*": ["src/common/*"],
      "@config": ["src/config"],
      "@modules/*": ["(src/*)(?!@common|@config"]
    }

Tried the example above but it didn't work.

I want @modules to list all folders in src, except in common and config.

cspotcode commented 4 years ago

If TypeScript can't do it, then we won't support it either. You should be able to find answers in the TypeScript Discord, StackOverflow, etc. https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping