update to latest standards

This commit is contained in:
2016-12-10 19:46:47 +01:00
parent 62b91adf0e
commit 32db51c49a
6 changed files with 16 additions and 10 deletions

View File

@ -31,7 +31,10 @@ export class LazyModule<T> {
whenLoaded: q.Promise<T>
loader: TLoader = 'npm'
private whenLoadedDeferred: q.Deferred<T>
constructor(nameArg: string, cwdArg: string = process.cwd()) {
constructor(nameArg: string, cwdArg: string) {
if (!cwdArg) {
throw new Error('You must specify a directory to resolve from!')
}
this.name = nameArg
this.cwd = cwdArg
smartsystem.addLazyModule(this) // add module to smartsystem instance