@zeroheight/adoption-cli 3.0.0 → 3.0.1
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 +5 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/analyze.d.ts +1 -1
- package/dist/commands/analyze.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
-
## [3.0.
|
|
3
|
+
## [3.0.1](https://www.npmjs.com/package/@zeroheight/adoption-cli/v/3.0.1) - 25th March 2025
|
|
4
|
+
|
|
5
|
+
- Fix bug where color analysis didn't occur when using non-interactive mode
|
|
6
|
+
|
|
7
|
+
## [3.0.0](https://www.npmjs.com/package/@zeroheight/adoption-cli/v/3.0.0) - 25th March 2025
|
|
4
8
|
|
|
5
9
|
- `analyze` command updated to collect date about color usage
|
|
6
10
|
- For non-interactive command new flags introduced: `--color-usage` and `--component-usage`
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ import { monitorRepoCommand } from "./commands/monitor-repo.js";
|
|
|
10
10
|
import { trackPackageCommand } from "./commands/track-package.js";
|
|
11
11
|
import logger, { setFileStream } from "./common/logging.js";
|
|
12
12
|
const program = new Command();
|
|
13
|
-
export const CURRENT_VERSION = "3.0.
|
|
13
|
+
export const CURRENT_VERSION = "3.0.1";
|
|
14
14
|
async function getLatestPackageVersion() {
|
|
15
15
|
const response = await fetch("https://registry.npmjs.org/@zeroheight/adoption-cli/latest");
|
|
16
16
|
const json = await response.json();
|
|
@@ -7,7 +7,7 @@ interface AnalyzeOptions {
|
|
|
7
7
|
repoName?: string;
|
|
8
8
|
interactive: boolean;
|
|
9
9
|
componentUsage: boolean;
|
|
10
|
-
|
|
10
|
+
colorUsage: boolean;
|
|
11
11
|
}
|
|
12
12
|
export type RawComponentUsageMap = Map<string, RawUsage[]>;
|
|
13
13
|
export type RawColorUsageMap = Map<string, RawColorUsage>;
|
package/dist/commands/analyze.js
CHANGED
|
@@ -11,7 +11,7 @@ export async function analyzeAction(options, renderOptions) {
|
|
|
11
11
|
render(React.createElement(Analyze, { onAnalyzeFiles: () => analyzeFiles(options.extensions, options.ignore), onAnalyzeColorUsage: () => analyzeRawColorUsage(options.extensions, options.ignore), repoName: options.repoName }), renderOptions);
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
|
-
render(React.createElement(NonInteractiveAnalyze, { repoName: options.repoName, onAnalyzeFiles: () => analyzeFiles(options.extensions, options.ignore), onAnalyzeColorUsage: () => analyzeRawColorUsage(options.extensions, options.ignore), shouldAnalyzeComponentUsage: options.componentUsage, shouldAnalyzeTokenUsage: options.
|
|
14
|
+
render(React.createElement(NonInteractiveAnalyze, { repoName: options.repoName, onAnalyzeFiles: () => analyzeFiles(options.extensions, options.ignore), onAnalyzeColorUsage: () => analyzeRawColorUsage(options.extensions, options.ignore), shouldAnalyzeComponentUsage: options.componentUsage, shouldAnalyzeTokenUsage: options.colorUsage }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
export function analyzeCommand() {
|