Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Optimize Turbo configuration and clean up dependencies#1758

Merged
NullVoxPopuli merged 1 commit intomainfrom
optimize-turbo-setup
Jul 3, 2025
Merged

Optimize Turbo configuration and clean up dependencies#1758
NullVoxPopuli merged 1 commit intomainfrom
optimize-turbo-setup

Conversation

@wycats
Copy link
Copy Markdown
Contributor

@wycats wycats commented Jul 3, 2025

Overview

This PR optimizes the Turbo monorepo setup and cleans up unused dependencies to improve build performance and maintainability.

Key Changes

1. Turbo Configuration Optimization

  • Standardized turbo command invocation (removed run for consistency)
  • Added TUI for better progress visualization
  • Enabled caching for deterministic tasks (lint, test:node, prepack)
  • Added proper input/output declarations for better cache hit rates
  • Track NODE_ENV and CI environment variables
  • Fixed .reference directory exclusion to prevent lint errors

2. Script Improvements

  • Added developer-friendly aliases:
    • pnpm build → builds all packages (replaces repo:prepack)
    • pnpm dev → starts Vite dev server (replaces start)
    • pnpm knip → audit dependencies
  • Removed redundant scripts and improved naming consistency

3. Dependency Management

  • Removed unused dependencies:
    • npm-run-all - not used in any scripts
    • ts-node - replaced by ./bin/ts wrapper
  • Updated outdated packages:
    • Babel packages to latest versions
    • @typescript-eslint packages to 8.35.1
    • @eslint-community/eslint-plugin-eslint-comments to 4.5.0
    • Various other minor updates

4. Developer Experience

  • Added knip.config.js for dependency auditing
  • Fixed .reference/ember.js template files causing lint errors
  • Updated CLAUDE.md with Turbo best practices documentation

Benefits

  • ✅ Faster builds with improved Turbo caching
  • ✅ Cleaner dependency tree with unused packages removed
  • ✅ Better developer experience with intuitive script names
  • ✅ No more lint errors from .reference directory
  • ✅ Ability to audit dependencies with pnpm knip

This PR contains no breaking changes and all existing workflows continue to work.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 3, 2025

This PRmain
Dev
588K └─┬ .
169K   ├── runtime
160K   ├── syntax
100K   ├── compiler
 58K   ├── opcode-compiler
 27K   ├── manager
 24K   ├── validator
 11K   ├── program
8.9K   ├── reference
7.2K   ├── destroyable
6.3K   ├── util
4.3K   ├── node
3.4K   ├── global-context
2.5K   ├── wire-format
1.0K   ├── vm
969B   ├── encoder
844B   ├── vm-babel-plugins
606B   └── owner
588K └─┬ .
169K   ├── runtime
160K   ├── syntax
100K   ├── compiler
 58K   ├── opcode-compiler
 27K   ├── manager
 24K   ├── validator
 11K   ├── program
8.9K   ├── reference
7.2K   ├── destroyable
6.3K   ├── util
4.3K   ├── node
3.4K   ├── global-context
2.5K   ├── wire-format
1.0K   ├── vm
969B   ├── encoder
844B   ├── vm-babel-plugins
606B   └── owner
Prod
231K └─┬ .
 70K   ├── syntax
 63K   ├── runtime
 48K   ├── compiler
 18K   ├── opcode-compiler
7.9K   ├── manager
5.1K   ├── validator
4.8K   ├── program
3.6K   ├── reference
2.4K   ├── util
2.1K   ├── node
1.6K   ├── wire-format
1.5K   ├── destroyable
737B   ├── vm
594B   ├── global-context
516B   ├── encoder
469B   ├── vm-babel-plugins
155B   └── owner
231K └─┬ .
 70K   ├── syntax
 63K   ├── runtime
 48K   ├── compiler
 18K   ├── opcode-compiler
7.9K   ├── manager
5.1K   ├── validator
4.8K   ├── program
3.6K   ├── reference
2.4K   ├── util
2.1K   ├── node
1.6K   ├── wire-format
1.5K   ├── destroyable
737B   ├── vm
594B   ├── global-context
516B   ├── encoder
469B   ├── vm-babel-plugins
155B   └── owner

- Optimize Turbo setup for better performance and caching
- Add Knip for finding unused code and dependencies
- Remove 28 unused dependencies
- Update prettier configuration to ignore generated/vendored files
- Improve script naming consistency
- Update documentation in CLAUDE.md
@wycats wycats force-pushed the optimize-turbo-setup branch from ce229ce to fbec8af Compare July 3, 2025 05:32
@NullVoxPopuli NullVoxPopuli merged commit c83875b into main Jul 3, 2025
9 checks passed
@NullVoxPopuli NullVoxPopuli deleted the optimize-turbo-setup branch July 3, 2025 11:38
@github-actions github-actions Bot mentioned this pull request Jul 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants