@travetto/doc 7.0.0 → 7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/doc",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Documentation support for the Travetto framework",
5
5
  "keywords": [
6
6
  "docs",
@@ -24,12 +24,12 @@
24
24
  "directory": "module/doc"
25
25
  },
26
26
  "dependencies": {
27
- "@travetto/runtime": "^7.0.0",
27
+ "@travetto/runtime": "^7.0.2",
28
28
  "@types/prismjs": "^1.26.5",
29
29
  "prismjs": "^1.30.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@travetto/cli": "^7.0.0"
32
+ "@travetto/cli": "^7.0.2"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@travetto/cli": {
@@ -3,7 +3,7 @@ import path from 'node:path';
3
3
  import { spawn } from 'node:child_process';
4
4
 
5
5
  import { PackageUtil } from '@travetto/manifest';
6
- import { ExecUtil, Env, watchCompiler, Runtime } from '@travetto/runtime';
6
+ import { ExecUtil, Env, Runtime, WatchUtil } from '@travetto/runtime';
7
7
  import { CliCommandShape, CliCommand, CliValidationError } from '@travetto/cli';
8
8
  import { MinLength } from '@travetto/schema';
9
9
 
@@ -49,7 +49,7 @@ export class DocCommand implements CliCommandShape {
49
49
 
50
50
  async runWatch(): Promise<void> {
51
51
  const [first, ...args] = process.argv.slice(2).filter(arg => !/(-w|--watch)/.test(arg));
52
- for await (const { file } of watchCompiler({ restartOnCompilerExit: true })) {
52
+ await WatchUtil.watchCompilerEvents('change', async ({ file }) => {
53
53
  if (file === this.input) {
54
54
  const subProcess = spawn(process.argv0, [Runtime.trvEntryPoint, first, ...args], {
55
55
  cwd: Runtime.mainSourcePath,
@@ -58,7 +58,7 @@ export class DocCommand implements CliCommandShape {
58
58
  });
59
59
  await ExecUtil.getResult(subProcess, { catch: true });
60
60
  }
61
- }
61
+ });
62
62
  }
63
63
 
64
64
  async render(): Promise<void> {