fix(lib): detect technologies in informal multi-project directories#107
Open
ThurubilliSaiManoj2026 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #51
Problem
When
autoskillsis run from a parent folder containing multiple independentsub-projects (no
pnpm-workspace.yaml, noworkspacesfield, nodeno.jsonworkspace),
resolveWorkspaces()returns[]and root detection finds nothing,resulting in "No technologies detected".
Root Cause
The detection engine in
detectTechnologies()only scans sub-directories whena formal workspace config is present. Plain multi-project folders are not
covered by any existing code path.
Fix
Added
scanSubdirProjects()— a private function that scans immediatesubdirectories (1 level deep) for
package.json,deno.json, ordeno.jsoncfiles. This is used as a fallback inside
detectTechnologies()when bothconditions are true:
resolveWorkspaces()returns[](no formal workspace config)Skips
SCAN_SKIP_DIRS(node_modules,.git,dist, etc.) and hiddendirectories (those starting with
.). Does not activate when the root itselfhas detectable technologies.
Tests
Added 6 new tests in
workspace.test.tsunder the describe blockdetectTechnologies — informal multi-project directory fallback:package.jsonpackage.jsonhas no depsnode_modulesduring fallback scan