@dhruv2mars/mdv 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/bin/mdv.js +16 -3
  2. package/package.json +21 -2
package/bin/mdv.js CHANGED
@@ -4,7 +4,7 @@ import { homedir } from 'node:os';
4
4
  import { join } from 'node:path';
5
5
  import { spawnSync } from 'node:child_process';
6
6
 
7
- const REPO = 'https://github.com/Dhruv2mars/mdv';
7
+ const REPO = 'https://github.com/Dhruv2mars/mdv.git';
8
8
  const args = process.argv.slice(2);
9
9
  const envBin = process.env.MDV_BIN;
10
10
 
@@ -19,8 +19,21 @@ if (!existsSync(installedBin)) {
19
19
  console.error('mdv: installing rust binary (first run)...');
20
20
  const install = spawnSync(
21
21
  'cargo',
22
- ['install', 'mdv-cli', '--git', REPO, '--locked', '--root', installRoot],
23
- { stdio: 'inherit' }
22
+ [
23
+ 'install',
24
+ 'mdv-cli',
25
+ '--git',
26
+ REPO,
27
+ '--locked',
28
+ '--root',
29
+ installRoot,
30
+ '--config',
31
+ 'net.git-fetch-with-cli=true'
32
+ ],
33
+ {
34
+ stdio: 'inherit',
35
+ env: { ...process.env, CARGO_NET_GIT_FETCH_WITH_CLI: 'true' }
36
+ }
24
37
  );
25
38
 
26
39
  if (install.status !== 0 || !existsSync(installedBin)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhruv2mars/mdv",
3
- "version": "0.0.1",
4
- "description": "Terminal markdown visualizer",
3
+ "version": "0.0.2",
4
+ "description": "Terminal-first markdown visualizer/editor",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "mdv": "bin/mdv.js"
@@ -12,5 +12,24 @@
12
12
  "scripts": {
13
13
  "mdv": "node bin/mdv.js"
14
14
  },
15
+ "keywords": [
16
+ "markdown",
17
+ "terminal",
18
+ "tui",
19
+ "rust",
20
+ "cli"
21
+ ],
22
+ "homepage": "https://github.com/Dhruv2mars/mdv#readme",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/Dhruv2mars/mdv.git"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/Dhruv2mars/mdv/issues"
29
+ },
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "preferGlobal": true,
15
34
  "license": "MIT"
16
35
  }