mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-31 05:07:26 +00:00 
			
		
		
		
	Fix relative theme directory
The theme directory assumes it was a child of the HackMyResume module, but NPM3 will actually flatten this out. Following the same logic that the template-generator uses, find the path to the themes using NPMs require method.
This commit is contained in:
		| @@ -242,9 +242,8 @@ Implementation of the 'generate' verb for HackMyResume. | ||||
|   Verify the specified theme name/path. | ||||
|   */ | ||||
|   function verify_theme( themeNameOrPath ) { | ||||
|     var tFolder = PATH.resolve( | ||||
|       __dirname, | ||||
|       '../../node_modules/fresh-themes/themes', | ||||
|     var tFolder = PATH.join( | ||||
|       parsePath ( require.resolve('fresh-themes') ).dirname, | ||||
|       themeNameOrPath | ||||
|     ); | ||||
|     var exists = require('path-exists').sync; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user