den-github-manager 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/bin/den.js +12 -3
- package/package.json +1 -1
package/bin/den.js
CHANGED
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
import { program } from 'commander';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
|
+
import { readFileSync } from 'fs';
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
7
|
+
import { dirname, join } from 'path';
|
|
5
8
|
import { initCommand } from '../src/commands/init.js';
|
|
6
9
|
import { analyzeCommand } from '../src/commands/analyze.js';
|
|
7
10
|
import { templatesCommand } from '../src/commands/templates.js';
|
|
8
11
|
import { configCommand } from '../src/commands/config.js';
|
|
9
12
|
|
|
13
|
+
// Read version from package.json
|
|
14
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
const packageJson = JSON.parse(
|
|
16
|
+
readFileSync(join(__dirname, '../package.json'), 'utf-8')
|
|
17
|
+
);
|
|
18
|
+
|
|
10
19
|
const pkg = {
|
|
11
|
-
name:
|
|
12
|
-
version:
|
|
13
|
-
description:
|
|
20
|
+
name: packageJson.name,
|
|
21
|
+
version: packageJson.version,
|
|
22
|
+
description: packageJson.description
|
|
14
23
|
};
|
|
15
24
|
|
|
16
25
|
console.log(chalk.blue.bold(`\nš¦ ${pkg.name} v${pkg.version}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "den-github-manager",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI tool to setup GitHub Projects automatically - Analyze, generate backlog, and configure milestones, issues, and project boards in minutes",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|