In complex projects, rules become another area of drift. This could help if integrated on a deeper level.
1. On Script Execution
Example Rule:
- Exception for Sensitive Scripts: For critical, standalone scripts like database seeding or setup (db:setup, db:seed, etc.), it is PERMISSIBLE and RECOMMENDED to execute them directly from the workspace root using npx dotenv-cli -e .env – tsx …
Example Proposed Annotation:
_Superseded By: A unified tsc && node execution pattern.
_Condition: This rule will be deprecated once all one-off scripts are refactored to use the tsc --project tsconfig.scripts.json && node … pattern, which guarantees type-safety and reliable execution.
_Status: