Skip to content

Commit

Permalink
fix: package-install clobbering scoped nodebb plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 21, 2020
1 parent d8a9f1c commit 840cb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/package-install.js
Expand Up @@ -8,7 +8,7 @@ const packageFilePath = path.join(__dirname, '../../package.json');
const packageDefaultFilePath = path.join(__dirname, '../../install/package.json');
const modulesPath = path.join(__dirname, '../../node_modules');

const isPackage = /^nodebb-(plugin|theme|widget|reward)-\w+/;
const isPackage = /^(@\w+\/)?nodebb-(plugin|theme|widget|reward)-\w+/;

function updatePackageFile() {
let oldPackageContents = {};
Expand Down

0 comments on commit 840cb51

Please sign in to comment.