Skip to content

Commit

Permalink
find themes in dev dependencies too
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Oct 7, 2024
1 parent 35e52f1 commit 618aaf1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/common-utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 618aaf1

Please sign in to comment.