We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb47fba commit 0afa04dCopy full SHA for 0afa04d
ts-parser/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "abcoder-ts-parser",
3
- "version": "0.0.24",
+ "version": "0.0.28",
4
"description": "TypeScript AST parser for UNIAST specification",
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
ts-parser/src/utils/monorepo.ts
@@ -82,6 +82,13 @@ export class MonorepoUtils {
82
private static countPackageJsonFiles(rootPath: string): number {
83
try {
84
let count = 0;
85
+
86
+ // Check if rootPath itself has a package.json
87
+ const rootPackageJsonPath = path.join(rootPath, 'package.json');
88
+ if (fs.existsSync(rootPackageJsonPath)) {
89
+ count++;
90
+ }
91
92
const items = fs.readdirSync(rootPath);
93
94
for (const item of items) {
0 commit comments