This project uses Turborepo, for dependency-aware builds and linting. Please read up!
git clone [email protected]:segmentio/analytics-next.git && cd analytics-next
nvm use # install version of node defined in .nvmrc.
yarn && yarn build
yarn lint && yarn test
You have a couple options:
-
you can cd into a single package and run
yarn . build
build a package and all its dependencies (most convenient!). -
You can use turborepo directly to build a package and all dependencies. See: Turborepo https://turbo.build/repo/docs/core-concepts/monorepos/filtering#filter-syntax.
For example:
yarn run -T turbo run build --filter=@segment/analytics-next
or
yarn run -T turbo run build --filter='./packages/node*'
^ Note, the following applies to not only build
, but other tasks such as test
, lint
, etc.