Skip to content

Using exclusion in filesGlob still giving errors #713

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

Closed
JaKXz opened this issue Nov 10, 2015 · 2 comments
Closed

Using exclusion in filesGlob still giving errors #713

JaKXz opened this issue Nov 10, 2015 · 2 comments

Comments

@JaKXz
Copy link

JaKXz commented Nov 10, 2015

This is my tsconfig.json:

{
  "version": "1.6.2",
  "compilerOptions": {
    "experimentalDecorators": true,
    "module": "commonjs",
    "noImplicitAny": false,
    "target": "ES5",
    "sourceMap": true
  },
  "filesGlob": [
    "typings/tsd.d.ts",
    "index.ts",
    "!**/*.spec.ts",
    "!*spec.ts", 
    "!mocha.conf.ts"
  ],
  "files": [
    "typings/tsd.d.ts",
    "index.ts"
  ]
}

However, I'm still seeing Project-wide TS errors in Atom, and I think as a result I'm not getting auto-completion as I work... the error message says, for each of those files:

The file "/absolute/path/to/mocha.conf.ts" is not included in the TypeScript compilation context. If this is not intended, please check the "files" or "filesGlob" section of your tsconfig.json file. at line 1 col 1 in mocha.conf.ts

Also, I'm assuming (if this isn't broken) that I only need !**/*.spec.ts to ignore all those files from the current directory down?

@blakeembrey
Copy link
Member

@JaKXz That error is a separate error. It's a duplicate of #558

@JaKXz
Copy link
Author

JaKXz commented Nov 10, 2015

Ah. Will close. Thanks.

@JaKXz JaKXz closed this as completed Nov 10, 2015
@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 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