@travetto/test 7.0.0 → 7.0.1

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/test",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "type": "module",
5
5
  "description": "Declarative test framework",
6
6
  "keywords": [
@@ -28,15 +28,15 @@
28
28
  "directory": "module/test"
29
29
  },
30
30
  "dependencies": {
31
- "@travetto/registry": "^7.0.0",
32
- "@travetto/runtime": "^7.0.0",
33
- "@travetto/terminal": "^7.0.0",
34
- "@travetto/worker": "^7.0.0",
31
+ "@travetto/registry": "^7.0.1",
32
+ "@travetto/runtime": "^7.0.1",
33
+ "@travetto/terminal": "^7.0.1",
34
+ "@travetto/worker": "^7.0.1",
35
35
  "yaml": "^2.8.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@travetto/cli": "^7.0.0",
39
- "@travetto/transformer": "^7.0.0"
38
+ "@travetto/cli": "^7.0.1",
39
+ "@travetto/transformer": "^7.0.1"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "@travetto/transformer": {
@@ -1,7 +1,7 @@
1
1
  import { ManifestModuleUtil } from '@travetto/manifest';
2
2
  import { Registry } from '@travetto/registry';
3
3
  import { WorkPool } from '@travetto/worker';
4
- import { AsyncQueue, RuntimeIndex, TimeUtil, watchCompiler } from '@travetto/runtime';
4
+ import { AsyncQueue, TimeUtil, WatchUtil } from '@travetto/runtime';
5
5
 
6
6
  import { buildStandardTestManager } from '../worker/standard.ts';
7
7
  import { TestConsumerRegistryIndex } from '../consumer/registry-index.ts';
@@ -54,12 +54,9 @@ export class TestWatcher {
54
54
  }
55
55
  );
56
56
 
57
- for await (const event of watchCompiler()) {
57
+ await WatchUtil.watchCompilerEvents('change', event => {
58
58
  const fileType = ManifestModuleUtil.getFileType(event.file);
59
- if (
60
- (fileType === 'ts' || fileType === 'js') &&
61
- RuntimeIndex.findModuleForArbitraryFile(event.file) !== undefined
62
- ) {
59
+ if ((fileType === 'ts' || fileType === 'js')) {
63
60
  if (event.action === 'delete') {
64
61
  consumer.removeTest(event.import);
65
62
  } else {
@@ -67,7 +64,7 @@ export class TestWatcher {
67
64
  queue.add({ import: event.import, diffSource }, true);
68
65
  }
69
66
  }
70
- }
67
+ });
71
68
 
72
69
  // Cleanup
73
70
  await queueProcessor;