@georgewrmarshall/design-system-metrics 2.4.0 → 2.5.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/index.js +9 -2
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,8 +5,21 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.5.0] - 2026-02-21
9
+
10
+ ### Fixed
11
+
12
+ - **Version Number**: Corrected CLI version number in index.js to match package.json version (was incorrectly set to "3.0.0")
13
+
8
14
  ## [2.4.0] - 2026-02-21
9
15
 
16
+ ### Added
17
+
18
+ - **Output File Date Stamps**: Generated XLSX files now automatically include today's date in the filename
19
+ - Format: `{project}-component-metrics-YYYY-MM-DD.xlsx`
20
+ - Example: `extension-component-metrics-2026-02-21.xlsx`
21
+ - Makes it easier to track metrics over time and compare historical data
22
+
10
23
  ### Changed
11
24
 
12
25
  - **Extension Component Mappings**: Corrected replacement targets to reflect actual migration state
package/index.js CHANGED
@@ -46,7 +46,7 @@ const validateConfig = (cfg) => {
46
46
 
47
47
  // Define CLI options using Commander
48
48
  program
49
- .version("3.0.0")
49
+ .version("2.5.0")
50
50
  .description("Design System Metrics CLI Tool - Track component usage and migration progress")
51
51
  .requiredOption(
52
52
  "-p, --project <name>",
@@ -259,12 +259,19 @@ const main = async () => {
259
259
  rootFolder,
260
260
  ignoreFolders,
261
261
  filePattern,
262
- outputFile,
262
+ outputFile: baseOutputFile,
263
263
  deprecatedComponents = {},
264
264
  currentComponents = [],
265
265
  currentPackages = [],
266
266
  } = projectConfig;
267
267
 
268
+ // Add today's date to the output filename
269
+ const today = new Date().toISOString().split('T')[0]; // YYYY-MM-DD format
270
+ const ext = path.extname(baseOutputFile);
271
+ const basename = path.basename(baseOutputFile, ext);
272
+ const dirname = path.dirname(baseOutputFile);
273
+ const outputFile = path.join(dirname, `${basename}-${today}${ext}`);
274
+
268
275
  const currentComponentsSet = new Set(currentComponents);
269
276
 
270
277
  console.log(chalk.blue(`\nStarting audit for project: ${projectName}\n`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@georgewrmarshall/design-system-metrics",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "A CLI tool to audit design system component usage from local libraries, NPM packages, and track deprecated components across MetaMask codebases",
5
5
  "main": "index.js",
6
6
  "packageManager": "yarn@4.3.1",