NotionX / react-notion-x

Fast and accurate React renderer for Notion. TS batteries included. ⚡️
https://react-notion-x-demo.transitivebullsh.it
MIT License
4.75k stars 552 forks source link

#429 Migrate to turbo and pnpm #461

Open FranciscoMoretti opened 1 year ago

FranciscoMoretti commented 1 year ago

Description

Replaced Lerna and Yarn with Turbo and Pnpm.

Changes:

Benefits

This change has the following advantages:

Turbo Examples

The configuration was inspired by Turborepo official examples

Tests

[x] Installing

pnpm i

[x] Running a global build:

turbo build

[x] Running a build from the package dir

cd packages/notion-utils
pnpm build

[x] Running every dev task

turbo dev

[x] Running tests execute unit eslint and prettier.

turbo test

[x] Running dev in a single example, modifying a dependency, and verifying it rebuilds it

turbo dev --filter=notion-x-example-minimal...

[x] Connecting with nextjs-notion-starter-kit.

[x] Running publish executed the correct tasks

turbo publish

[x] Running vercel deploy

cd examples/minimal
pnpm run vercel-deploy

[x] The cache works as expected in all tasks

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-notion-x ❌ Failed (Inspect) Apr 8, 2023 9:45am
react-notion-x-minimal-demo ❌ Failed (Inspect) Apr 8, 2023 9:45am
FranciscoMoretti commented 1 year ago

Feedback is encouraged. I had to make a few choices here and there and I'm unsure if they are the best.

Also, it seems like deployments are failing and I can't inspect or check details. @transitive-bullshit let me know if there is anything I can do to fix them.