Member Junction
    Preparing search index...

    Function ProbeUndeclaredPackages

    • Find packages with no mjUILayer and work out which layers they could honestly claim.

      This is what lets mj standards adopt declare the already-compliant packages instead of leaving a repo with a config that enforces nothing. It answers the question by running the rules against a hypothetical layer, not by editing anything — probing by writing a field to package.json and reverting it would be a data-loss bug waiting for an interrupted process.

      WouldPassAs is ordered strictest-first and never contains shell, so a caller taking WouldPassAs[0] gets the most informative honest label, and a package that passes nothing comes back with an empty array — "needs work", not "call it shell".

      Parameters

      • repoRoot: string
      • roots: string[]

      Returns UndeclaredPackage[]