zzarcon / ts-react-toolbox

Opinionated toolbox boilerplate to create Typescript React components 🛠:package:
MIT License
23 stars 5 forks source link

Use current dir as a target #8

Closed theKashey closed 5 years ago

theKashey commented 5 years ago

Recently I've tried to use ts-react-toolbox in a monorepo, and it failed me :sadparrot:

Problem

build script uses relative path, and it always refer to a one location - literally project root.

Solution

generate tsconfig on the fly, using absolute paths from process.cwd, which reflect the project build script was called for.

zzarcon commented 5 years ago

Looks good, thanks for doing this @theKashey !

theKashey commented 5 years ago

🙏 release a new version 🙏

theKashey commented 5 years ago

Follow up - https://github.com/zzarcon/ts-react-toolbox/pull/9