git-slot-machine 1.2.1 → 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 +12 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +14 -17
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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
|
+
|
|
14
|
+
## [1.2.2] - 2025-01-16
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Fixed postinstall script not showing on global install
|
|
18
|
+
- Removed overly strict global install detection that prevented message from displaying
|
|
19
|
+
|
|
8
20
|
## [1.2.1] - 2025-01-16
|
|
9
21
|
|
|
10
22
|
### 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,27 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Skip message for local/dev installs
|
|
10
|
-
process.exit(0);
|
|
11
|
-
}
|
|
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';
|
|
12
9
|
|
|
13
10
|
console.log();
|
|
14
|
-
console.log(
|
|
11
|
+
console.log(`${green}${bold}🎰 Git Slot Machine installed successfully!${reset}`);
|
|
15
12
|
console.log();
|
|
16
|
-
console.log(
|
|
13
|
+
console.log(`${cyan}Quick Start:${reset}`);
|
|
17
14
|
console.log();
|
|
18
|
-
console.log(
|
|
19
|
-
console.log(
|
|
15
|
+
console.log(` ${bold}1. Navigate to a git repository:${reset}`);
|
|
16
|
+
console.log(`${dim} cd /path/to/your/repo${reset}`);
|
|
20
17
|
console.log();
|
|
21
|
-
console.log(
|
|
22
|
-
console.log(
|
|
18
|
+
console.log(` ${bold}2. Initialize Git Slot Machine:${reset}`);
|
|
19
|
+
console.log(`${cyan} git-slot-machine init${reset}`);
|
|
23
20
|
console.log();
|
|
24
|
-
console.log(
|
|
21
|
+
console.log(` ${bold}3. Make commits and watch the magic happen!${reset}`);
|
|
25
22
|
console.log();
|
|
26
|
-
console.log(
|
|
23
|
+
console.log(`${dim}Learn more: https://gitslotmachine.com${reset}`);
|
|
27
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')
|