Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade turborepo to v2 #296

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"ci:coverage": "pnpm exec jest --coverage --ci",
"clean": "rimraf \"packages/**/lib\"",
"compile": "pnpm exec turbo run compile --concurrency=10",
"compile:browser": "pnpm exec turbo run compile --concurrency=10 --ignore='@pintora/cli'",
"compile:browser": "pnpm exec turbo run compile --concurrency=10 --filter='!@pintora/cli'",
"coverage": "pnpm exec jest --coverage",
"demo:dev": "cd demo && npm run dev",
"format": "npm run prettier -- --write",
Expand All @@ -24,7 +24,7 @@
"upload-coverage": "codecov -f coverage/coverage-final.json",
"vercel-build": "npm run compile:browser && npm run build-site",
"watch": "pnpm exec turbo run watch --concurrency=10 --no-cache",
"watch:browser": "pnpm exec turbo run watch --concurrency=10 --no-cache --no-deps --scope='@pintora/diagrams'",
"watch:browser": "pnpm exec turbo run watch --concurrency=10 --no-cache --no-deps --filter='@pintora/diagrams'",
"website:dev": "cd website && npm run start"
},
"lint-staged": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"lint-staged": "^15.0.0",
"prettier": "^3.0.3",
"rimraf": "5.0.5",
"turbo": "^1.11.3",
"turbo": "^2.0.4",
"typescript": "^5.0.0",
"typescript-eslint": "^7.0.0"
},
Expand Down
80 changes: 51 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/build-site.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/env bash

pnpm exec turbo run build --scope='pintora-demo'
pnpm exec turbo run build --filter='pintora-demo'
pushd website && pnpm run build && popd
cp -r demo/dist/ website/build/demo
10 changes: 5 additions & 5 deletions scripts/watch-for-browser.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pnpm exec turbo run watch --concurrency=10 \
--no-cache --no-deps --continue --parallel \
--scope="@pintora/renderer" \
--scope="@pintora/diagrams" \
--scope="@pintora/core" \
--scope="@pintora/test-shared" \
--scope="@pintora/standalone"
--filter="@pintora/renderer" \
--filter="@pintora/diagrams" \
--filter="@pintora/core" \
--filter="@pintora/test-shared" \
--filter="@pintora/standalone"
4 changes: 1 addition & 3 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/master",
"npmClient": "pnpm",
"pipeline": {
"tasks": {
"compile": {
"dependsOn": [
"^compile"
Expand Down
Loading