taskin 1.0.1 → 1.0.3

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 CHANGED
@@ -38,7 +38,7 @@ pnpm add -g taskin
38
38
  yarn global add taskin
39
39
  \`\`\`
40
40
 
41
- > **Note:** This is a beta version. Please report any issues on [GitHub](https://github.com/opentask-app/taskin/issues).
41
+ > **Note:** This is a beta version. Please report any issues on [GitHub](https://github.com/sidartaveloso/taskin/issues).
42
42
 
43
43
  ## 📦 Available Packages
44
44
 
@@ -180,7 +180,7 @@ Contributions are welcome! Please feel free to submit a Pull Request.
180
180
 
181
181
  ## 🐛 Issues
182
182
 
183
- Found a bug? Have a feature request? Please [open an issue](https://github.com/opentask-app/taskin/issues).
183
+ Found a bug? Have a feature request? Please [open an issue](https://github.com/sidartaveloso/taskin/issues).
184
184
 
185
185
  ## � Team
186
186
 
package/dist/index.js CHANGED
@@ -62,7 +62,12 @@ var FileSystemTaskProvider = class {
62
62
  return task;
63
63
  }
64
64
  async updateTask(task) {
65
- await fs.writeFile(task.filePath, task.content);
65
+ const currentContent = await fs.readFile(task.filePath, "utf-8");
66
+ const updatedContent = currentContent.replace(
67
+ /^Status:\s*.+$/im,
68
+ `Status: ${task.status}`
69
+ );
70
+ await fs.writeFile(task.filePath, updatedContent, "utf-8");
66
71
  }
67
72
  async getAllTasks() {
68
73
  const files = await fs.readdir(this.tasksDirectory);
@@ -527,7 +532,7 @@ async function initializeTaskin(options) {
527
532
  }
528
533
  const providerConfig = await setupProviderConfig(selectedProvider, cwd);
529
534
  const config = {
530
- version: "0.1.0",
535
+ version: "1.0.3",
531
536
  provider: {
532
537
  type: selectedProvider.id,
533
538
  config: providerConfig
@@ -1279,7 +1284,7 @@ function showCustomHelp() {
1279
1284
  // src/version.ts
1280
1285
  init_esm_shims();
1281
1286
  import { readFileSync } from "fs";
1282
- import { join as join4, dirname } from "path";
1287
+ import { dirname, join as join4 } from "path";
1283
1288
  import { fileURLToPath as fileURLToPath2 } from "url";
1284
1289
  var __filename2 = fileURLToPath2(import.meta.url);
1285
1290
  var __dirname2 = dirname(__filename2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskin",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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",
@@ -21,11 +21,11 @@
21
21
  ],
22
22
  "homepage": "https://opentask.com.br",
23
23
  "bugs": {
24
- "url": "https://github.com/opentask-app/taskin/issues"
24
+ "url": "https://github.com/sidartaveloso/taskin/issues"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
28
- "url": "git+https://github.com/opentask-app/taskin.git",
28
+ "url": "git+https://github.com/sidartaveloso/taskin.git",
29
29
  "directory": "packages/cli"
30
30
  },
31
31
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  ],
63
63
  "scripts": {
64
64
  "build": "tsup",
65
- "clean": "rm -rf dist coverage .turbo",
65
+ "clean": "rm -rf dist coverage .turbo test-temp-e2e",
66
66
  "dev": "tsup --watch",
67
67
  "format": "prettier --write .",
68
68
  "format:check": "prettier --check .",
@@ -70,6 +70,7 @@
70
70
  "lint:fix": "eslint . --fix",
71
71
  "prepublishOnly": "pnpm build",
72
72
  "test": "vitest run",
73
+ "test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
73
74
  "test:coverage": "vitest run --coverage",
74
75
  "typecheck": "tsc --noEmit"
75
76
  },