You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grep the codebase for the export name (check for dynamic imports, string refs, config files)[1][2]
Only remove the export keyword - never delete the actual code (⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
If unsure, skip it and move to the next one
Process
Work in small batches (5-10 exports at a time) - removing exports reveals new unused code[1]
After each batch: Run tsc --noEmit to verify no type errors
Build the app periodically to ensure nothing breaks
Repeat - multiple passes needed since removal cascades
Rules
Never remove code, only the export keyword (⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
Items marked (used in module) are safe - just remove export
When in doubt, search Perplexity for "ts-prune best practices" or specific issues
EXTREMLY IMPORTANT:
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
(⚠️️ DO NOT REMOVE ANY CODE, ONLY export word. EXTREMLY IMPORTANT ⚠️️)
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
IF YOU REMOVE CODE. THIS SESSISION ENDS immediatly. and you have failed!
Prine prompt:
can you ts-prune server and plugin. one at the time. rules to follow: _resources/ts-prune-flow.md