webstore-lint 1.0.30 → 1.0.31

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.
package/README.md CHANGED
@@ -64,6 +64,10 @@ git clone https://github.com/Circadian-agent/chrome-extension-rejection-lint
64
64
  node chrome-extension-rejection-lint/bin/webstore-lint.mjs ./my-extension
65
65
  ```
66
66
 
67
+ Pass one extension directory per command. If you maintain several extensions,
68
+ run the command separately for each one. Multiple directories, including those
69
+ expanded from a shell wildcard, are rejected before any checks run.
70
+
67
71
  ## In GitHub Actions
68
72
 
69
73
  ```yaml
@@ -70,7 +70,8 @@ for (const f of VALUED) {
70
70
  const i = args.indexOf(f);
71
71
  if (i >= 0 && args[i + 1] && !args[i + 1].startsWith("--")) consumed.add(i + 1);
72
72
  }
73
- const target = args.find((a, i) => !a.startsWith("--") && !consumed.has(i));
73
+ const targets = args.filter((a, i) => !a.startsWith("--") && !consumed.has(i));
74
+ const target = targets[0];
74
75
  const policyUrl = valueOf("--privacy-policy");
75
76
 
76
77
  if (flags.has("--help") || (!target && !flags.has("--policy"))) {
@@ -89,6 +90,7 @@ if (flags.has("--help") || (!target && !flags.has("--policy"))) {
89
90
  webstore-lint --policy list the policy data this build carries
90
91
 
91
92
  Use --permissions, --privacy-policy and --policy in separate commands.
93
+ Check one extension directory per command.
92
94
 
93
95
  The one-liner, no install needed:
94
96
  npx webstore-lint <extension-directory>
@@ -102,6 +104,14 @@ not affiliated with Google. A clean run is not a promise of approval.`);
102
104
  process.exit(flags.has("--help") ? 0 : 2);
103
105
  }
104
106
 
107
+ // A second directory (including a shell-expanded glob) must not be silently
108
+ // ignored: the first extension can pass while the unexamined one would fail.
109
+ if (targets.length > 1) {
110
+ console.error("Pass only one extension directory per command. No checks were run.");
111
+ console.error("Run webstore-lint separately for each extension directory.");
112
+ process.exit(2);
113
+ }
114
+
105
115
  // These branches produce different reports and return early. Combining them
106
116
  // used to exit successfully after silently skipping an explicitly requested
107
117
  // check, including a broken privacy URL. Reject before producing any report.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstore-lint",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Check an unpacked Chrome extension against the Chrome Web Store program policies before you submit it. Every finding cites Google's own notification ID and verbatim policy text. Covers the 1 August 2026 policy updates.",
5
5
  "keywords": [
6
6
  "chrome-extension",