Skip to content

Commit

Permalink
chore: upgrade turborepo to v2 (#296)
Browse files Browse the repository at this point in the history
* chore: upgrade turborepo to v2

* chore: remove `--scope` for turbo
  • Loading branch information
hikerpig authored Jun 19, 2024
1 parent 089ca96 commit 77f7817
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 41 deletions.
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

0 comments on commit 77f7817

Please sign in to comment.