in src/Package.ts [28:31]
constructor(public name: string, public dependencies: PackageRef[] = []) {
if ( typeof name !== 'string' ) { throw new Error('You must provide a name for the package'); }
if ( dependencies && !Array.isArray(dependencies) ) { throw new Error('dependencies must be an array'); }
}