tsoft-cli 3.4.1 → 3.4.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 +4 -1
- package/package.json +1 -1
- package/src/index.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,10 @@ All notable changes to T-Soft CLI 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
|
-
## [3.4.
|
|
8
|
+
## [3.4.2] - 2026-04-08
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Version now read from package.json instead of hardcoded value
|
|
9
12
|
|
|
10
13
|
### Changed
|
|
11
14
|
- OAuth callback page redesigned — clean white background with bordered card
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import { createRequire } from 'module';
|
|
3
4
|
import { Command } from 'commander';
|
|
4
5
|
import chalk from 'chalk';
|
|
5
6
|
import { setJsonMode } from './output-mode.js';
|
|
@@ -17,6 +18,9 @@ import { themeSubmitCommand } from './commands/theme-submit.js';
|
|
|
17
18
|
import { themeInitCommand } from './commands/theme-init.js';
|
|
18
19
|
import { orgSwitchCommand } from './commands/org-switch.js';
|
|
19
20
|
|
|
21
|
+
const require = createRequire(import.meta.url);
|
|
22
|
+
const { version } = require('../package.json');
|
|
23
|
+
|
|
20
24
|
initLocale();
|
|
21
25
|
|
|
22
26
|
const program = new Command();
|
|
@@ -24,7 +28,7 @@ const program = new Command();
|
|
|
24
28
|
program
|
|
25
29
|
.name('tsoft')
|
|
26
30
|
.description('tsoft360 theme development and management tool')
|
|
27
|
-
.version(
|
|
31
|
+
.version(version);
|
|
28
32
|
|
|
29
33
|
// Global --json flag for machine-readable output (CI/CD)
|
|
30
34
|
program.option('--json', 'Machine-readable JSON output for CI/CD');
|