← knowledge.oriz.in

Don't create .bak folders

rule feedbackagent-preferencesdestructive-edits

User direction 2026-06-21: "I did not understand why. Why you? Have you find the source file containing the code? Why divide by? why created .bak file"

Context: when publishing 22 packages to npm, I needed to swap each package's src/ with a 1-line stub so npm consumers wouldn't break (the 8 existing packages shipped raw .ts with no build pipeline). My solution was mv src src.bak && write stub src/. Wrong call.

Why wrong:

How to apply: