tsc 和嵌套 tsconfig

WHI*_*LOR 5 typescript tsc

TS 3.5 我有以下配置,在开发过程中可以与 tsserver 配合使用:

/tsconfig.json <= "strict": true
  /nested/tsconfig.json <= extends parent tsconfig, "noImplicitThis": false
  /nested/some ts code <= has implicit this
Run Code Online (Sandbox Code Playgroud)

所以我的父配置定义了严格的 true,并且项目中的大多数代码都符合此规则。但是在名为的文件夹中,nested有一个代码不符合whit noImplicitThis,所以我在那里添加了tsconfig.jsonextends父级tsconfig并将compilerOptionnoImplicitThis设置为false.

我在开发时没有遇到任何错误vscode

但是当我尝试这样做tsc -p .(在根目录中)时,我在文件夹代码中收到“隐式此”错误nested

所以我不知道如何在nested/**使用tsc.