fix: package-install clobbering scoped nodebb plugins

This commit is contained in:
Julian Lam
2020-08-21 17:08:15 -04:00
parent d8a9f1c3be
commit 840cb5105f

View File

@@ -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 = {};