New: Add deps-check and deps-gen commands (fixes #75) #76
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.
#75
New
deps-checkcommand to verify module dependencies and peerDependencies against source code analysisdeps-gencommand to generate correct dependencies and peerDependencies from source code, with optional--writeto update package.json and runnpm update--recursiveflag to process all child modules detected viaadapt-authoring.jsonSimpleCliCommandbase class for commands that don't require prerequisites checks or release databuildPackageIndex,collectJsFiles,isModule,getModuleDirsTesting
cdinto a module directory (e.g.api/) and runnpx at-utils deps-check— should report dependency check resultsnpx at-utils deps-check --recursive— should check all child modulescdinto a module directory and runnpx at-utils deps-gen— should show a dry-run of expected dependenciesnpx at-utils deps-gen --write— should update package.json and runnpm updatenpx at-utils deps-gen --recursive --write— should process all child modulesadapt-authoring.json) — should print an error and exit with code 1