vimd 0.1.1 → 0.1.3

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/dist/cli/index.js CHANGED
@@ -1,14 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
+ import { createRequire } from 'module';
3
4
  import { devCommand } from './commands/dev.js';
4
5
  import { buildCommand } from './commands/build.js';
5
6
  import { themeCommand } from './commands/theme.js';
6
7
  import { configCommand } from './commands/config.js';
8
+ const require = createRequire(import.meta.url);
9
+ const packageJson = require('../../package.json');
7
10
  const program = new Command();
8
11
  program
9
12
  .name('vimd')
10
13
  .description('Real-time Markdown preview tool (view markdown)')
11
- .version('0.1.0');
14
+ .version(packageJson.version);
12
15
  // vimd dev <file>
13
16
  program
14
17
  .command('dev <file>')
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vimd",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Real-time Markdown preview tool with pandoc (view markdown)",
5
5
  "type": "module",
6
6
  "keywords": [