@danixl30/file-explorer-cli 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { join } from 'node:path';
2
3
  import { withFullScreen } from 'fullscreen-ink';
3
- import React from 'react';
4
4
  import meow from 'meow';
5
+ import React from 'react';
5
6
  import App from './app.js';
6
- import { join } from 'node:path';
7
7
  const cli = meow(`
8
8
  Usage
9
9
  $ files
@@ -1,4 +1,5 @@
1
+ import { join } from 'node:path';
1
2
  import { JSONFilePreset } from 'lowdb/node';
2
- export const db = await JSONFilePreset('db.json', {
3
+ export const db = await JSONFilePreset(join(import.meta.dirname, '../../../../db.json'), {
3
4
  bookmarks: [],
4
5
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danixl30/file-explorer-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "files": "dist/cli.js"
@@ -9,6 +9,10 @@
9
9
  "engines": {
10
10
  "node": ">=16"
11
11
  },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/danixl30/cli-file-explorer"
15
+ },
12
16
  "files": [
13
17
  "dist"
14
18
  ],
package/readme.md CHANGED
@@ -5,7 +5,7 @@ Simple CLI file explorer with NodeJs
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- $ npm install -g @danixl30/cli-file-explorer
8
+ $ npm install -g @danixl30/file-explorer-cli
9
9
  ```
10
10
 
11
11
  ## CLI