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 +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +14 -9
- package/src/index.ts +1 -1
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.
|
|
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
package/scripts/postinstall.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
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(
|
|
11
|
+
console.log(`${green}${bold}🎰 Git Slot Machine installed successfully!${reset}`);
|
|
7
12
|
console.log();
|
|
8
|
-
console.log(
|
|
13
|
+
console.log(`${cyan}Quick Start:${reset}`);
|
|
9
14
|
console.log();
|
|
10
|
-
console.log(
|
|
11
|
-
console.log(
|
|
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(
|
|
14
|
-
console.log(
|
|
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(
|
|
21
|
+
console.log(` ${bold}3. Make commits and watch the magic happen!${reset}`);
|
|
17
22
|
console.log();
|
|
18
|
-
console.log(
|
|
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.
|
|
18
|
+
.version('1.2.3', '-v, --version', 'Output the current version');
|
|
19
19
|
|
|
20
20
|
program
|
|
21
21
|
.command('play')
|