@punks/cli 2.1.11 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/index.js +0 -0
- package/package.json +1 -1
- package/dist/data/AGENTS.md +0 -119
- package/dist/data/catalog/hooks.ts +0 -26
- package/dist/data/catalog/lint.ts +0 -266
- package/dist/data/catalog/packs.ts +0 -327
- package/dist/data/catalog/skills.ts +0 -449
- package/dist/data/catalog/tools.ts +0 -48
- package/dist/data/control-plane.json +0 -3
- package/dist/data/hooks/format-edited-file.mjs +0 -699
- package/dist/data/hooks/format-edited-file.sh +0 -37
- package/dist/data/hooks/require-tests-for-pr.mjs +0 -206
- package/dist/data/hooks/scaffold-update-check.mjs +0 -181
- package/dist/data/hooks.test.ts +0 -109
- package/dist/data/scripts/sync-subagents.mjs +0 -524
- package/dist/data/subagents/manifest.mjs +0 -487
- package/dist/data/subagents/manifest.test.ts +0 -40
- package/dist/skills/agnostic/backend/backend-domain-structure/SKILL.md +0 -50
- package/dist/skills/agnostic/backend/backend-domain-structure/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/backend/backend-domain-structure/references/layout.md +0 -167
- package/dist/skills/agnostic/backend/backend-recoverable-actions/SKILL.md +0 -49
- package/dist/skills/agnostic/backend/backend-recoverable-actions/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/strategy-matrix.md +0 -34
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/test-matrix.md +0 -34
- package/dist/skills/agnostic/backend/logging-best-practices/SKILL.md +0 -127
- package/dist/skills/agnostic/backend/logging-best-practices/rules/context.md +0 -157
- package/dist/skills/agnostic/backend/logging-best-practices/rules/pitfalls.md +0 -118
- package/dist/skills/agnostic/backend/logging-best-practices/rules/structure.md +0 -193
- package/dist/skills/agnostic/backend/logging-best-practices/rules/wide-events.md +0 -113
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +0 -125
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +0 -70
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +0 -70
- package/dist/skills/agnostic/debug/debug-agent/SKILL.md +0 -184
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +0 -46
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +0 -67
- package/dist/skills/agnostic/docs/writing-beats/SKILL.md +0 -69
- package/dist/skills/agnostic/docs/writing-fragments/SKILL.md +0 -76
- package/dist/skills/agnostic/docs/writing-shape/SKILL.md +0 -75
- package/dist/skills/agnostic/frontend/agent-browser/.clawdhub/origin.json +0 -7
- package/dist/skills/agnostic/frontend/agent-browser/SKILL.md +0 -229
- package/dist/skills/agnostic/frontend/agent-browser/references/authentication.md +0 -202
- package/dist/skills/agnostic/frontend/agent-browser/references/commands.md +0 -259
- package/dist/skills/agnostic/frontend/agent-browser/references/proxy-support.md +0 -188
- package/dist/skills/agnostic/frontend/agent-browser/references/session-management.md +0 -193
- package/dist/skills/agnostic/frontend/agent-browser/references/snapshot-refs.md +0 -194
- package/dist/skills/agnostic/frontend/agent-browser/references/video-recording.md +0 -173
- package/dist/skills/agnostic/frontend/agent-browser/templates/authenticated-session.sh +0 -97
- package/dist/skills/agnostic/frontend/agent-browser/templates/capture-workflow.sh +0 -69
- package/dist/skills/agnostic/frontend/agent-browser/templates/form-automation.sh +0 -62
- package/dist/skills/agnostic/frontend/design-taste-frontend/SKILL.md +0 -226
- package/dist/skills/agnostic/frontend/frontend-domain-structure/SKILL.md +0 -55
- package/dist/skills/agnostic/frontend/frontend-domain-structure/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/react/structure.md +0 -102
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/structure.md +0 -257
- package/dist/skills/agnostic/frontend/gpt-taste/SKILL.md +0 -74
- package/dist/skills/agnostic/frontend/image-taste-frontend/SKILL.md +0 -1102
- package/dist/skills/agnostic/frontend/redesign-existing-projects/SKILL.md +0 -178
- package/dist/skills/agnostic/generic/handoff/SKILL.md +0 -15
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +0 -37
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +0 -88
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +0 -44
- package/dist/skills/agnostic/planning/create-plan/references/grill-phase.md +0 -87
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +0 -90
- package/dist/skills/agnostic/planning/create-plan/references/planner-phase.md +0 -42
- package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +0 -18
- package/dist/skills/agnostic/planning/create-plan/references/tdd-phase.md +0 -48
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +0 -111
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +0 -91
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +0 -33
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -47
- package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
- package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +0 -58
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +0 -50
- package/dist/skills/agnostic/planning/grill-me/SKILL.md +0 -28
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +0 -99
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -53
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +0 -199
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +0 -102
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +0 -74
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +0 -56
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -43
- package/dist/skills/agnostic/planning/stack/SKILL.md +0 -89
- package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +0 -179
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +0 -191
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +0 -1176
- package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +0 -176
- package/dist/skills/agnostic/quality/simplify/SKILL.md +0 -14
- package/dist/skills/agnostic/quality/tdd/SKILL.md +0 -138
- package/dist/skills/agnostic/quality/tdd/deep-modules.md +0 -33
- package/dist/skills/agnostic/quality/tdd/interface-design.md +0 -31
- package/dist/skills/agnostic/quality/tdd/mocking.md +0 -59
- package/dist/skills/agnostic/quality/tdd/refactoring.md +0 -10
- package/dist/skills/agnostic/quality/tdd/tests.md +0 -61
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +0 -44
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +0 -157
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +0 -69
- package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +0 -101
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +0 -67
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +0 -262
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +0 -71
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +0 -69
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +0 -66
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +0 -63
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +0 -224
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +0 -76
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +0 -146
- package/dist/skills/agnostic/research/improve-codebase-architecture/REFERENCE.md +0 -78
- package/dist/skills/agnostic/research/improve-codebase-architecture/SKILL.md +0 -76
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +0 -68
- package/dist/skills/agnostic/research/parallel-research/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +0 -179
- package/dist/skills/agnostic/write-a-skill/SKILL.md +0 -117
- package/dist/skills/frameworks/better-auth/better-auth-best-practices/SKILL.md +0 -166
- package/dist/skills/frameworks/better-auth/better-auth-security-best-practices/SKILL.MD +0 -432
- package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
- package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-atom-patterns.md +0 -257
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
- package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
- package/dist/skills/frameworks/effect/effect-authoring/references/otel-patterns.md +0 -113
- package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +0 -96
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +0 -4
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +0 -68
- package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
- package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
- package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
- package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
- package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
- package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
- package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
- package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
- package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
- package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
- package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +0 -65
- package/dist/skills/frameworks/effect/effect-recoverable-actions/agents/openai.yaml +0 -4
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/flow-examples.md +0 -154
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/source-backed-primitives.md +0 -104
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/strategy-matrix.md +0 -34
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/test-matrix.md +0 -36
- package/dist/skills/frameworks/elysia/elysiajs/SKILL.md +0 -475
- package/dist/skills/frameworks/elysia/elysiajs/examples/basic.ts +0 -9
- package/dist/skills/frameworks/elysia/elysiajs/examples/body-parser.ts +0 -33
- package/dist/skills/frameworks/elysia/elysiajs/examples/complex.ts +0 -112
- package/dist/skills/frameworks/elysia/elysiajs/examples/cookie.ts +0 -45
- package/dist/skills/frameworks/elysia/elysiajs/examples/error.ts +0 -38
- package/dist/skills/frameworks/elysia/elysiajs/examples/file.ts +0 -10
- package/dist/skills/frameworks/elysia/elysiajs/examples/guard.ts +0 -34
- package/dist/skills/frameworks/elysia/elysiajs/examples/map-response.ts +0 -15
- package/dist/skills/frameworks/elysia/elysiajs/examples/redirect.ts +0 -6
- package/dist/skills/frameworks/elysia/elysiajs/examples/rename.ts +0 -32
- package/dist/skills/frameworks/elysia/elysiajs/examples/schema.ts +0 -61
- package/dist/skills/frameworks/elysia/elysiajs/examples/state.ts +0 -6
- package/dist/skills/frameworks/elysia/elysiajs/examples/upload-file.ts +0 -20
- package/dist/skills/frameworks/elysia/elysiajs/examples/websocket.ts +0 -25
- package/dist/skills/frameworks/elysia/elysiajs/integrations/ai-sdk.md +0 -92
- package/dist/skills/frameworks/elysia/elysiajs/integrations/astro.md +0 -59
- package/dist/skills/frameworks/elysia/elysiajs/integrations/better-auth.md +0 -117
- package/dist/skills/frameworks/elysia/elysiajs/integrations/cloudflare-worker.md +0 -95
- package/dist/skills/frameworks/elysia/elysiajs/integrations/deno.md +0 -34
- package/dist/skills/frameworks/elysia/elysiajs/integrations/drizzle.md +0 -258
- package/dist/skills/frameworks/elysia/elysiajs/integrations/expo.md +0 -95
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nextjs.md +0 -103
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nodejs.md +0 -64
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nuxt.md +0 -67
- package/dist/skills/frameworks/elysia/elysiajs/integrations/prisma.md +0 -93
- package/dist/skills/frameworks/elysia/elysiajs/integrations/react-email.md +0 -134
- package/dist/skills/frameworks/elysia/elysiajs/integrations/sveltekit.md +0 -53
- package/dist/skills/frameworks/elysia/elysiajs/integrations/tanstack-start.md +0 -87
- package/dist/skills/frameworks/elysia/elysiajs/integrations/vercel.md +0 -55
- package/dist/skills/frameworks/elysia/elysiajs/patterns/mvc.md +0 -380
- package/dist/skills/frameworks/elysia/elysiajs/plugins/bearer.md +0 -30
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cors.md +0 -141
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cron.md +0 -265
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-apollo.md +0 -90
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-yoga.md +0 -87
- package/dist/skills/frameworks/elysia/elysiajs/plugins/html.md +0 -188
- package/dist/skills/frameworks/elysia/elysiajs/plugins/jwt.md +0 -197
- package/dist/skills/frameworks/elysia/elysiajs/plugins/openapi.md +0 -246
- package/dist/skills/frameworks/elysia/elysiajs/plugins/opentelemetry.md +0 -167
- package/dist/skills/frameworks/elysia/elysiajs/plugins/server-timing.md +0 -71
- package/dist/skills/frameworks/elysia/elysiajs/plugins/static.md +0 -84
- package/dist/skills/frameworks/elysia/elysiajs/references/bun-fullstack-dev-server.md +0 -129
- package/dist/skills/frameworks/elysia/elysiajs/references/cookie.md +0 -187
- package/dist/skills/frameworks/elysia/elysiajs/references/deployment.md +0 -413
- package/dist/skills/frameworks/elysia/elysiajs/references/eden.md +0 -158
- package/dist/skills/frameworks/elysia/elysiajs/references/lifecycle.md +0 -198
- package/dist/skills/frameworks/elysia/elysiajs/references/macro.md +0 -83
- package/dist/skills/frameworks/elysia/elysiajs/references/plugin.md +0 -207
- package/dist/skills/frameworks/elysia/elysiajs/references/route.md +0 -331
- package/dist/skills/frameworks/elysia/elysiajs/references/testing.md +0 -385
- package/dist/skills/frameworks/elysia/elysiajs/references/validation.md +0 -491
- package/dist/skills/frameworks/elysia/elysiajs/references/websocket.md +0 -250
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/branch-protection.yml +0 -24
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/deploy.yml +0 -61
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/AGENTS.md +0 -5958
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/SKILL.md +0 -130
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-dto-serialization.md +0 -182
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-interceptors.md +0 -202
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-pipes.md +0 -205
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-versioning.md +0 -191
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-avoid-circular-deps.md +0 -80
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-feature-modules.md +0 -82
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-module-sharing.md +0 -141
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-single-responsibility.md +0 -106
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-events.md +0 -108
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-repository-pattern.md +0 -97
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-avoid-n-plus-one.md +0 -139
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-migrations.md +0 -129
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-transactions.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-graceful-shutdown.md +0 -222
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-config-module.md +0 -167
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-logging.md +0 -232
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-avoid-service-locator.md +0 -104
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-interface-segregation.md +0 -165
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-liskov-substitution.md +0 -221
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-prefer-constructor-injection.md +0 -86
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-scope-awareness.md +0 -94
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-use-interfaces-tokens.md +0 -101
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-handle-async-errors.md +0 -125
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-throw-http-exceptions.md +0 -114
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-use-exception-filters.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-health-checks.md +0 -226
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-patterns.md +0 -167
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-queues.md +0 -252
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-async-hooks.md +0 -109
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-lazy-loading.md +0 -121
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-optimize-database.md +0 -131
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-use-caching.md +0 -128
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-auth-jwt.md +0 -146
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-rate-limiting.md +0 -125
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-sanitize-output.md +0 -139
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-use-guards.md +0 -135
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-validate-all-input.md +0 -150
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-e2e-supertest.md +0 -178
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-mock-external-services.md +0 -179
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-use-testing-module.md +0 -153
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build-agents.ts +0 -299
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build.sh +0 -16
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package-lock.json +0 -237
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package.json +0 -15
- package/dist/skills/frameworks/nestjs/nestjs-expert/SKILL.md +0 -208
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/authentication.md +0 -166
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/controllers-routing.md +0 -111
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/dtos-validation.md +0 -153
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/migration-from-express.md +0 -1237
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/services-di.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/testing-patterns.md +0 -186
- package/dist/skills/frameworks/nextjs/next-best-practices/SKILL.md +0 -153
- package/dist/skills/frameworks/nextjs/next-best-practices/async-patterns.md +0 -87
- package/dist/skills/frameworks/nextjs/next-best-practices/bundling.md +0 -180
- package/dist/skills/frameworks/nextjs/next-best-practices/data-patterns.md +0 -297
- package/dist/skills/frameworks/nextjs/next-best-practices/debug-tricks.md +0 -105
- package/dist/skills/frameworks/nextjs/next-best-practices/directives.md +0 -73
- package/dist/skills/frameworks/nextjs/next-best-practices/error-handling.md +0 -227
- package/dist/skills/frameworks/nextjs/next-best-practices/file-conventions.md +0 -140
- package/dist/skills/frameworks/nextjs/next-best-practices/font.md +0 -245
- package/dist/skills/frameworks/nextjs/next-best-practices/functions.md +0 -108
- package/dist/skills/frameworks/nextjs/next-best-practices/hydration-error.md +0 -91
- package/dist/skills/frameworks/nextjs/next-best-practices/image.md +0 -173
- package/dist/skills/frameworks/nextjs/next-best-practices/metadata.md +0 -301
- package/dist/skills/frameworks/nextjs/next-best-practices/parallel-routes.md +0 -287
- package/dist/skills/frameworks/nextjs/next-best-practices/route-handlers.md +0 -146
- package/dist/skills/frameworks/nextjs/next-best-practices/rsc-boundaries.md +0 -159
- package/dist/skills/frameworks/nextjs/next-best-practices/runtime-selection.md +0 -39
- package/dist/skills/frameworks/nextjs/next-best-practices/scripts.md +0 -141
- package/dist/skills/frameworks/nextjs/next-best-practices/self-hosting.md +0 -371
- package/dist/skills/frameworks/nextjs/next-best-practices/suspense-boundaries.md +0 -67
- package/dist/skills/frameworks/nextjs/next-cache-components/SKILL.md +0 -360
- package/dist/skills/frameworks/react/async-react-patterns/SKILL.md +0 -78
- package/dist/skills/frameworks/react/vercel-composition-patterns/AGENTS.md +0 -946
- package/dist/skills/frameworks/react/vercel-composition-patterns/SKILL.md +0 -89
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +0 -100
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-compound-components.md +0 -112
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-children-over-render-props.md +0 -87
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-explicit-variants.md +0 -100
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/react19-no-forwardref.md +0 -42
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-context-interface.md +0 -191
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-decouple-implementation.md +0 -113
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-lift-state.md +0 -125
- package/dist/skills/frameworks/react/vercel-react-best-practices/AGENTS.md +0 -3750
- package/dist/skills/frameworks/react/vercel-react-best-practices/SKILL.md +0 -148
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-effect-event-deps.md +0 -56
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-init-once.md +0 -42
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-use-latest.md +0 -39
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-api-routes.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +0 -37
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-defer-await.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-dependencies.md +0 -51
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-parallel.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -60
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-preload.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -107
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-early-exit.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-flatmap-filter.md +0 -60
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-index-maps.md +0 -37
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-length-check-first.md +0 -49
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-request-idle-callback.md +0 -105
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-activity.md +0 -26
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +0 -30
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-resource-hints.md +0 -85
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-script-defer-async.md +0 -68
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo.md +0 -44
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-no-inline-components.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +0 -64
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-deferred-value.md +0 -59
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-auth-actions.md +0 -96
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-react.md +0 -76
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-dedup-props.md +0 -65
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-hoist-static-io.md +0 -149
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-no-shared-module-state.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +0 -34
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-serialization.md +0 -38
- package/dist/skills/frameworks/tanstack-query/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +0 -849
- package/dist/skills/frameworks/tanstack-query/tanstack-query/assets/example-template.txt +0 -14
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +0 -304
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/common-patterns.md +0 -271
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/example-reference.md +0 -26
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/testing.md +0 -282
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/top-errors.md +0 -332
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/typescript-patterns.md +0 -291
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/v4-to-v5-migration.md +0 -231
- package/dist/skills/frameworks/tanstack-query/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/skills/frameworks/tanstack-query/tanstack-query/scripts/example-script.sh +0 -15
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/custom-hooks-pattern.tsx +0 -281
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +0 -248
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/error-boundary.tsx +0 -243
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/package.json +0 -31
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/provider-setup.tsx +0 -50
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/query-client-config.ts +0 -72
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-infinite-query.tsx +0 -214
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-basic.tsx +0 -201
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-optimistic.tsx +0 -234
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-query-basic.tsx +0 -119
- package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +0 -250
- package/dist/skills/frameworks/trpc/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/skills/frameworks/trpc/tanstack-query/SKILL.md +0 -1058
- package/dist/skills/frameworks/trpc/tanstack-query/assets/example-template.txt +0 -14
- package/dist/skills/frameworks/trpc/tanstack-query/references/best-practices.md +0 -304
- package/dist/skills/frameworks/trpc/tanstack-query/references/common-patterns.md +0 -271
- package/dist/skills/frameworks/trpc/tanstack-query/references/example-reference.md +0 -26
- package/dist/skills/frameworks/trpc/tanstack-query/references/testing.md +0 -282
- package/dist/skills/frameworks/trpc/tanstack-query/references/top-errors.md +0 -332
- package/dist/skills/frameworks/trpc/tanstack-query/references/typescript-patterns.md +0 -291
- package/dist/skills/frameworks/trpc/tanstack-query/references/v4-to-v5-migration.md +0 -231
- package/dist/skills/frameworks/trpc/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/skills/frameworks/trpc/tanstack-query/scripts/example-script.sh +0 -15
- package/dist/skills/frameworks/trpc/tanstack-query/templates/custom-hooks-pattern.tsx +0 -281
- package/dist/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +0 -248
- package/dist/skills/frameworks/trpc/tanstack-query/templates/error-boundary.tsx +0 -243
- package/dist/skills/frameworks/trpc/tanstack-query/templates/package.json +0 -31
- package/dist/skills/frameworks/trpc/tanstack-query/templates/provider-setup.tsx +0 -50
- package/dist/skills/frameworks/trpc/tanstack-query/templates/query-client-config.ts +0 -72
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-infinite-query.tsx +0 -214
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-basic.tsx +0 -201
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-optimistic.tsx +0 -234
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-query-basic.tsx +0 -119
- package/dist/skills/frameworks/turborepo/turborepo/SKILL.md +0 -914
- package/dist/skills/frameworks/turborepo/turborepo/command/turborepo.md +0 -70
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/RULE.md +0 -241
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/dependencies.md +0 -246
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/packages.md +0 -335
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/structure.md +0 -270
- package/dist/skills/frameworks/turborepo/turborepo/references/boundaries/RULE.md +0 -126
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/RULE.md +0 -107
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/gotchas.md +0 -169
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/remote-cache.md +0 -127
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/RULE.md +0 -79
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/github-actions.md +0 -162
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/patterns.md +0 -145
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/vercel.md +0 -103
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/RULE.md +0 -100
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/commands.md +0 -297
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/RULE.md +0 -211
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/global-options.md +0 -187
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/gotchas.md +0 -348
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/tasks.md +0 -285
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/RULE.md +0 -96
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/gotchas.md +0 -141
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/modes.md +0 -101
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/RULE.md +0 -148
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/patterns.md +0 -152
- package/dist/skills/frameworks/turborepo/turborepo/references/watch/RULE.md +0 -99
- package/dist/skills/languages/python/async-python-patterns/SKILL.md +0 -735
- package/dist/skills/languages/python/python-code-style/SKILL.md +0 -360
- package/dist/skills/languages/python/python-design-patterns/SKILL.md +0 -433
- package/dist/skills/languages/python/python-project-structure/SKILL.md +0 -252
- package/dist/skills/languages/python/python-testing-patterns/SKILL.md +0 -622
- package/dist/skills/languages/python/python-testing-patterns/references/advanced-patterns.md +0 -411
- package/dist/skills/languages/typescript/quality-types/SKILL.md +0 -93
- package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +0 -170
- package/dist/skills/phases/bug-discovery-phase/SKILL.md +0 -85
- package/dist/skills/phases/bug-resolution-phase/REFERENCE.md +0 -160
- package/dist/skills/phases/bug-resolution-phase/SKILL.md +0 -64
- package/dist/skills/phases/debugging-phase/SKILL.md +0 -88
- package/dist/skills/phases/delivery-phase/SKILL.md +0 -50
- package/dist/skills/phases/delivery-phase/phases/closeout.md +0 -33
- package/dist/skills/phases/delivery-phase/phases/debug.md +0 -30
- package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +0 -27
- package/dist/skills/phases/delivery-phase/phases/implement.md +0 -30
- package/dist/skills/phases/delivery-phase/phases/plan.md +0 -27
- package/dist/skills/phases/delivery-phase/phases/review.md +0 -29
- package/dist/skills/phases/delivery-phase/phases/router.md +0 -46
- package/dist/skills/phases/delivery-phase/phases/spec.md +0 -26
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +0 -42
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +0 -25
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +0 -46
- package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +0 -4
- package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +0 -57
- package/dist/skills/phases/docs-ingest-phase/phases/public-docs.md +0 -52
- package/dist/skills/phases/docs-ingest-phase/phases/router.md +0 -42
- package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +0 -70
- package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +0 -56
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +0 -74
- package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +0 -96
- package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +0 -90
- package/dist/skills/phases/docs-ingest-phase/references/repo-docs.md +0 -38
- package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +0 -133
- package/dist/skills/phases/goalify/EXAMPLES.md +0 -78
- package/dist/skills/phases/goalify/SKILL.md +0 -129
- package/dist/skills/phases/requirements-phase/SKILL.md +0 -70
- package/dist/skills/phases/resolve-debt-phase/SKILL.md +0 -87
- package/dist/skills/phases/review-phase/SKILL.md +0 -118
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
# Creating Internal Packages
|
|
2
|
-
|
|
3
|
-
How to create and structure internal packages in your monorepo.
|
|
4
|
-
|
|
5
|
-
## Package Creation Checklist
|
|
6
|
-
|
|
7
|
-
1. Create directory in `packages/`
|
|
8
|
-
2. Add `package.json` with name and exports
|
|
9
|
-
3. Add source code in `src/`
|
|
10
|
-
4. Add `tsconfig.json` if using TypeScript
|
|
11
|
-
5. Install as dependency in consuming packages
|
|
12
|
-
6. Run package manager install to update lockfile
|
|
13
|
-
|
|
14
|
-
## Package Compilation Strategies
|
|
15
|
-
|
|
16
|
-
### Just-in-Time (JIT)
|
|
17
|
-
|
|
18
|
-
Export TypeScript directly. The consuming app's bundler compiles it.
|
|
19
|
-
|
|
20
|
-
```json
|
|
21
|
-
// packages/ui/package.json
|
|
22
|
-
{
|
|
23
|
-
"name": "@repo/ui",
|
|
24
|
-
"exports": {
|
|
25
|
-
"./button": "./src/button.tsx",
|
|
26
|
-
"./card": "./src/card.tsx"
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"lint": "eslint .",
|
|
30
|
-
"check-types": "tsc --noEmit"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
**When to use:**
|
|
36
|
-
|
|
37
|
-
- Apps use modern bundlers (Turbopack, webpack, Vite)
|
|
38
|
-
- You want minimal configuration
|
|
39
|
-
- Build times are acceptable without caching
|
|
40
|
-
|
|
41
|
-
**Limitations:**
|
|
42
|
-
|
|
43
|
-
- No Turborepo cache for the package itself
|
|
44
|
-
- Consumer must support TypeScript compilation
|
|
45
|
-
- Can't use TypeScript `paths` (use Node.js subpath imports instead)
|
|
46
|
-
|
|
47
|
-
### Compiled
|
|
48
|
-
|
|
49
|
-
Package handles its own compilation.
|
|
50
|
-
|
|
51
|
-
```json
|
|
52
|
-
// packages/ui/package.json
|
|
53
|
-
{
|
|
54
|
-
"name": "@repo/ui",
|
|
55
|
-
"exports": {
|
|
56
|
-
"./button": {
|
|
57
|
-
"types": "./src/button.tsx",
|
|
58
|
-
"default": "./dist/button.js"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"build": "tsc",
|
|
63
|
-
"dev": "tsc --watch"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
```json
|
|
69
|
-
// packages/ui/tsconfig.json
|
|
70
|
-
{
|
|
71
|
-
"extends": "@repo/typescript-config/library.json",
|
|
72
|
-
"compilerOptions": {
|
|
73
|
-
"outDir": "dist",
|
|
74
|
-
"rootDir": "src"
|
|
75
|
-
},
|
|
76
|
-
"include": ["src"],
|
|
77
|
-
"exclude": ["node_modules", "dist"]
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**When to use:**
|
|
82
|
-
|
|
83
|
-
- You want Turborepo to cache builds
|
|
84
|
-
- Package will be used by non-bundler tools
|
|
85
|
-
- You need maximum compatibility
|
|
86
|
-
|
|
87
|
-
**Remember:** Add `dist/**` to turbo.json outputs!
|
|
88
|
-
|
|
89
|
-
## Defining Exports
|
|
90
|
-
|
|
91
|
-
### Multiple Entrypoints
|
|
92
|
-
|
|
93
|
-
```json
|
|
94
|
-
{
|
|
95
|
-
"exports": {
|
|
96
|
-
".": "./src/index.ts", // @repo/ui
|
|
97
|
-
"./button": "./src/button.tsx", // @repo/ui/button
|
|
98
|
-
"./card": "./src/card.tsx", // @repo/ui/card
|
|
99
|
-
"./hooks": "./src/hooks/index.ts" // @repo/ui/hooks
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
### Conditional Exports (Compiled)
|
|
105
|
-
|
|
106
|
-
```json
|
|
107
|
-
{
|
|
108
|
-
"exports": {
|
|
109
|
-
"./button": {
|
|
110
|
-
"types": "./src/button.tsx",
|
|
111
|
-
"import": "./dist/button.mjs",
|
|
112
|
-
"require": "./dist/button.cjs",
|
|
113
|
-
"default": "./dist/button.js"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
## Installing Internal Packages
|
|
120
|
-
|
|
121
|
-
### Add to Consuming Package
|
|
122
|
-
|
|
123
|
-
```json
|
|
124
|
-
// apps/web/package.json
|
|
125
|
-
{
|
|
126
|
-
"dependencies": {
|
|
127
|
-
"@repo/ui": "workspace:*" // pnpm/bun
|
|
128
|
-
// "@repo/ui": "*" // npm/yarn
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Run Install
|
|
134
|
-
|
|
135
|
-
```bash
|
|
136
|
-
pnpm install # Updates lockfile with new dependency
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Import and Use
|
|
140
|
-
|
|
141
|
-
```typescript
|
|
142
|
-
// apps/web/src/page.tsx
|
|
143
|
-
import { Button } from '@repo/ui/button';
|
|
144
|
-
|
|
145
|
-
export default function Page() {
|
|
146
|
-
return <Button>Click me</Button>;
|
|
147
|
-
}
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
## One Purpose Per Package
|
|
151
|
-
|
|
152
|
-
### Good Examples
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
packages/
|
|
156
|
-
├── ui/ # Shared UI components
|
|
157
|
-
├── utils/ # General utilities
|
|
158
|
-
├── auth/ # Authentication logic
|
|
159
|
-
├── database/ # Database client/schemas
|
|
160
|
-
├── eslint-config/ # ESLint configuration
|
|
161
|
-
├── typescript-config/ # TypeScript configuration
|
|
162
|
-
└── api-client/ # Generated API client
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### Avoid Mega-Packages
|
|
166
|
-
|
|
167
|
-
```
|
|
168
|
-
// BAD: One package for everything
|
|
169
|
-
packages/
|
|
170
|
-
└── shared/
|
|
171
|
-
├── components/
|
|
172
|
-
├── utils/
|
|
173
|
-
├── hooks/
|
|
174
|
-
├── types/
|
|
175
|
-
└── api/
|
|
176
|
-
|
|
177
|
-
// GOOD: Separate by purpose
|
|
178
|
-
packages/
|
|
179
|
-
├── ui/ # Components
|
|
180
|
-
├── utils/ # Utilities
|
|
181
|
-
├── hooks/ # React hooks
|
|
182
|
-
├── types/ # Shared TypeScript types
|
|
183
|
-
└── api-client/ # API utilities
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
## Config Packages
|
|
187
|
-
|
|
188
|
-
### TypeScript Config
|
|
189
|
-
|
|
190
|
-
```json
|
|
191
|
-
// packages/typescript-config/package.json
|
|
192
|
-
{
|
|
193
|
-
"name": "@repo/typescript-config",
|
|
194
|
-
"exports": {
|
|
195
|
-
"./base.json": "./base.json",
|
|
196
|
-
"./nextjs.json": "./nextjs.json",
|
|
197
|
-
"./library.json": "./library.json"
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### ESLint Config
|
|
203
|
-
|
|
204
|
-
```json
|
|
205
|
-
// packages/eslint-config/package.json
|
|
206
|
-
{
|
|
207
|
-
"name": "@repo/eslint-config",
|
|
208
|
-
"exports": {
|
|
209
|
-
"./base": "./base.js",
|
|
210
|
-
"./next": "./next.js"
|
|
211
|
-
},
|
|
212
|
-
"dependencies": {
|
|
213
|
-
"eslint": "^8.0.0",
|
|
214
|
-
"eslint-config-next": "latest"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
## Common Mistakes
|
|
220
|
-
|
|
221
|
-
### Forgetting to Export
|
|
222
|
-
|
|
223
|
-
```json
|
|
224
|
-
// BAD: No exports defined
|
|
225
|
-
{
|
|
226
|
-
"name": "@repo/ui"
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// GOOD: Clear exports
|
|
230
|
-
{
|
|
231
|
-
"name": "@repo/ui",
|
|
232
|
-
"exports": {
|
|
233
|
-
"./button": "./src/button.tsx"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Wrong Workspace Syntax
|
|
239
|
-
|
|
240
|
-
```json
|
|
241
|
-
// pnpm/bun
|
|
242
|
-
{ "@repo/ui": "workspace:*" } // Correct
|
|
243
|
-
|
|
244
|
-
// npm/yarn
|
|
245
|
-
{ "@repo/ui": "*" } // Correct
|
|
246
|
-
{ "@repo/ui": "workspace:*" } // Wrong for npm/yarn!
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
### Missing from turbo.json Outputs
|
|
250
|
-
|
|
251
|
-
```json
|
|
252
|
-
// Package builds to dist/, but turbo.json doesn't know
|
|
253
|
-
{
|
|
254
|
-
"tasks": {
|
|
255
|
-
"build": {
|
|
256
|
-
"outputs": [".next/**"] // Missing dist/**!
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// Correct
|
|
262
|
-
{
|
|
263
|
-
"tasks": {
|
|
264
|
-
"build": {
|
|
265
|
-
"outputs": [".next/**", "dist/**"]
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
## TypeScript Best Practices
|
|
272
|
-
|
|
273
|
-
### Use Node.js Subpath Imports (Not `paths`)
|
|
274
|
-
|
|
275
|
-
TypeScript `compilerOptions.paths` breaks with JIT packages. Use Node.js subpath imports instead (TypeScript 5.4+).
|
|
276
|
-
|
|
277
|
-
**JIT Package:**
|
|
278
|
-
|
|
279
|
-
```json
|
|
280
|
-
// packages/ui/package.json
|
|
281
|
-
{
|
|
282
|
-
"imports": {
|
|
283
|
-
"#*": "./src/*"
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
```typescript
|
|
289
|
-
// packages/ui/button.tsx
|
|
290
|
-
import { MY_STRING } from "#utils.ts"; // Uses .ts extension
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
**Compiled Package:**
|
|
294
|
-
|
|
295
|
-
```json
|
|
296
|
-
// packages/ui/package.json
|
|
297
|
-
{
|
|
298
|
-
"imports": {
|
|
299
|
-
"#*": "./dist/*"
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
```typescript
|
|
305
|
-
// packages/ui/button.tsx
|
|
306
|
-
import { MY_STRING } from "#utils.js"; // Uses .js extension
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
### Use `tsc` for Internal Packages
|
|
310
|
-
|
|
311
|
-
For internal packages, prefer `tsc` over bundlers. Bundlers can mangle code before it reaches your app's bundler, causing hard-to-debug issues.
|
|
312
|
-
|
|
313
|
-
### Enable Go-to-Definition
|
|
314
|
-
|
|
315
|
-
For Compiled Packages, enable declaration maps:
|
|
316
|
-
|
|
317
|
-
```json
|
|
318
|
-
// tsconfig.json
|
|
319
|
-
{
|
|
320
|
-
"compilerOptions": {
|
|
321
|
-
"declaration": true,
|
|
322
|
-
"declarationMap": true
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
This creates `.d.ts` and `.d.ts.map` files for IDE navigation.
|
|
328
|
-
|
|
329
|
-
### No Root tsconfig.json Needed
|
|
330
|
-
|
|
331
|
-
Each package should have its own `tsconfig.json`. A root one causes all tasks to miss cache when changed. Only use root `tsconfig.json` for non-package scripts.
|
|
332
|
-
|
|
333
|
-
### Avoid TypeScript Project References
|
|
334
|
-
|
|
335
|
-
They add complexity and another caching layer. Turborepo handles dependencies better.
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
# Repository Structure
|
|
2
|
-
|
|
3
|
-
Detailed guidance on structuring a Turborepo monorepo.
|
|
4
|
-
|
|
5
|
-
## Workspace Configuration
|
|
6
|
-
|
|
7
|
-
### pnpm (Recommended)
|
|
8
|
-
|
|
9
|
-
```yaml
|
|
10
|
-
# pnpm-workspace.yaml
|
|
11
|
-
packages:
|
|
12
|
-
- "apps/*"
|
|
13
|
-
- "packages/*"
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
### npm/yarn/bun
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
// package.json
|
|
20
|
-
{
|
|
21
|
-
"workspaces": ["apps/*", "packages/*"]
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Root package.json
|
|
26
|
-
|
|
27
|
-
```json
|
|
28
|
-
{
|
|
29
|
-
"name": "my-monorepo",
|
|
30
|
-
"private": true,
|
|
31
|
-
"packageManager": "pnpm@9.0.0",
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "turbo run build",
|
|
34
|
-
"dev": "turbo run dev",
|
|
35
|
-
"lint": "turbo run lint",
|
|
36
|
-
"test": "turbo run test"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"turbo": "latest"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Key points:
|
|
45
|
-
|
|
46
|
-
- `private: true` - Prevents accidental publishing
|
|
47
|
-
- `packageManager` - Enforces consistent package manager version
|
|
48
|
-
- **Scripts only delegate to `turbo run`** - No actual build logic here!
|
|
49
|
-
- Minimal devDependencies (just turbo and repo tools)
|
|
50
|
-
|
|
51
|
-
## Always Prefer Package Tasks
|
|
52
|
-
|
|
53
|
-
**Always use package tasks. Only use Root Tasks if you cannot succeed with package tasks.**
|
|
54
|
-
|
|
55
|
-
```json
|
|
56
|
-
// packages/web/package.json
|
|
57
|
-
{
|
|
58
|
-
"scripts": {
|
|
59
|
-
"build": "next build",
|
|
60
|
-
"lint": "eslint .",
|
|
61
|
-
"test": "vitest",
|
|
62
|
-
"typecheck": "tsc --noEmit"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// packages/api/package.json
|
|
67
|
-
{
|
|
68
|
-
"scripts": {
|
|
69
|
-
"build": "tsc",
|
|
70
|
-
"lint": "eslint .",
|
|
71
|
-
"test": "vitest",
|
|
72
|
-
"typecheck": "tsc --noEmit"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Package tasks enable Turborepo to:
|
|
78
|
-
|
|
79
|
-
1. **Parallelize** - Run `web#lint` and `api#lint` simultaneously
|
|
80
|
-
2. **Cache individually** - Each package's task output is cached separately
|
|
81
|
-
3. **Filter precisely** - Run `turbo run test --filter=web` for just one package
|
|
82
|
-
|
|
83
|
-
**Root Tasks are a fallback** for tasks that truly cannot run per-package:
|
|
84
|
-
|
|
85
|
-
```json
|
|
86
|
-
// AVOID unless necessary - sequential, not parallelized, can't filter
|
|
87
|
-
{
|
|
88
|
-
"scripts": {
|
|
89
|
-
"lint": "eslint apps/web && eslint apps/api && eslint packages/ui"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Root turbo.json
|
|
95
|
-
|
|
96
|
-
```json
|
|
97
|
-
{
|
|
98
|
-
"$schema": "https://v2-8-15-canary-3.turborepo.dev/schema.json",
|
|
99
|
-
"tasks": {
|
|
100
|
-
"build": {
|
|
101
|
-
"dependsOn": ["^build"],
|
|
102
|
-
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
|
|
103
|
-
},
|
|
104
|
-
"lint": {},
|
|
105
|
-
"test": {
|
|
106
|
-
"dependsOn": ["build"]
|
|
107
|
-
},
|
|
108
|
-
"dev": {
|
|
109
|
-
"cache": false,
|
|
110
|
-
"persistent": true
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Directory Organization
|
|
117
|
-
|
|
118
|
-
### Grouping Packages
|
|
119
|
-
|
|
120
|
-
You can group packages by adding more workspace paths:
|
|
121
|
-
|
|
122
|
-
```yaml
|
|
123
|
-
# pnpm-workspace.yaml
|
|
124
|
-
packages:
|
|
125
|
-
- "apps/*"
|
|
126
|
-
- "packages/*"
|
|
127
|
-
- "packages/config/*" # Grouped configs
|
|
128
|
-
- "packages/features/*" # Feature packages
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
This allows:
|
|
132
|
-
|
|
133
|
-
```
|
|
134
|
-
packages/
|
|
135
|
-
├── ui/
|
|
136
|
-
├── utils/
|
|
137
|
-
├── config/
|
|
138
|
-
│ ├── eslint/
|
|
139
|
-
│ ├── typescript/
|
|
140
|
-
│ └── tailwind/
|
|
141
|
-
└── features/
|
|
142
|
-
├── auth/
|
|
143
|
-
└── payments/
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### What NOT to Do
|
|
147
|
-
|
|
148
|
-
```yaml
|
|
149
|
-
# BAD: Nested wildcards cause ambiguous behavior
|
|
150
|
-
packages:
|
|
151
|
-
- "packages/**" # Don't do this!
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## Package Anatomy
|
|
155
|
-
|
|
156
|
-
### Minimum Required Files
|
|
157
|
-
|
|
158
|
-
```
|
|
159
|
-
packages/ui/
|
|
160
|
-
├── package.json # Required: Makes it a package
|
|
161
|
-
├── src/ # Source code
|
|
162
|
-
│ └── button.tsx
|
|
163
|
-
└── tsconfig.json # TypeScript config (if using TS)
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
### package.json Requirements
|
|
167
|
-
|
|
168
|
-
```json
|
|
169
|
-
{
|
|
170
|
-
"name": "@repo/ui", // Unique, namespaced name
|
|
171
|
-
"version": "0.0.0", // Version (can be 0.0.0 for internal)
|
|
172
|
-
"private": true, // Prevents accidental publishing
|
|
173
|
-
"exports": {
|
|
174
|
-
// Entry points
|
|
175
|
-
"./button": "./src/button.tsx"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
## TypeScript Configuration
|
|
181
|
-
|
|
182
|
-
### Shared Base Config
|
|
183
|
-
|
|
184
|
-
Create a shared TypeScript config package:
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
packages/
|
|
188
|
-
└── typescript-config/
|
|
189
|
-
├── package.json
|
|
190
|
-
├── base.json
|
|
191
|
-
├── nextjs.json
|
|
192
|
-
└── library.json
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
```json
|
|
196
|
-
// packages/typescript-config/base.json
|
|
197
|
-
{
|
|
198
|
-
"compilerOptions": {
|
|
199
|
-
"strict": true,
|
|
200
|
-
"esModuleInterop": true,
|
|
201
|
-
"skipLibCheck": true,
|
|
202
|
-
"moduleResolution": "bundler",
|
|
203
|
-
"module": "ESNext",
|
|
204
|
-
"target": "ES2022"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### Extending in Packages
|
|
210
|
-
|
|
211
|
-
```json
|
|
212
|
-
// packages/ui/tsconfig.json
|
|
213
|
-
{
|
|
214
|
-
"extends": "@repo/typescript-config/library.json",
|
|
215
|
-
"compilerOptions": {
|
|
216
|
-
"outDir": "dist",
|
|
217
|
-
"rootDir": "src"
|
|
218
|
-
},
|
|
219
|
-
"include": ["src"],
|
|
220
|
-
"exclude": ["node_modules", "dist"]
|
|
221
|
-
}
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
### No Root tsconfig.json
|
|
225
|
-
|
|
226
|
-
You likely don't need a `tsconfig.json` in the workspace root. Each package should have its own config extending from the shared config package.
|
|
227
|
-
|
|
228
|
-
## ESLint Configuration
|
|
229
|
-
|
|
230
|
-
### Shared Config Package
|
|
231
|
-
|
|
232
|
-
```
|
|
233
|
-
packages/
|
|
234
|
-
└── eslint-config/
|
|
235
|
-
├── package.json
|
|
236
|
-
├── base.js
|
|
237
|
-
├── next.js
|
|
238
|
-
└── library.js
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
```json
|
|
242
|
-
// packages/eslint-config/package.json
|
|
243
|
-
{
|
|
244
|
-
"name": "@repo/eslint-config",
|
|
245
|
-
"exports": {
|
|
246
|
-
"./base": "./base.js",
|
|
247
|
-
"./next": "./next.js",
|
|
248
|
-
"./library": "./library.js"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
### Using in Packages
|
|
254
|
-
|
|
255
|
-
```js
|
|
256
|
-
// apps/web/.eslintrc.js
|
|
257
|
-
module.exports = {
|
|
258
|
-
extends: ["@repo/eslint-config/next"]
|
|
259
|
-
};
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
## Lockfile
|
|
263
|
-
|
|
264
|
-
A lockfile is **required** for:
|
|
265
|
-
|
|
266
|
-
- Reproducible builds
|
|
267
|
-
- Turborepo to understand package dependencies
|
|
268
|
-
- Cache correctness
|
|
269
|
-
|
|
270
|
-
Without a lockfile, you'll see unpredictable behavior.
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
# Boundaries
|
|
2
|
-
|
|
3
|
-
**Experimental feature** - See [RFC](https://github.com/vercel/turborepo/discussions/9435)
|
|
4
|
-
|
|
5
|
-
Full docs: https://turborepo.dev/docs/reference/boundaries
|
|
6
|
-
|
|
7
|
-
Boundaries enforce package isolation by detecting:
|
|
8
|
-
|
|
9
|
-
1. Imports of files outside the package's directory
|
|
10
|
-
2. Imports of packages not declared in `package.json` dependencies
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
turbo boundaries
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Run this to check for workspace violations across your monorepo.
|
|
19
|
-
|
|
20
|
-
## Tags
|
|
21
|
-
|
|
22
|
-
Tags allow you to create rules for which packages can depend on each other.
|
|
23
|
-
|
|
24
|
-
### Adding Tags to a Package
|
|
25
|
-
|
|
26
|
-
```json
|
|
27
|
-
// packages/ui/turbo.json
|
|
28
|
-
{
|
|
29
|
-
"tags": ["internal"]
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Configuring Tag Rules
|
|
34
|
-
|
|
35
|
-
Rules go in root `turbo.json`:
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
// turbo.json
|
|
39
|
-
{
|
|
40
|
-
"boundaries": {
|
|
41
|
-
"tags": {
|
|
42
|
-
"public": {
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"deny": ["internal"]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
This prevents `public`-tagged packages from importing `internal`-tagged packages.
|
|
53
|
-
|
|
54
|
-
### Rule Types
|
|
55
|
-
|
|
56
|
-
**Allow-list approach** (only allow specific tags):
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"boundaries": {
|
|
61
|
-
"tags": {
|
|
62
|
-
"public": {
|
|
63
|
-
"dependencies": {
|
|
64
|
-
"allow": ["public"]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**Deny-list approach** (block specific tags):
|
|
73
|
-
|
|
74
|
-
```json
|
|
75
|
-
{
|
|
76
|
-
"boundaries": {
|
|
77
|
-
"tags": {
|
|
78
|
-
"public": {
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"deny": ["internal"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**Restrict dependents** (who can import this package):
|
|
89
|
-
|
|
90
|
-
```json
|
|
91
|
-
{
|
|
92
|
-
"boundaries": {
|
|
93
|
-
"tags": {
|
|
94
|
-
"private": {
|
|
95
|
-
"dependents": {
|
|
96
|
-
"deny": ["public"]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
### Using Package Names
|
|
105
|
-
|
|
106
|
-
Package names work in place of tags:
|
|
107
|
-
|
|
108
|
-
```json
|
|
109
|
-
{
|
|
110
|
-
"boundaries": {
|
|
111
|
-
"tags": {
|
|
112
|
-
"private": {
|
|
113
|
-
"dependents": {
|
|
114
|
-
"deny": ["@repo/my-pkg"]
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## Key Points
|
|
123
|
-
|
|
124
|
-
- Rules apply transitively (dependencies of dependencies)
|
|
125
|
-
- Helps enforce architectural boundaries at scale
|
|
126
|
-
- Catches violations before runtime/build errors
|