mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: package-install clobbering scoped nodebb plugins
This commit is contained in:
@@ -8,7 +8,7 @@ const packageFilePath = path.join(__dirname, '../../package.json');
|
|||||||
const packageDefaultFilePath = path.join(__dirname, '../../install/package.json');
|
const packageDefaultFilePath = path.join(__dirname, '../../install/package.json');
|
||||||
const modulesPath = path.join(__dirname, '../../node_modules');
|
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() {
|
function updatePackageFile() {
|
||||||
let oldPackageContents = {};
|
let oldPackageContents = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user