/react-ts-monorepo

A template repository for setting up a monorepo with typescript and react

Primary LanguageTypeScriptMIT LicenseMIT

react-ts-monorepo

a monorepo example with react and typescript

How to setup

# install dependencies
yarn

# build
yarn build

# publish
yarn pub

FAQ

Why should setting include and outDir for each package

include and outDir cannot be hoisted in the root config, because they are reserved relatively to the config they are in.

see microsoft/TypeScript#29172 (comment)

Publish packages with a scope, e.g. @nupt/foo

setup lerna.json

  "publishConfig": {
    "access": "public"
  }