Skip to content

Commit

Permalink
Merge pull request #43 from mainmatter/dev-dependencies
Browse files Browse the repository at this point in the history
find themes in dev dependencies too
  • Loading branch information
mansona authored Oct 7, 2024
2 parents 35e52f1 + 618aaf1 commit 2ed07f3
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 2ed07f3

Please sign in to comment.