@@ -2,15 +2,15 @@ import {join} from 'path';
2
2
import { readFileSync } from 'fs' ;
3
3
import fileExists from 'node-file-exists' ;
4
4
5
- export const tutorialError = 'This is an error with the tutorial itself' ;
5
+ // export const tutorialError = 'This is an error with the tutorial itself';
6
6
7
7
export function isTutorial ( dir : string , name : string ) : boolean {
8
8
// has package.json
9
9
const pathToTutorialPackageJson = join (
10
10
dir , 'node_modules' , name , 'package.json'
11
11
) ;
12
12
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}`);
14
14
return false ;
15
15
}
16
16
// main path to coderoad.json
@@ -25,11 +25,11 @@ export function isTutorial(dir: string, name: string): boolean {
25
25
dir , 'node_modules' , name , pj . main
26
26
) ;
27
27
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}`);
29
29
return false ;
30
30
} ;
31
31
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}`);
33
33
return false ;
34
34
}
35
35
0 commit comments