@vendure/docs 0.0.0-202603260613 → 0.0.0-202603262012
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -181,6 +181,7 @@ vendureDashboardPlugin({
|
|
|
181
181
|
interface PathAdapter {
|
|
182
182
|
getCompiledConfigPath?: GetCompiledConfigPathFn;
|
|
183
183
|
transformTsConfigPathMappings?: TransformTsConfigPathMappingsFn;
|
|
184
|
+
sourceRoot?: string;
|
|
184
185
|
}
|
|
185
186
|
```
|
|
186
187
|
|
|
@@ -196,6 +197,21 @@ A function to determine the path to the compiled Vendure config file.
|
|
|
196
197
|
<MemberInfo kind="property" type={`TransformTsConfigPathMappingsFn`} />
|
|
197
198
|
|
|
198
199
|
|
|
200
|
+
### sourceRoot
|
|
201
|
+
|
|
202
|
+
<MemberInfo kind="property" type={`string`} since="3.6.0" />
|
|
203
|
+
|
|
204
|
+
The root directory used to compute relative output paths when compiling
|
|
205
|
+
TypeScript files. Compiled files preserve their directory structure
|
|
206
|
+
relative to this root.
|
|
207
|
+
|
|
208
|
+
In monorepos this should typically be set to the workspace root (where
|
|
209
|
+
the base `tsconfig.json` lives), so that a config file at
|
|
210
|
+
`apps/server/src/vendure-config.ts` outputs to
|
|
211
|
+
`{outputPath}/apps/server/src/vendure-config.js`.
|
|
212
|
+
|
|
213
|
+
Defaults to the directory containing the `vendureConfigPath` file,
|
|
214
|
+
which places the compiled config at the output root.
|
|
199
215
|
|
|
200
216
|
|
|
201
217
|
</div>
|