ai-heatmap 1.7.0 → 1.7.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.
Files changed (2) hide show
  1. package/bin/init.mjs +15 -2
  2. package/package.json +1 -1
package/bin/init.mjs CHANGED
@@ -87,9 +87,22 @@ copyFileSync(
87
87
 
88
88
  // Create public/ with config
89
89
  mkdirSync(resolve(targetDir, "public"), { recursive: true });
90
- copyFileSync(
91
- resolve(templateRoot, "heatmap.config.json"),
90
+ const defaultConfig = {
91
+ colorScheme: "light",
92
+ theme: "",
93
+ blockSize: 16,
94
+ blockMargin: 4,
95
+ blockRadius: 3,
96
+ bg: "",
97
+ textColor: "",
98
+ start: "",
99
+ end: "",
100
+ stats: true,
101
+ weekday: true,
102
+ };
103
+ writeFileSync(
92
104
  resolve(targetDir, "public/heatmap.config.json"),
105
+ JSON.stringify(defaultConfig, null, 2),
93
106
  );
94
107
 
95
108
  // GitHub Actions workflow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-heatmap",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "AI usage cost heatmap powered by ccusage + react-activity-calendar",
5
5
  "type": "module",
6
6
  "bin": {