wukong-gitlog 0.1.0

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/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # wukong-gitlog
2
+
3
+ Official CLI entry for **wukong-gitlog**.
4
+
5
+ This package is an alias of:
6
+
7
+ πŸ‘‰ https://www.npmjs.com/package/wukong-gitlog-cli
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install -g wukong-gitlog
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import 'wukong-gitlog-cli'
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "wukong-gitlog",
3
+ "version": "0.1.0",
4
+ "description": "Official entry for wukong-gitlog. Alias of wukong-gitlog-cli.",
5
+ "keywords": [
6
+ "git",
7
+ "gitlog",
8
+ "commit-log",
9
+ "cli",
10
+ "wukong"
11
+ ],
12
+ "homepage": "https://tomatobybike.github.io/wukong-gitlog-cli/",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/tomatobybike/wukong-gitlog"
16
+ },
17
+ "license": "MIT",
18
+ "author": "Tom <tomatobybike@gmail.com>",
19
+ "type": "module",
20
+ "bin": {
21
+ "wukong-gitlog": "./bin.js"
22
+ },
23
+ "dependencies": {
24
+ "wukong-gitlog-cli": "^1.0.39"
25
+ }
26
+ }
@@ -0,0 +1,9 @@
1
+ import { execSync } from 'child_process';
2
+
3
+ try {
4
+ execSync('npm whoami', { stdio: 'inherit' });
5
+ console.log('βœ” npm 已登录');
6
+ } catch (err) {
7
+ console.error('❌ npm ζœͺη™»ε½•οΌŒθ―·θΏθ‘Œ npm login εŽε†ζ‰§θ‘Œ release');
8
+ process.exit(1);
9
+ }