clocktopus 1.0.2 → 1.0.4

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
@@ -216,18 +216,18 @@ For quick access, add to `~/.zshrc`:
216
216
  ```bash
217
217
  CLOCKTOPUS_PATH="$HOME/Projects/Personal/clocktopus"
218
218
 
219
- clocktopus() {
219
+ clockto() {
220
220
  cd "$CLOCKTOPUS_PATH" || return
221
221
  bun run "$@"
222
222
  }
223
223
 
224
- alias cbuild="clocktopus build"
225
- alias cstart="clocktopus clock start"
226
- alias cstop="clocktopus clock stop"
227
- alias mstart="clocktopus monitor"
228
- alias mstop="clocktopus monitor:stop"
229
- alias mrestart="clocktopus monitor:restart"
230
- alias mlogs="clocktopus monitor:logs"
224
+ alias cbuild="clockto build"
225
+ alias cstart="clockto clock start"
226
+ alias cstop="clockto clock stop"
227
+ alias mstart="clockto monitor"
228
+ alias mstop="clockto monitor:stop"
229
+ alias mrestart="clockto monitor:restart"
230
+ alias mlogs="clockto monitor:logs"
231
231
  ```
232
232
 
233
233
  ---
package/dist/index.js CHANGED
@@ -46,7 +46,8 @@ async function getWorkspaceAndUser() {
46
46
  userId,
47
47
  };
48
48
  }
49
- program.name('clocktopus').description('CLI time-tracking automation for Clockify').version('1.0.0');
49
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
50
+ program.name('clocktopus').description('CLI time-tracking automation for Clockify').version(pkg.version);
50
51
  program
51
52
  .command('start')
52
53
  .description('Start a new time entry. Select a project interactively.')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clocktopus",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {