git-slot-machine 1.2.2 → 1.2.3

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
@@ -5,6 +5,12 @@ 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
+ ## [1.2.3] - 2025-01-16
9
+
10
+ ### Fixed
11
+ - Fixed postinstall script dependency issue - now uses ANSI codes instead of chalk
12
+ - Postinstall message now displays correctly on global install
13
+
8
14
  ## [1.2.2] - 2025-01-16
9
15
 
10
16
  ### Fixed
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ const program = new Command();
12
12
  program
13
13
  .name('git-slot-machine')
14
14
  .description('Git commit hash slot machine')
15
- .version('1.2.2', '-v, --version', 'Output the current version');
15
+ .version('1.2.3', '-v, --version', 'Output the current version');
16
16
  program
17
17
  .command('play')
18
18
  .description('Play the slot machine with a git hash')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-slot-machine",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Turn your git commits into a slot machine game! CLI tool with global leaderboards and win streaks.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,19 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import chalk from 'chalk';
3
+ // Use ANSI codes directly since chalk might not be installed yet during postinstall
4
+ const green = '\x1b[32m';
5
+ const cyan = '\x1b[36m';
6
+ const dim = '\x1b[2m';
7
+ const bold = '\x1b[1m';
8
+ const reset = '\x1b[0m';
4
9
 
5
10
  console.log();
6
- console.log(chalk.green.bold('🎰 Git Slot Machine installed successfully!'));
11
+ console.log(`${green}${bold}🎰 Git Slot Machine installed successfully!${reset}`);
7
12
  console.log();
8
- console.log(chalk.cyan('Quick Start:'));
13
+ console.log(`${cyan}Quick Start:${reset}`);
9
14
  console.log();
10
- console.log(chalk.white(' 1. Navigate to a git repository:'));
11
- console.log(chalk.dim(' cd /path/to/your/repo'));
15
+ console.log(` ${bold}1. Navigate to a git repository:${reset}`);
16
+ console.log(`${dim} cd /path/to/your/repo${reset}`);
12
17
  console.log();
13
- console.log(chalk.white(' 2. Initialize Git Slot Machine:'));
14
- console.log(chalk.cyan(' git-slot-machine init'));
18
+ console.log(` ${bold}2. Initialize Git Slot Machine:${reset}`);
19
+ console.log(`${cyan} git-slot-machine init${reset}`);
15
20
  console.log();
16
- console.log(chalk.white(' 3. Make commits and watch the magic happen!'));
21
+ console.log(` ${bold}3. Make commits and watch the magic happen!${reset}`);
17
22
  console.log();
18
- console.log(chalk.dim('Learn more: https://gitslotmachine.com'));
23
+ console.log(`${dim}Learn more: https://gitslotmachine.com${reset}`);
19
24
  console.log();
package/src/index.ts CHANGED
@@ -15,7 +15,7 @@ const program = new Command();
15
15
  program
16
16
  .name('git-slot-machine')
17
17
  .description('Git commit hash slot machine')
18
- .version('1.2.2', '-v, --version', 'Output the current version');
18
+ .version('1.2.3', '-v, --version', 'Output the current version');
19
19
 
20
20
  program
21
21
  .command('play')