@@ -2,15 +2,15 @@ import {join} from 'path';
22import { readFileSync } from 'fs' ;
33import fileExists from 'node-file-exists' ;
44
5- export const tutorialError = 'This is an error with the tutorial itself' ;
5+ // export const tutorialError = 'This is an error with the tutorial itself';
66
77export function isTutorial ( dir : string , name : string ) : boolean {
88 // has package.json
99 const pathToTutorialPackageJson = join (
1010 dir , 'node_modules' , name , 'package.json'
1111 ) ;
1212 if ( ! fileExists ( pathToTutorialPackageJson ) ) {
13- console . log ( `Error with ${ name } : no package.json file found. ${ tutorialError } ` ) ;
13+ // console.log(`Error with ${name}: no package.json file found. ${tutorialError}`);
1414 return false ;
1515 }
1616 // main path to coderoad.json
@@ -25,11 +25,11 @@ export function isTutorial(dir: string, name: string): boolean {
2525 dir , 'node_modules' , name , pj . main
2626 ) ;
2727 if ( ! fileExists ( pathToCoderoadJson ) ) {
28- console . log ( `Error with ${ name } : no coderoad.json file. ${ tutorialError } ` ) ;
28+ // console.log(`Error with ${name}: no coderoad.json file. ${tutorialError}`);
2929 return false ;
3030 } ;
3131 if ( ! pj . config || ! pj . config . runner ) {
32- console . log ( `Error with ${ name } : no test runner specified. ${ tutorialError } ` ) ;
32+ // console.log(`Error with ${name}: no test runner specified. ${tutorialError}`);
3333 return false ;
3434 }
3535
0 commit comments