git-slot-machine 1.2.1 → 1.2.2
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 +0 -8
- 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.2] - 2025-01-16
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed postinstall script not showing on global install
|
|
12
|
+
- Removed overly strict global install detection that prevented message from displaying
|
|
13
|
+
|
|
8
14
|
## [1.2.1] - 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.2', '-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
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
|
|
5
|
-
// Only show message for global installs (when npm_config_global is set)
|
|
6
|
-
const isGlobalInstall = process.env.npm_config_global === 'true';
|
|
7
|
-
|
|
8
|
-
if (!isGlobalInstall) {
|
|
9
|
-
// Skip message for local/dev installs
|
|
10
|
-
process.exit(0);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
5
|
console.log();
|
|
14
6
|
console.log(chalk.green.bold('🎰 Git Slot Machine installed successfully!'));
|
|
15
7
|
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.2', '-v, --version', 'Output the current version');
|
|
19
19
|
|
|
20
20
|
program
|
|
21
21
|
.command('play')
|