1
- # @microsoft /trace-import
1
+ # @rushstack /trace-import
2
2
3
- > 🚨 * EARLY PREVIEW RELEASE * 🚨
3
+ > 🚨 _ EARLY PREVIEW RELEASE _ 🚨
4
4
>
5
- > Not all features are implemented yet. To provide suggestions, please
5
+ > Not all features are implemented yet. To provide suggestions, please
6
6
> [ create a GitHub issue] ( https://github.com/microsoft/rushstack/issues/new/choose ) .
7
7
> If you have questions, see the [ Rush Stack Help page] ( https://rushstack.io/pages/help/support/ )
8
8
> for support resources.
@@ -62,11 +62,13 @@ These commands were invoked in the `C:\Git\rushstack\apps\trace-import` folder
62
62
where trace-import is developed.
63
63
64
64
### Resolving a CommonJS main index
65
+
65
66
```
66
67
trace-import --path semver
67
68
```
68
69
69
70
Sample output:
71
+
70
72
```
71
73
Base folder: C:\Git\rushstack\apps\trace-import
72
74
Package name: semver
@@ -82,11 +84,13 @@ Target path: C:\Git\rushstack\common\temp\node_modules\.pnpm\semver@
82
84
```
83
85
84
86
### Resolving a CommonJS package subpath
87
+
85
88
```
86
89
trace-import --path typescript/bin/tsc
87
90
```
88
91
89
92
Sample output:
93
+
90
94
```
91
95
Base folder: C:\Git\rushstack\apps\trace-import
92
96
Package name: typescript
@@ -101,11 +105,13 @@ Target path: C:\Git\rushstack\common\temp\node_modules\.pnpm\typescr
101
105
```
102
106
103
107
### Resolving a TypeScript declaration
108
+
104
109
```
105
110
trace-import --resolution-type ts --path semver
106
111
```
107
112
108
113
Sample output:
114
+
109
115
```
110
116
Base folder: C:\Git\rushstack\apps\trace-import
111
117
Package name: semver
@@ -123,11 +129,13 @@ Target path: C:\Git\rushstack\common\temp\node_modules\.pnpm\@types+
123
129
```
124
130
125
131
### Resolving a relative path
132
+
126
133
```
127
134
trace-import --path ./config/rig.json
128
135
```
129
136
130
137
Sample output:
138
+
131
139
```
132
140
Base folder: C:\Git\rushstack\apps\trace-import
133
141
Import path: ./config/rig.json
@@ -140,8 +148,7 @@ Target path: C:\Git\rushstack\apps\trace-import\config\rig.json
140
148
141
149
## Links
142
150
143
- - [ CHANGELOG.md] (
144
- https://github.com/microsoft/rushstack/blob/main/apps/trace-import/CHANGELOG.md ) - Find
151
+ - [ CHANGELOG.md] ( https://github.com/microsoft/rushstack/blob/main/apps/trace-import/CHANGELOG.md ) - Find
145
152
out what's new in the latest version
146
153
- [ Rush Lockfile Explorer] ( https://lfx.rushstack.io ) - The desktop app for troubleshooting PNPM lockfiles
147
154
0 commit comments