@travetto/registry
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -18,3 +18,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.31" | ||
"version": "0.0.32" | ||
} |
@@ -0,5 +1,7 @@ | ||
import { EventEmitter } from 'events'; | ||
import { Compiler } from '@travetto/compiler'; | ||
import { findAppFilesByExt } from '@travetto/base'; | ||
import { Class } from '../model/types'; | ||
import { bulkFind } from '@travetto/base'; | ||
import { EventEmitter } from 'events'; | ||
import { ChangeSource, ChangeEvent } from './types'; | ||
@@ -26,5 +28,7 @@ import { PendingRegister } from '../decorator/register'; | ||
async init() { | ||
const entries = await bulkFind([/.*[.]ts$/], `${Compiler.cwd}/src`); | ||
const entries = await findAppFilesByExt('.ts') | ||
.filter(x => x.file.includes(`/src/`)); | ||
const files = entries | ||
.filter(x => !x.stats.isDirectory() && !Compiler.invalidWorkingSetFile(x.file)) | ||
.filter(x => Compiler.presenceManager.validFile(x.file)) | ||
.map(x => x.file) | ||
@@ -31,0 +35,0 @@ |
@@ -14,2 +14,5 @@ export class Test { | ||
} | ||
nameze() { | ||
return 'hi'; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Registry, MethodSource, CompilerClassSource, RootRegistry } from '../index'; | ||
import { Registry, MethodSource, CompilerClassSource, RootRegistry } from '../src'; | ||
@@ -12,2 +12,4 @@ class Simple extends Registry { | ||
console.log('Method changed', e); | ||
}); | ||
}); | ||
console.log('hi'); |
{ | ||
"extends" : "./node_modules/@travetto/base/tsconfig.json" | ||
} | ||
"extends": "./node_modules/@travetto/base/tsconfig.json" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17288
491