Skip to content

Turborepo fixes (Best practices)#216

Merged
yamcodes merged 3 commits intomainfrom
turborepo-fixes-best-practices
Oct 12, 2025
Merged

Turborepo fixes (Best practices)#216
yamcodes merged 3 commits intomainfrom
turborepo-fixes-best-practices

Conversation

@yamcodes
Copy link
Owner

@yamcodes yamcodes commented Oct 12, 2025

  • Removed brace-expansion and jsdom from devDependencies in package.json.
  • Updated pnpm-lock.yaml to reflect the removal of these dependencies and clean up unnecessary entries.
  • Adjusted CI workflow to use pnpm turbo run test instead of the deprecated pnpm test:ci command.
  • Streamlined test commands in package.json files across packages to enhance consistency.

Ref:

Summary by CodeRabbit

  • Tests

    • Unified CI test execution to a single turbo-driven test task.
    • Removed legacy test:ci scripts across packages.
  • Chores

    • Added new type-check and error-check tasks to improve validation.
    • Updated task dependencies and test task inputs; removed caching/persistence for more consistent runs.
    • Removed some dev-only test-related dependencies and scripts.
  • Note

    • No user-facing features or behavioral changes in this release.

…pendencies

- Removed `brace-expansion` and `jsdom` from devDependencies in package.json.
- Updated pnpm-lock.yaml to reflect the removal of these dependencies and clean up unnecessary entries.
- Adjusted CI workflow to use `pnpm turbo run test` instead of the deprecated `pnpm test:ci` command.
- Streamlined test commands in package.json files across packages to enhance consistency.
@changeset-bot
Copy link

changeset-bot bot commented Oct 12, 2025

⚠️ No Changeset found

Latest commit: 43ca656

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
arkenv Ready Ready Preview Comment Oct 12, 2025 6:37pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 12, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Replaces CI test invocation to use Turborepo (pnpm turbo run test), removes package-level test:ci scripts and two devDependencies, updates turbo.json tasks (removes test:ci, adds check tasks, modifies test and typecheck inputs/dependsOn), and removes several app-level test scripts.

Changes

Cohort / File(s) Summary of edits
CI workflow
.github/workflows/tests.yml
Changed test step command from pnpm test:ci to pnpm turbo run test.
Turborepo tasks
turbo.json
Removed test:ci; added //#check and check:errors; typecheck now dependsOn: ["transit"]; test now depends on transit, removed cache/persistent, added inputs including vitest.config.ts.
Root package manifest
package.json
Removed devDependencies brace-expansion and jsdom; replaced/adjusted CI test script names (test:citest:ui change present).
App scripts
apps/www/package.json
Removed test:ci, test:ui, and test:coverage scripts.
Workspace package scripts
packages/arkenv/package.json, packages/vite-plugin/package.json
Removed test:ci scripts (Vitest-run entries).

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant GH as GitHub Actions
  participant Turbo as Turborepo
  participant PKG as Workspace Packages
  rect rgba(0,128,96,0.06)
    GH->>Turbo: run `pnpm turbo run test`
    Note right of Turbo: `test` dependsOn: transit\ninputs include vitest.config.ts
    Turbo->>PKG: run `transit` tasks
    Turbo->>PKG: run package `test` tasks
  end
  alt tests pass
    PKG-->>Turbo: success
    Turbo-->>GH: workflow success
  else tests fail
    PKG-->>Turbo: failure
    Turbo-->>GH: workflow failure
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

tests

Poem

Thump-thump, I tweak the testy trail,
Hopped from ci to turbo’s rail.
Scripts trimmed neat, checks queued in line,
Transit first, then tests combine.
I nibble logs and hop away—green pass shine. 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The title “Turborepo fixes (Best practices)” is too generic to convey the specific changes made, such as updating CI workflows to use pnpm turbo run test and removing deprecated test scripts and dependencies. It references “fixes” and “best practices” without indicating the actual intent or affected area of the repository. Consider rewriting the title to clearly reflect the core changes, such as updating CI workflows to use pnpm turbo run test and removing deprecated test scripts across packages. A more descriptive title might be “Use pnpm turbo run test in CI and remove deprecated test scripts” to immediately inform reviewers of the PR’s intent.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8c9b3e3 and 43ca656.

📒 Files selected for processing (1)
  • turbo.json (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added arkenv Changes to the `arkenv` npm package. @arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv labels Oct 12, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 12, 2025

Open in StackBlitz

npm i https://pkg.pr.new/arkenv@216
npm i https://pkg.pr.new/@arkenv/vite-plugin@216

commit: 43ca656

- Introduced a new `test:ui` command in the root package.json for running Vitest with a UI.
- Removed `test:ci` and `test:coverage` commands from the www package.json to streamline test scripts and enhance consistency across packages.
@github-actions github-actions bot added the www Improvements or additions to arkenv.js.org label Oct 12, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a25d071 and 8c9b3e3.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • .github/workflows/tests.yml (1 hunks)
  • apps/www/package.json (0 hunks)
  • package.json (1 hunks)
  • packages/arkenv/package.json (0 hunks)
  • packages/vite-plugin/package.json (0 hunks)
  • turbo.json (1 hunks)
💤 Files with no reviewable changes (3)
  • packages/vite-plugin/package.json
  • packages/arkenv/package.json
  • apps/www/package.json

- Included default and Vitest configuration file paths as inputs for the test command in turbo.json to enhance test execution context.
@yamcodes yamcodes merged commit d667be7 into main Oct 12, 2025
16 of 17 checks passed
@yamcodes yamcodes deleted the turborepo-fixes-best-practices branch October 12, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv arkenv Changes to the `arkenv` npm package. www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant