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.
- package/bin.cjs +9 -8
- 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
|
-
|
|
69295
|
-
|
|
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();
|