mnfst-publish 0.1.14 → 0.1.15
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 +2 -2
- package/manifest.publish.mjs +10 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,5 +15,5 @@ project, zips it gitignore-aware, uploads it, and prints the live URL.
|
|
|
15
15
|
Flags: `--staging` / `--production` (default), `--no-render`, `--promote`,
|
|
16
16
|
`--source render|spa` (auto-detected), `--key <key>`, `--mcp <url>`.
|
|
17
17
|
|
|
18
|
-
Zero dependencies, cross-platform (pure-Node zip). `.env`, `.env.*`,
|
|
19
|
-
|
|
18
|
+
Zero dependencies, cross-platform (pure-Node zip). `.env`, `.env.*`, `.claude/`,
|
|
19
|
+
keys and credential files are never uploaded.
|
package/manifest.publish.mjs
CHANGED
|
@@ -191,15 +191,20 @@ async function callTool(url, key, name, args) {
|
|
|
191
191
|
|
|
192
192
|
// Never ship local config or secrets — matched at ANY depth (by path segment /
|
|
193
193
|
// basename), not just the project root. A nested `api/.env` or `sub/.claude/…`
|
|
194
|
-
// must be excluded too.
|
|
194
|
+
// must be excluded too. Mirrors the server's ingest drop list.
|
|
195
195
|
const EXCLUDED_DIRS = new Set(['.git', 'node_modules', '.claude']);
|
|
196
|
+
const SECRET_DIRS = new Set(['.ssh', '.aws', '.wrangler']);
|
|
197
|
+
const SECRET_FILES = new Set([
|
|
198
|
+
'.npmrc', '.yarnrc', '.yarnrc.yml', '.pypirc', '.netrc', '_netrc', '.git-credentials', '.htpasswd',
|
|
199
|
+
'.dev.vars', 'id_rsa', 'id_dsa', 'id_ecdsa', 'id_ed25519', '.ds_store',
|
|
200
|
+
]);
|
|
196
201
|
export function isExcludedPath(rel) {
|
|
197
|
-
const parts = rel.split('/');
|
|
198
|
-
if (parts.some((p) => EXCLUDED_DIRS.has(p))) return true;
|
|
202
|
+
const parts = rel.toLowerCase().split('/');
|
|
203
|
+
if (parts.some((p) => EXCLUDED_DIRS.has(p) || SECRET_DIRS.has(p))) return true;
|
|
199
204
|
const base = parts[parts.length - 1];
|
|
200
205
|
if (base === '.env' || base.startsWith('.env.')) return true; // .env, .env.local, .env.prod …
|
|
201
|
-
if (base
|
|
202
|
-
if (/\.(pem|key|p12|pfx)$/i.test(base)) return true;
|
|
206
|
+
if (SECRET_FILES.has(base) || base.startsWith('.dev.vars.') || base.startsWith('env.local.')) return true;
|
|
207
|
+
if (/\.(pem|key|p12|pfx|jks|keystore)$/i.test(base)) return true;
|
|
203
208
|
return false;
|
|
204
209
|
}
|
|
205
210
|
|