@@ -6,7 +6,7 @@ bun install
6
6
7
7
To run:
8
8
9
- ``` bash
9
+ ```
10
10
bun run src/index.ts
11
11
12
12
Usage: index [options] [command]
@@ -15,22 +15,38 @@ Options:
15
15
-h, --help display help for command
16
16
17
17
Commands:
18
- fix-package-use [options] [directory] Find unused packages in a project directory
19
- move-file-package < source-file> < target-directory> Move a file to a package directory and update its
20
- exports
18
+ service-glide <repo-path> Do everything to remove indirect imports
19
+ parse-file <file>
20
+ fix-package-use [options] <directory> Add/remove Glide package imports from a package, depending
21
+ on whether they are used
22
+ move-file-package <source-file> <target-directory> Move a file to a package directory and update its exports
21
23
barrel-export <package-dir> <source-paths...> Generate a barrel export for a package
22
24
rewrite-imports <name> <from-path> <to-path> <source-paths...> Rewrite import paths in a project
23
- count-dependency-imports [directory] Iterates through each package dependencies with nx
24
- output and counts the imports of each one. Useful
25
- for finding instances of light imports where
26
- dependencies could be moved.
27
- dedup-imports < source-paths...> Rewrites multiple imports of the same package to a
28
- single import
29
- verbatim-imports < source-paths...> Rewrites imports to use the verbatim import syntax
30
- with explicit extensions
25
+ count-dependency-imports [directory] Iterates through each package dependencies with nx output
26
+ and counts the imports of each one. Useful for finding
27
+ instances of light imports where dependencies could be
28
+ moved.
29
+ dedup-imports [options] <source-paths...> Rewrites multiple imports of the same package to a single
30
+ import
31
+ verbatim-imports <source-paths...> Rewrites imports to use the verbatim import syntax with
32
+ explicit extensions
33
+ resolve-imports [options] <packages-path> <source-paths...> Resolve imports of re-exported symbols
34
+ count-imports <source-paths...> Count the number of imports of each symbol
35
+ remove-re-exports <source-paths...> Remove re-exports of symbols
31
36
help [command] display help for command
32
37
```
33
38
39
+ ## service-glide
40
+
41
+ This is what you want to use if you're moving stuff between packages and need
42
+ to clean up. Please watch the video first:
43
+
44
+ https://www.loom.com/share/3995cb910caf4f3b85113ff4e957d2d9
45
+
46
+ ``` sh
47
+ bun run service-glide ~ /Work/glide
48
+ ```
49
+
34
50
## fix-package-use
35
51
36
52
Finds and removes unused packages from ` package.json ` .
0 commit comments