NX Vite Buildable Libs

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Installation

Run npm install to install all the dependencies.

Reproduction

Running npm run build (aka nx run is-odd:build --skip-nx-cache) prints Typescript errors because path for is-even buildable library is not replaced with the build dist path. So Typescript is trying to check source files outside of the root source folder which results in bunch of TS6059 errors.

packages/is-even/src/index.ts:1:15 - error TS6059: File 'packages/is-even/src/lib/is-even.ts' is not under 'rootDir' 'packages/is-odd'. 'rootDir' is expected to contain all source files.

Further help

Visit the Nx Documentation to learn more.