vimd 0.1.2 → 0.1.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.
@@ -33,8 +33,8 @@ export async function devCommand(filePath, options) {
33
33
  Logger.error(`File not found: ${filePath}`);
34
34
  process.exit(1);
35
35
  }
36
- // 4. Prepare output directory
37
- const outputDir = path.join(process.cwd(), '.vimd-tmp');
36
+ // 4. Prepare output directory (not starting with '.' to avoid live-server ignore)
37
+ const outputDir = path.join(process.cwd(), 'vimd-preview');
38
38
  await fs.ensureDir(outputDir);
39
39
  const htmlPath = path.join(outputDir, path.basename(filePath, path.extname(filePath)) + '.html');
40
40
  // 5. Prepare converter
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/core/server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKlD,qBAAa,UAAU;IAGT,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,OAAO,CAAS;gBAEJ,MAAM,EAAE,YAAY;IAElC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAUrB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS7C,MAAM,IAAI,MAAM;CAGjB"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/core/server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKlD,qBAAa,UAAU;IAGT,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,OAAO,CAAS;gBAEJ,MAAM,EAAE,YAAY;IAElC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA+BtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAUrB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS7C,MAAM,IAAI,MAAM;CAGjB"}
@@ -1,5 +1,5 @@
1
1
  // src/core/server.ts
2
- import * as liveServer from 'live-server';
2
+ import liveServer from 'live-server';
3
3
  import { Logger } from '../utils/logger.js';
4
4
  import * as path from 'path';
5
5
  import open from 'open';
@@ -17,8 +17,9 @@ export class LiveServer {
17
17
  root: root,
18
18
  file: file,
19
19
  open: false, // manually open
20
- wait: 200,
20
+ wait: 100,
21
21
  logLevel: 0, // silent
22
+ watch: [root], // explicitly watch the root directory
22
23
  };
23
24
  try {
24
25
  liveServer.start(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vimd",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Real-time Markdown preview tool with pandoc (view markdown)",
5
5
  "type": "module",
6
6
  "keywords": [