ai-hero-cli 0.0.22 → 0.0.23

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/bin.cjs +9 -8
  2. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -69290,15 +69290,16 @@ var lint = Command_exports2.make(
69290
69290
  lesson,
69291
69291
  `main.ts file not found in the ${subfolder} folder.`
69292
69292
  );
69293
- }
69294
- const mainFileContent = yield* fs.readFileString(
69295
- mainFilePath
69296
- );
69297
- if (mainFileContent.trim().length === 0) {
69298
- errorTracker.addError(
69299
- lesson,
69300
- `main.ts file is empty in the ${subfolder} folder.`
69293
+ } else {
69294
+ const mainFileContent = yield* fs.readFileString(
69295
+ mainFilePath
69301
69296
  );
69297
+ if (mainFileContent.trim().length === 0) {
69298
+ errorTracker.addError(
69299
+ lesson,
69300
+ `main.ts file is empty in the ${subfolder} folder.`
69301
+ );
69302
+ }
69302
69303
  }
69303
69304
  }
69304
69305
  const files = yield* lesson.allFiles();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hero-cli",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "description": "The CLI used to run exercises for the AI Hero course",
6
6
  "bin": "bin.cjs",