@zeroheight/adoption-cli 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Release notes
2
2
 
3
+ ## [1.2.0](https://www.npmjs.com/package/@zeroheight/adoption-cli/v/1.2.0) - 17th October 2024
4
+ - Support scoped packages in Yarn lockfiles
5
+
3
6
  ## [1.1.0](https://www.npmjs.com/package/@zeroheight/adoption-cli/v/1.1.0) - 17th October 2024
4
7
  - Validate authentication credentials on set up
5
8
 
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ const { output, cleanup } = render(React.createElement(HelpInfo, null));
12
12
  program
13
13
  .name("zh-adoption")
14
14
  .description("CLI for measuring design system usage usage in your products")
15
- .version("1.1.0")
15
+ .version("1.2.0")
16
16
  .addHelpText("before", output)
17
17
  .addCommand(analyzeCommand())
18
18
  .addCommand(authCommand())
@@ -62,6 +62,9 @@ _YarnLockParser_instances = new WeakSet(), _YarnLockParser_parseV1 = function _Y
62
62
  }))
63
63
  .filter((p) => p.name);
64
64
  }, _YarnLockParser_sanitizeName = function _YarnLockParser_sanitizeName(name) {
65
+ if (name.startsWith("@")) {
66
+ return "@" + name.substring(1).split("@").at(0);
67
+ }
65
68
  return name.split("@").at(0);
66
69
  };
67
70
  export default YarnLockParser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeroheight/adoption-cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {