diff --git a/scripts/copy-to-examples.js b/scripts/copy-to-examples.js index 3e17a8801..a8dfe1a6a 100644 --- a/scripts/copy-to-examples.js +++ b/scripts/copy-to-examples.js @@ -58,11 +58,11 @@ if (fs.existsSync(dest)) const options = { path: './src', - extensions: [ 'js' ] + extensions: [ '.js' ] }; - + sloc(options).then((res) => { - console.log('Source files: ' + res.files + '\nLines of code: ' + res.sloc); + console.log('Source files: ' + res.sloc.files + '\nLines of code: ' + res.sloc.sloc); }); });