How to use the @microsoft/rush-lib.Utilities.parseScopedPackageName function in @microsoft/rush-lib

To help you get started, we’ve selected a few @microsoft/rush-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / rushstack / apps / rush / src / utilities / ShrinkwrapFile.ts View on Github external
public getTempProjectNames(): ReadonlyArray {
    const result: string[] = [];
    for (const key of Object.keys(this._shrinkwrapJson.dependencies)) {
      // If it starts with @rush-temp, then include it:
      if (Utilities.parseScopedPackageName(key).scope === RushConstants.rushTempNpmScope) {
        result.push(key);
      }
    }
    result.sort();  // make the result deterministic
    return result;
  }