src/cmd/library_install.js
function nameVersionInstallStrategy(baseDir) {
	return (name, version) => {
		if (!version) {
			throw Error('hey I need a version!');
		}
		// todo - should probably instead instantiate the appropriate library repository
		// so we get reuse and consistency
		return path.join(baseDir, name+'@'+version);
	};
}
function nameVersionInstallStrategy(baseDir) {
	return (name, version) => {
		if (!version) {
			throw Error('hey I need a version!');
		}
		// todo - should probably instead instantiate the appropriate library repository
		// so we get reuse and consistency
		return path.join(baseDir, name+'@'+version);
	};
}
function nameVersionInstallStrategy ( baseDir ) { return ( name , version ) => { if ( ! version ) { throw Error ( 'hey I need a version!' ) ; } // todo - should probably instead instantiate the appropriate library repository // so we get reuse and consistency return path . join ( baseDir , name + '@' + version ) ; } ; }
A strategy factory that determines where to place libraries when installed to
a shared directory.
@param {string} baseDir the shared directory where the library should be installed ot
@returns {function(*, *=)} A function that provides the target library directory
A strategy factory that determines where to place libraries when installed to a shared directory .