browser-extension-manager 1.3.9 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,10 +10,11 @@ const { execute } = require('node-powertools');
|
|
|
10
10
|
// Load package
|
|
11
11
|
const project = Manager.getPackage('project');
|
|
12
12
|
|
|
13
|
-
// Helper to parse browser filter from --browser flag
|
|
13
|
+
// Helper to parse browser filter from --browser flag or BXM_BROWSER env var
|
|
14
14
|
// Returns array of browser names to publish to, or null for all
|
|
15
15
|
function getBrowserFilter() {
|
|
16
|
-
|
|
16
|
+
// Check env var first (works across npm && chains), then CLI arg
|
|
17
|
+
const browser = process.env.BXM_BROWSER || argv.browser;
|
|
17
18
|
|
|
18
19
|
// If true or undefined, publish to all
|
|
19
20
|
if (browser === true || browser === undefined) {
|