rip-lang 3.10.1 → 3.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/typecheck.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",
package/src/typecheck.js CHANGED
@@ -362,7 +362,10 @@ export async function runCheck(targetDir, opts = {}) {
362
362
  const totalFiles = compiled.size;
363
363
 
364
364
  if (totalErrors === 0 && totalWarnings === 0) {
365
- console.log(`\n${bold('✓')} ${typedFiles} typed file${typedFiles !== 1 ? 's' : ''} checked, no errors found`);
365
+ const summary = typedFiles > 0
366
+ ? `${typedFiles} typed file${typedFiles !== 1 ? 's' : ''} checked, no errors found`
367
+ : `${totalFiles} file${totalFiles !== 1 ? 's' : ''} found, none have type annotations`;
368
+ console.log(`\n${bold('✓')} ${summary}`);
366
369
  if (compileErrors > 0) {
367
370
  console.log(dim(` (${compileErrors} file${compileErrors !== 1 ? 's' : ''} had compile errors)`));
368
371
  }