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 431d828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common-utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getPackageJson(cwd = process.cwd()) {

function getThemePackage() {
const packageJson = getPackageJson();
return Object.keys(packageJson.dependencies).find((name) =>
return [...Object.keys(packageJson.dependencies), ...Object.keys(packageJson.devDependencies)].find((name) =>
name.startsWith('auto-reveal-theme-'),
);
}
Expand Down

0 comments on commit 431d828

Please sign in to comment.