File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/docker-build/src/utils Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- import { Report , Workspace } from '@yarnpkg/core' ;
1
+ import { Report , structUtils , Workspace } from '@yarnpkg/core' ;
2
2
import { PortablePath , ppath , xfs } from '@yarnpkg/fslib' ;
3
3
import { patchUtils } from '@yarnpkg/plugin-patch' ;
4
4
@@ -18,10 +18,14 @@ export default async function copyPatchFiles({
18
18
19
19
for ( const ws of workspaces ) {
20
20
for ( const descriptor of ws . dependencies . values ( ) ) {
21
- if ( ! descriptor . range . startsWith ( 'patch:' ) ) continue ;
21
+ const patchDescriptor = structUtils . isVirtualDescriptor ( descriptor )
22
+ ? structUtils . devirtualizeDescriptor ( descriptor )
23
+ : descriptor ;
24
+
25
+ if ( ! patchDescriptor . range . startsWith ( 'patch:' ) ) continue ;
22
26
23
27
const { parentLocator, patchPaths } = patchUtils . parseDescriptor (
24
- descriptor ,
28
+ patchDescriptor ,
25
29
) ;
26
30
27
31
for ( const path of patchPaths ) {
You can’t perform that action at this time.
0 commit comments