mirror of
https://gh.wpcy.net/https://github.com/elementor/elementor.git
synced 2026-06-18 04:33:19 +08:00
## Summary - Merges the `packages/` turbo-repo into the root npm workspaces — **single `node_modules`, single lockfile, turbo runs from root** - No directory moves: `packages/packages/core|libs|tools` stays as-is - `packages/package.json` stripped to scripts-only (no devDependencies, workspaces, or overrides) - All devDependencies consolidated at root with version bumps where needed - Root scripts updated to use `turbo` and `-w elementor-packages` directly instead of `cd packages && npm run X` ## Changes | File | Action | |------|--------| | `/turbo.json` | **Created** — root turbo config (tasks: build, dev) | | `/package.json` | **Modified** — added workspaces, packageManager, merged devDeps + overrides, updated scripts | | `/packages/package.json` | **Modified** — stripped to scripts-only | | `/packages/turbo.json` | **Deleted** — root turbo.json is now authoritative | | `/packages/package-lock.json` | **Deleted** — single lockfile at root | ## Test plan - [x] `npm install` — succeeds, single `node_modules` at root - [x] `turbo build` — all 20 packages build successfully - [x] `npm run test:packages` — 361/362 suites pass (2 pre-existing failures on main) - [x] No `packages/node_modules` or `packages/package-lock.json` exist - [ ] CI pipeline passes - [ ] `npm run watch:packages` works in dev - [ ] `npm run lint` works Made with [Cursor](https://cursor.com) <!--start_gitstream_placeholder--> ### ✨ PR Description Purpose: Consolidate separate packages directory into single Turbo monorepo workspace structure to unify dependency management and build orchestration across the Elementor codebase. Main changes: - Replaced `prepare-environment:ci` with `install:ci` across all CI workflows and scripts, removing nested package directory navigation - Migrated Turbo configuration and workspace definitions from packages/package.json to root-level package.json with unified workspace paths - Updated build scripts to use Turbo directly at root level and consolidated testing/tooling dependencies into main devDependencies _Generated by LinearB AI and added by gitStream._ <sub>AI-generated content may contain inaccuracies. Please verify before using. 💡 **Tip:** You can customize your AI Description using **Guidelines** [Learn how](https://docs.gitstream.cm/automation-actions/#describe-changes)</sub> <!--end_gitstream_placeholder--> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: ElementorBot <48412871+elementorbot@users.noreply.github.com> Co-authored-by: Davids Seveloff <94905340+davseve@users.noreply.github.com>
15 lines
253 B
JSON
Vendored
15 lines
253 B
JSON
Vendored
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"ui": "tui",
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**"],
|
|
"cache": true
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
}
|
|
}
|
|
}
|