Node.js based forum software built for the modern web
fix: package-install clobbering scoped nodebb plugins
Julian Lam840cb5105fe9
diff --git a/src/cli/package-install.js b/src/cli/package-install.jsindex bde1e6a847..3dddbf3591 100644--- a/src/cli/package-install.js+++ b/src/cli/package-install.js@@ -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 = {};