Skip to content

Commit

Permalink
Merge pull request #9 from nealwp/fix-dbpath
Browse files Browse the repository at this point in the history
Fix dbpath
  • Loading branch information
nealwp authored Feb 5, 2024
2 parents a92b66c + 0df2b14 commit 3496704
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "done-it",
"version": "0.1.1",
"version": "0.2.0",
"description": "cli tool for logging daily work and generating reports",
"main": "index.js",
"scripts": {
Expand All @@ -15,8 +15,8 @@
"dit": "./index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/nealwp/dit.git"
"type": "git",
"url": "https://github.com/nealwp/dit.git"
},
"author": "nealwp",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import path from 'node:path';

async function main(args: string[]) {
const homedir = os.homedir();
const dbPath = path.join(homedir, '.local/dit');
const dbPath = path.join(homedir, '.local/share/dit');

if (!existsSync(dbPath)) {
mkdirSync(dbPath);
Expand Down

0 comments on commit 3496704

Please sign in to comment.