export class Dependument {
  private package: string;
  private templates: string;

  constructor(options: any) {
    if (!options.path) {
      throw new Error("No path specified in options");
    }

    if (!options.path.package) {
      throw new Error("No package path specified in options");
    }
  }
}

export class Dependument {
  private package: string;
  private templates: string;

  constructor(options: any) {
    if (!options.path) {
      throw new Error("No path specified in options");
    }
  }
}

--- 
+++ 
@@ -6,5 +6,9 @@
     if (!options.path) {
       throw new Error("No path specified in options");
     }
+
+    if (!options.path.package) {
+      throw new Error("No package path specified in options");
+    }
   }
 }
Throw error if no package path
