linear-github-cli 1.0.1 → 1.0.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/dist/cli.js +9 -1
- package/dist/lgcmf.js +8 -0
- package/package.json +4 -2
package/dist/cli.js
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
const commander_1 = require("commander");
|
|
5
8
|
const dotenv_1 = require("dotenv");
|
|
9
|
+
const fs_1 = require("fs");
|
|
6
10
|
const path_1 = require("path");
|
|
11
|
+
const update_notifier_1 = __importDefault(require("update-notifier"));
|
|
7
12
|
const create_parent_1 = require("./commands/create-parent");
|
|
8
13
|
const create_sub_1 = require("./commands/create-sub");
|
|
9
14
|
// Load .env file from the project root
|
|
10
15
|
// __dirname points to dist/ in compiled output, so we go up one level
|
|
11
16
|
(0, dotenv_1.config)({ path: (0, path_1.resolve)(__dirname, '..', '.env') });
|
|
17
|
+
// Check for updates
|
|
18
|
+
const pkg = JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '..', 'package.json'), 'utf-8'));
|
|
19
|
+
(0, update_notifier_1.default)({ pkg }).notify();
|
|
12
20
|
const program = new commander_1.Command();
|
|
13
21
|
program
|
|
14
22
|
.name('lg')
|
|
15
23
|
.description('Linear + GitHub Integration CLI - Create GitHub issues with Linear sync')
|
|
16
|
-
.version('1.0.
|
|
24
|
+
.version('1.0.2');
|
|
17
25
|
program
|
|
18
26
|
.command('create-parent')
|
|
19
27
|
.alias('parent')
|
package/dist/lgcmf.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
const dotenv_1 = require("dotenv");
|
|
8
|
+
const fs_1 = require("fs");
|
|
5
9
|
const path_1 = require("path");
|
|
10
|
+
const update_notifier_1 = __importDefault(require("update-notifier"));
|
|
6
11
|
const commit_first_1 = require("./commands/commit-first");
|
|
7
12
|
// Load .env file from the project root
|
|
8
13
|
// __dirname points to dist/ in compiled output, so we go up one level
|
|
9
14
|
(0, dotenv_1.config)({ path: (0, path_1.resolve)(__dirname, '..', '.env') });
|
|
15
|
+
// Check for updates
|
|
16
|
+
const pkg = JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '..', 'package.json'), 'utf-8'));
|
|
17
|
+
(0, update_notifier_1.default)({ pkg }).notify();
|
|
10
18
|
(0, commit_first_1.commitFirst)().catch((error) => {
|
|
11
19
|
console.error('❌ Error:', error instanceof Error ? error.message : error);
|
|
12
20
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linear-github-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI tool for creating GitHub issues with Linear integration",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,11 +45,13 @@
|
|
|
45
45
|
"commander": "^11.0.0",
|
|
46
46
|
"date-fns": "^3.0.0",
|
|
47
47
|
"dotenv": "^16.4.5",
|
|
48
|
-
"inquirer": "^9.2.0"
|
|
48
|
+
"inquirer": "^9.2.0",
|
|
49
|
+
"update-notifier": "^6.0.1"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/inquirer": "^9.0.9",
|
|
52
53
|
"@types/node": "^20.0.0",
|
|
54
|
+
"@types/update-notifier": "^6.0.8",
|
|
53
55
|
"tsx": "^4.0.0",
|
|
54
56
|
"typescript": "^5.0.0"
|
|
55
57
|
}
|