From 1d4d107b288accfc150288219cd46c584437c277 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sat, 26 Jan 2019 15:41:46 -0800 Subject: [PATCH] help Node.js find the path to the prettify CSS files --- packages/jsdoc-template-original/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/jsdoc-template-original/index.js b/packages/jsdoc-template-original/index.js index 273f46ad..c2b87c4c 100644 --- a/packages/jsdoc-template-original/index.js +++ b/packages/jsdoc-template-original/index.js @@ -547,7 +547,13 @@ exports.publish = ({doclets, tutorials}, opts) => { fs.copyFileSync( path.join( - templatePath, 'node_modules/color-themes-for-google-code-prettify/dist/themes', + // Hacky workaround to get the path to the prettify themes. + require.resolve('lodash'), + '..', + '..', + 'color-themes-for-google-code-prettify', + 'dist', + 'themes', fileName ), toDir