@@ -12,29 +12,29 @@ const VERBOSE = false
1212const logVerbose = ( ...args ) => ( VERBOSE ? console . log ( ...args ) : undefined )
1313
1414const workshopRoot = here ( '..' )
15- const examples = ( await readDir ( here ( '../examples' ) ) ) . map ( dir =>
15+ const examples = ( await readDir ( here ( '../examples' ) ) ) . map ( ( dir ) =>
1616 here ( `../examples/${ dir } ` ) ,
1717)
1818const 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 ( ) )
2121const exerciseApps = (
2222 await Promise . all (
23- exercises . flatMap ( async exercise => {
23+ exercises . flatMap ( async ( exercise ) => {
2424 return ( await readDir ( exercise ) )
25- . filter ( dir => {
25+ . filter ( ( dir ) => {
2626 return / ( p r o b l e m | s o l u t i o n ) / . test ( dir )
2727 } )
28- . map ( dir => path . join ( exercise , dir ) )
28+ . map ( ( dir ) => path . join ( exercise , dir ) )
2929 } ) ,
3030 )
3131) . flat ( )
32- const exampleApps = ( await readDir ( here ( '../examples' ) ) ) . map ( dir =>
32+ const exampleApps = ( await readDir ( here ( '../examples' ) ) ) . map ( ( dir ) =>
3333 here ( `../examples/${ dir } ` ) ,
3434)
3535const apps = [ ...exampleApps , ...exerciseApps ]
3636
37- const appsWithPkgJson = [ ...examples , ...apps ] . filter ( app => {
37+ const appsWithPkgJson = [ ...examples , ...apps ] . filter ( ( app ) => {
3838 const pkgjsonPath = path . join ( app , 'package.json' )
3939 return exists ( pkgjsonPath )
4040} )
@@ -70,7 +70,7 @@ async function updateTsconfig() {
7070 const tsconfig = {
7171 files : [ ] ,
7272 exclude : [ 'node_modules' ] ,
73- references : appsWithPkgJson . map ( a => ( {
73+ references : appsWithPkgJson . map ( ( a ) => ( {
7474 path : relativeToWorkshopRoot ( a ) . replace ( / \\ / g, '/' ) ,
7575 } ) ) ,
7676 }
0 commit comments