@travetto/registry
Advanced tools
Comparing version 0.0.40 to 0.0.41
@@ -18,3 +18,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.40" | ||
"version": "0.0.41" | ||
} |
import { EventEmitter } from 'events'; | ||
import { Compiler } from '@travetto/compiler'; | ||
import { findAppFiles } from '@travetto/base'; | ||
import { findAppFiles, AppEnv } from '@travetto/base'; | ||
@@ -77,10 +77,11 @@ import { Class } from '../model/types'; | ||
async init() { | ||
const entries = await findAppFiles('.ts', f => | ||
f.startsWith('src/') && | ||
Compiler.presenceManager.validFile(f)); | ||
if (!AppEnv.test) { | ||
const entries = await findAppFiles('.ts', f => | ||
f.startsWith('src/') && | ||
Compiler.presenceManager.validFile(f)); | ||
const files = entries.map(x => x.file); | ||
for (const f of files) { // Load all files, class scanning | ||
require(f); | ||
const files = entries.map(x => x.file); | ||
for (const f of files) { // Load all files, class scanning | ||
require(f); | ||
} | ||
} | ||
@@ -87,0 +88,0 @@ |
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
17458
498