Skip to content

can't find .json in project file list despite tsc ok #1512

Closed
@jfellus

Description

@jfellus

I have a monorepo with the following hierarchy :

/tsconfig.json
/src/stuff.ts
/packages/adapters/tsconfig.json
/packages/adapters/src/stuff.ts
/packages/adapters/src/files/blabla.json

blabla.json is imported in some ts modules inside the adapters package.

/packages/adapters/tsconfig.json extends
/tsconfig.json

running tsc --build in any meaningful folder yields no error. Great !

but in atom I get
blabla.json is not in project file list. Projects must list all files ...

my blabla.json is properly included in /packages/adapters/tsconfig.json

/* /packages/adapters/tsconfig.json */
{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "outDir": "./lib",
    "rootDir": "./src",
    "composite": true
  },
  "include": ["./src/", "./src/files/*.json"]
}

/* /tsconfig.json */
{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "declaration": true,
    "composite": true,
    "removeComments": true,
    "strict": true,
    "noImplicitAny": false,
    "noImplicitThis": false,
    "baseUrl": "./",
    "paths": {
      "@blabla/adapters": ["./packages/adapters/src"],
    },
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "resolveJsonModule": true,
    "noFallthroughCasesInSwitch": true,
    "forceConsistentCasingInFileNames": true,
  },
  "exclude": ["node_modules", "**/*.spec.ts", "**/lib"]
}

should I set any option on the atom plugin to finally get the same behavior as a direct npx tsc --build ?

thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions