superslate 0.2.0 → 0.2.1
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/dist/cli.js +14 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1364,6 +1364,14 @@ into this repository.
|
|
|
1364
1364
|
}
|
|
1365
1365
|
return rewritten;
|
|
1366
1366
|
}
|
|
1367
|
+
var SELLER_ONLY_ROOT_SCRIPTS = ["release:distribute"];
|
|
1368
|
+
function stripSellerOnlyRootScripts(content) {
|
|
1369
|
+
const manifest = JSON.parse(content);
|
|
1370
|
+
for (const script of SELLER_ONLY_ROOT_SCRIPTS)
|
|
1371
|
+
delete manifest.scripts?.[script];
|
|
1372
|
+
return `${JSON.stringify(manifest, null, 2)}
|
|
1373
|
+
`;
|
|
1374
|
+
}
|
|
1367
1375
|
function rewriteBuyerClaudeInstructions(content) {
|
|
1368
1376
|
if (!/internal\/|landing\/|studio-owned/i.test(content))
|
|
1369
1377
|
return content;
|
|
@@ -1426,6 +1434,10 @@ function isTemplatePathExcluded(relativePath) {
|
|
|
1426
1434
|
return true;
|
|
1427
1435
|
if (normalized === "internal" || normalized.startsWith("internal/"))
|
|
1428
1436
|
return true;
|
|
1437
|
+
if (normalized === ".github/workflows/publish-npm.yml")
|
|
1438
|
+
return true;
|
|
1439
|
+
if (normalized === ".github/workflows/internal-commercial.yml")
|
|
1440
|
+
return true;
|
|
1429
1441
|
if (normalized === "apps/worker" || normalized.startsWith("apps/worker/"))
|
|
1430
1442
|
return true;
|
|
1431
1443
|
if (parts.includes("dist") || parts.includes("out"))
|
|
@@ -1635,6 +1647,8 @@ async function neutralizeAgentInstructions(target) {
|
|
|
1635
1647
|
const claudePath = join6(target, "CLAUDE.md");
|
|
1636
1648
|
await writeFile4(agentPath, rewriteBuyerAgentInstructions(await readFile5(agentPath, "utf8")));
|
|
1637
1649
|
await writeFile4(claudePath, rewriteBuyerClaudeInstructions(await readFile5(claudePath, "utf8")));
|
|
1650
|
+
const rootPackagePath = join6(target, "package.json");
|
|
1651
|
+
await writeFile4(rootPackagePath, stripSellerOnlyRootScripts(await readFile5(rootPackagePath, "utf8")));
|
|
1638
1652
|
}
|
|
1639
1653
|
async function neutralizeSourceCli(target, scope, brandName) {
|
|
1640
1654
|
if (String(CLI_NAME2) === BUYER_CLI_NAME && String(CLI_PACKAGE_NAME) === BUYER_CLI_PACKAGE_NAME)
|