File tree 1 file changed +4
-2
lines changed
packages/angular-rspack/src/lib/models
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { FileReplacement } from '@nx/angular-rspack-compiler';
2
2
import {
3
3
normalizePath ,
4
4
readCachedProjectGraph ,
5
+ workspaceRoot ,
5
6
type ProjectGraphProjectNode ,
6
7
} from '@nx/devkit' ;
7
8
import assert from 'node:assert' ;
@@ -375,8 +376,9 @@ function normalizeAssetPatterns(
375
376
}
376
377
377
378
// When sourceRoot is not available, we default to ${projectRoot}/src.
378
- const sourceRoot = projectSourceRoot || join ( projectRoot , 'src' ) ;
379
- const resolvedSourceRoot = resolve ( root , sourceRoot ) ;
379
+ const resolvedSourceRoot = projectSourceRoot
380
+ ? join ( workspaceRoot , projectSourceRoot )
381
+ : join ( workspaceRoot , projectRoot , 'src' ) ;
380
382
381
383
return assets . map ( ( assetPattern ) => {
382
384
// Normalize string asset patterns to objects.
You can’t perform that action at this time.
0 commit comments