File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"name" : " fixture-project" ,
4
- "pworkspaces " : [
5
- " packages/*"
6
- ] ,
4
+ "bolt " : {
5
+ "workspaces" : [ " packages/*" ]
6
+ } ,
7
7
"dependencies" : {
8
8
"react" : " ^15.6.1"
9
9
}
Original file line number Diff line number Diff line change 7
7
"postinstall" : " echo postinstall" ,
8
8
"prepublish" : " echo prepublish"
9
9
},
10
- "pworkspaces " : [
11
- " packages/*"
12
- ] ,
10
+ "bolt " : {
11
+ "workspaces" : [ " packages/*" ]
12
+ } ,
13
13
"dependencies" : {
14
14
"react" : " ^15.6.1" ,
15
15
"bar-workspace-package" : " ^1.0.0"
Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ export async function workspaceRun(opts: WorkspaceRunOptions) {
39
39
) ;
40
40
}
41
41
42
- let validScript = await yarn . run ( workspace . pkg , opts . script , opts . scriptArgs ) ;
42
+ let validScript = await yarn . getScript ( workspace . pkg , opts . script ) ;
43
43
44
44
if ( ! validScript ) {
45
45
throw new BoltError (
46
46
`Package at "${ workspace . pkg
47
47
. dir } " does not have a script named "${ opts . script } "`
48
48
) ;
49
49
}
50
+ await yarn . run ( workspace . pkg , opts . script , opts . scriptArgs ) ;
50
51
}
You can’t perform that action at this time.
0 commit comments