e904b667c6
Build/Publish Develop Docs / deploy (push) Failing after 1s
PaddleOCR Code Style Check / check-code-style (push) Failing after 1s
PaddleOCR PR Tests GPU / detect-changes (push) Failing after 1s
PaddleOCR PR Tests / detect-changes (push) Failing after 1s
PaddleOCR PR Tests GPU / test-pr-gpu (push) Has been cancelled
PaddleOCR PR Tests / test-pr (push) Has been cancelled
PaddleOCR PR Tests GPU / test-pr-gpu-impl (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.13) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.8) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.9) (push) Has been cancelled
1.7 KiB
1.7 KiB
Monorepo conventions
English | 简体中文
Command execution
When you only want one workspace, use root-level workspace commands with explicit paths:
npm run build --workspace packages/core
npm run dev --workspace apps/demo
(You can also use workspace package names where unambiguous, e.g. npm run dev --workspace demo.)
Workspace roles
packages/*: reusable packages; the SDK lives underpackages/corebut keeps the npm package name@paddleocr/paddleocr-jsapps/*: private applications such as demos (apps/demo); not published to npm as products
Versioning and release
- Directory:
packages/core— SDK source and publish manifest for the public package - npm package name:
@paddleocr/paddleocr-js— what consumersnpm installand import in code - Directory:
apps/demo— private demo, not an npm release target - Changesets manages versioning; the demo package is ignored in
.changeset/config.json npm run releasebuilds the SDK and publishes viachangeset publishpackages/corehas aprepublishOnlyscript that auto-builds beforenpm publish/npm pack
Linting and tests
packages/**/src/**/*.tsis linted withstrictTypeCheckedTypeScript rules and browser-oriented globalspackages/**/test/**/*.tsis linted with the lighterrecommendedTypeCheckedpreset (browser + Node globals, with relaxed rules such asno-unsafe-*andno-explicit-anydisabled)apps/**/src/**/*.tsalso usesstrictTypeCheckedTypeScript rules with browser-oriented globalsapps/**/*.js, root config files (*.config.{js,ts}), and package config files (packages/**/*.config.*) are linted with basic ESLint rules and both Node and browser globals