benawad / destiny

Prettier for File Structures
MIT License
3.53k stars 80 forks source link

Destiny folder depth limit #166

Open michaelaflores opened 3 years ago

michaelaflores commented 3 years ago

When running destiny ./src, I figured it would walk the entire tree and generate changes based on that. I've found in my private repo for work that it only generates a new tree for some of those files that are of less depth. A representative file path for example: "ui/components/ModularComponents/Buttons/Encoder/Broadcast/Readme.md'. While for renaming purposes this file was touched and moved to the root, any files not needing renamed at this depth don't show up in the tree output. So, for example, a file exists near it "ui/components/ModularComponents/Example/CallControl.tsx", which is exported by the project. This file doesn't show up in the unused file list, and does not show up in the tree output either.

I can show the tree output. Is there a way to show the tree input to help repro? I cannot make the repository public.

src
├──AlertBase
│  └──styles.ts
├──ProgressBar
│  └──styles.scss
├──Settings
│  ├──context
│  │  └──Context.tsx
│  ├──Player
│  │  ├──CamCall.tsx
│  │  ├──Delay.tsx
│  │  ├──Fullscreen.tsx
│  │  ├──FullscreenExit.tsx
│  │  ├──LaunchOpen.tsx
│  │  ├──Pause.tsx
│  │  ├──Play.tsx
│  │  ├──Settings.tsx
│  │  ├──Sound.tsx
│  │  └──SoundOff.tsx
│  ├──context.ts
│  └──Player.tsx
├──shared
│  ├──store
│  │  └──utils.ts
│  ├──ui
│  │  ├──components
│  │  │  └──ErrorBoundary.tsx
│  │  └──ui-lib
│  │     ├──Buttons
│  │     │  └──Common.tsx
│  │     └──ToolTips.tsx
│  ├──global.scss
│  ├──logger.ts
│  └──styles.scss
├──Sound
│  ├──Common
│  │  ├──ToolTips
│  │  │  └──TippyTheme.scss
│  │  ├──livelyStyles.ts
│  │  └──styles.ts
│  ├──Icons
│  │  ├──AddFriend.tsx
│  │  ├──Broadcast.tsx
│  │  ├──Camera.tsx
│  │  ├──CameraOff.tsx
│  │  ├──Clock.tsx
│  │  ├──Close.tsx
│  │  ├──Collapse.tsx
│  │  ├──Configuration.tsx
│  │  ├──Expand.tsx
│  │  ├──Microphone.tsx
│  │  ├──MicrophoneOff.tsx
│  │  ├──Pause.tsx
│  │  ├──Play.tsx
│  │  ├──ScreenCapture.tsx
│  │  ├──Settings.tsx
│  │  ├──Sound.tsx
│  │  └──SoundOff.tsx
│  └──Icons.tsx
├──AlertBase.tsx
├──api.ts
├──Broadcast.tsx
├──config.json
├──CreateCall.tsx
├──dark.ts
├──DoubleDropdownArrow.svg
├──dropdownarrow.svg
├──exports.tsx
├──JoinCall.tsx
├──jsdoctomd.json
├──LeaveCall.tsx
├──light.ts
├──LivelyPlayIcon.svg
├──logo.svg
├──package-json.ts
├──PopOver.tsx
├──ProgressBar.tsx
├──public.html
├──Readme.md
├──reboot.scss
├──serviceWorker.js
├──Settings.tsx
├──Sound.tsx
├──ui-components-ModularComponents-Buttons-Encoder-Broadcast-Readme.md
└──ui-components-ModularComponents-Buttons-Encoder-Camera-Readme.md
WARN: Found 18 unused files:
ui/logo.svg
ui/reboot.scss
package-json.ts
store/config.json
ui/jsdoctomd.json
store/player/api.ts
ui/serviceWorker.js
ui/public/index.html
ui/ui-lib/Icons/dropdownarrow.svg
ui/ui-lib/Buttons/Common/Readme.md
ui/ui-lib/Icons/DoubleDropdownArrow.svg
ui/ui-lib/Icons/Player/LivelyPlayIcon.svg
ui/components/ModularComponents/Buttons/Encoder/Camera/Readme.md
ui/components/ModularComponents/Buttons/Encoder/Broadcast/Readme.md
ui/components/ModularComponents/Buttons/Conference/JoinCall/JoinCall.tsx
ui/components/ModularComponents/Buttons/Conference/Broadcast/Broadcast.tsx
ui/components/ModularComponents/Buttons/Conference/LeaveCall/LeaveCall.tsx
ui/components/ModularComponents/Buttons/Conference/CreateCall/CreateCall.tsx