taskin 1.0.0 → 1.0.1
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/index.js +20 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1276,9 +1276,26 @@ function showCustomHelp() {
|
|
|
1276
1276
|
return "";
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
+
// src/version.ts
|
|
1280
|
+
init_esm_shims();
|
|
1281
|
+
import { readFileSync } from "fs";
|
|
1282
|
+
import { join as join4, dirname } from "path";
|
|
1283
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
1284
|
+
var __filename2 = fileURLToPath2(import.meta.url);
|
|
1285
|
+
var __dirname2 = dirname(__filename2);
|
|
1286
|
+
function getVersion() {
|
|
1287
|
+
try {
|
|
1288
|
+
const packageJsonPath = join4(__dirname2, "../package.json");
|
|
1289
|
+
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
1290
|
+
return packageJson.version;
|
|
1291
|
+
} catch {
|
|
1292
|
+
return "0.0.0";
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1279
1296
|
// src/main.ts
|
|
1280
1297
|
init_esm_shims();
|
|
1281
|
-
import { join as
|
|
1298
|
+
import { join as join5 } from "path";
|
|
1282
1299
|
|
|
1283
1300
|
// src/taskin.ts
|
|
1284
1301
|
init_esm_shims();
|
|
@@ -1368,7 +1385,7 @@ var Taskin = class {
|
|
|
1368
1385
|
|
|
1369
1386
|
// src/main.ts
|
|
1370
1387
|
function createTaskin(tasksDir) {
|
|
1371
|
-
const resolvedTasksDir = tasksDir ||
|
|
1388
|
+
const resolvedTasksDir = tasksDir || join5(process.cwd(), "TASKS");
|
|
1372
1389
|
const taskProvider = new FileSystemTaskProvider(resolvedTasksDir);
|
|
1373
1390
|
const taskManager = new TaskManager(taskProvider);
|
|
1374
1391
|
const linter = new FileSystemTaskLinter();
|
|
@@ -1380,7 +1397,7 @@ function getTaskin() {
|
|
|
1380
1397
|
|
|
1381
1398
|
// src/index.ts
|
|
1382
1399
|
var program = new Command();
|
|
1383
|
-
program.name("taskin").description("\u{1F680} Task Management System").version(
|
|
1400
|
+
program.name("taskin").description("\u{1F680} Task Management System").version(getVersion()).configureHelp({
|
|
1384
1401
|
formatHelp: () => showCustomHelp()
|
|
1385
1402
|
});
|
|
1386
1403
|
initCommand(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taskin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Task management system integrated with Git workflows",
|
|
5
5
|
"motivation": "Provide a CLI tool for task management integrated with Git workflows",
|
|
6
6
|
"solve": "Simplifies task tracking and management directly from the command line",
|