File tree 1 file changed +7
-2
lines changed
packages/workspace/src/command-line
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { createProjectGraph } from '../core/project-graph';
8
8
import { filterAffected } from '../core/affected-project-graph' ;
9
9
import { calculateFileChanges } from '../core/file-utils' ;
10
10
import * as yargs from 'yargs' ;
11
- import { NxArgs } from './utils' ;
11
+ import { NxArgs , splitArgsIntoNxArgsAndOverrides } from './utils' ;
12
12
13
13
const PRETTIER_EXTENSIONS = [
14
14
'ts' ,
@@ -26,8 +26,13 @@ const PRETTIER_EXTENSIONS = [
26
26
export function format ( command : 'check' | 'write' , args : yargs . Arguments ) {
27
27
let patterns : string [ ] ;
28
28
29
+ const { nxArgs } = splitArgsIntoNxArgsAndOverrides ( args ) ;
30
+
29
31
try {
30
- patterns = getPatterns ( args as any ) ;
32
+ patterns = getPatterns ( {
33
+ ...args ,
34
+ ...nxArgs
35
+ } as any ) ;
31
36
} catch ( e ) {
32
37
output . error ( {
33
38
title : e . message ,
You can’t perform that action at this time.
0 commit comments