diff --git a/lib/common-utils.cjs b/lib/common-utils.cjs index ac5155f..d0a5b9d 100644 --- a/lib/common-utils.cjs +++ b/lib/common-utils.cjs @@ -23,9 +23,10 @@ function getPackageJson(cwd = process.cwd()) { function getThemePackage() { const packageJson = getPackageJson(); - return Object.keys(packageJson.dependencies).find((name) => - name.startsWith('auto-reveal-theme-'), - ); + return [ + ...Object.keys(packageJson.dependencies), + ...Object.keys(packageJson.devDependencies), + ].find((name) => name.startsWith('auto-reveal-theme-')); } function getTheme() {