Nest: `nest build` ignores tsconfig exclude option

Created on 15 Mar 2020  路  1Comment  路  Source: nestjs/nest

Bug Report

Current behavior

nest build ignores tsconfig.json's exclude option. e.g.: I want to exclude scripts folder from compiling and this works with tsc. But when I run nest build, scripts folder is also compiled and copied to dist.

Input Code

Inside tsconfig.json:

  "exclude": ["node_modules", "dist", "uploads", "static", "scripts"]

Expected behavior

nest build should obey tsconfig excludes.

Possible Solution

Environment


Nest version: 7.0.1

For Tooling issues:
- Node version: 13.7.0
- Platform:  Linux 4.4

Others:
Yarn: 1.22.4
needs triage

Most helpful comment

Please, provide a minimal repository which reproduces your issue.

From what I've reproduced, it works as expected.

// tsconfig.build.json
{
  "extends": "./tsconfig.json",
  "exclude": ["node_modules", "scripts", "test", "dist", "**/*spec.ts"]
}

>All comments

Please, provide a minimal repository which reproduces your issue.

From what I've reproduced, it works as expected.

// tsconfig.build.json
{
  "extends": "./tsconfig.json",
  "exclude": ["node_modules", "scripts", "test", "dist", "**/*spec.ts"]
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

tronginc picture tronginc  路  3Comments

thohoh picture thohoh  路  3Comments

menme95 picture menme95  路  3Comments

hackboy picture hackboy  路  3Comments

anyx picture anyx  路  3Comments