Thanks to visit codestin.com
Credit goes to github.com

Skip to content

@nrwl/node:library build srcRootForCompilationRoot rootDir regression bug #3625

@webberwang

Description

@webberwang

Current Behavior

tsconfig.lib.json rootDir is not respected, for example { "rootDir": "./src" } still builds with src in the final output like dist/src

This is a regression bug, in 10.0.11 the outDir is still respected. As of 10.1.0, we have to modify srcRootForCompilationRoot in workspace.json for this.

Expected Behavior

Should output to dist folder without src

Steps to Reproduce

nx generate @nrwl/node:library --buildable, modify tsconfig.lib.json, then nx build [library-name]

Environment

nx : Not Found
  @nrwl/angular : Not Found
  @nrwl/cli : 10.1.0
  @nrwl/cypress : 10.1.0
  @nrwl/eslint-plugin-nx : 10.1.0
  @nrwl/express : Not Found
  @nrwl/jest : 10.1.0
  @nrwl/linter : 10.1.0
  @nrwl/nest : 10.1.0
  @nrwl/next : 10.1.0
  @nrwl/node : 10.1.0
  @nrwl/react : 10.1.0
  @nrwl/schematics : Not Found
  @nrwl/tao : 10.1.0
  @nrwl/web : 10.1.0
  @nrwl/workspace : 10.1.0
  typescript : 3.9.7

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions