@@ -12,29 +12,29 @@ const VERBOSE = false
12
12
const logVerbose = ( ...args ) => ( VERBOSE ? console . log ( ...args ) : undefined )
13
13
14
14
const workshopRoot = here ( '..' )
15
- const examples = ( await readDir ( here ( '../examples' ) ) ) . map ( dir =>
15
+ const examples = ( await readDir ( here ( '../examples' ) ) ) . map ( ( dir ) =>
16
16
here ( `../examples/${ dir } ` ) ,
17
17
)
18
18
const exercises = ( await readDir ( here ( '../exercises' ) ) )
19
- . map ( name => here ( `../exercises/${ name } ` ) )
20
- . filter ( filepath => fs . statSync ( filepath ) . isDirectory ( ) )
19
+ . map ( ( name ) => here ( `../exercises/${ name } ` ) )
20
+ . filter ( ( filepath ) => fs . statSync ( filepath ) . isDirectory ( ) )
21
21
const exerciseApps = (
22
22
await Promise . all (
23
- exercises . flatMap ( async exercise => {
23
+ exercises . flatMap ( async ( exercise ) => {
24
24
return ( await readDir ( exercise ) )
25
- . filter ( dir => {
25
+ . filter ( ( dir ) => {
26
26
return / ( p r o b l e m | s o l u t i o n ) / . test ( dir )
27
27
} )
28
- . map ( dir => path . join ( exercise , dir ) )
28
+ . map ( ( dir ) => path . join ( exercise , dir ) )
29
29
} ) ,
30
30
)
31
31
) . flat ( )
32
- const exampleApps = ( await readDir ( here ( '../examples' ) ) ) . map ( dir =>
32
+ const exampleApps = ( await readDir ( here ( '../examples' ) ) ) . map ( ( dir ) =>
33
33
here ( `../examples/${ dir } ` ) ,
34
34
)
35
35
const apps = [ ...exampleApps , ...exerciseApps ]
36
36
37
- const appsWithPkgJson = [ ...examples , ...apps ] . filter ( app => {
37
+ const appsWithPkgJson = [ ...examples , ...apps ] . filter ( ( app ) => {
38
38
const pkgjsonPath = path . join ( app , 'package.json' )
39
39
return exists ( pkgjsonPath )
40
40
} )
@@ -70,7 +70,7 @@ async function updateTsconfig() {
70
70
const tsconfig = {
71
71
files : [ ] ,
72
72
exclude : [ 'node_modules' ] ,
73
- references : appsWithPkgJson . map ( a => ( {
73
+ references : appsWithPkgJson . map ( ( a ) => ( {
74
74
path : relativeToWorkshopRoot ( a ) . replace ( / \\ / g, '/' ) ,
75
75
} ) ) ,
76
76
}
0 commit comments