@bensandee/tooling 0.50.0 → 0.50.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/bin.mjs +18 -5
- package/package.json +3 -3
package/dist/bin.mjs
CHANGED
|
@@ -1585,7 +1585,7 @@ async function generatePackageJson(ctx) {
|
|
|
1585
1585
|
const devDeps = { ...ROOT_DEV_DEPS };
|
|
1586
1586
|
if (!isMonorepo) Object.assign(devDeps, PER_PACKAGE_DEV_DEPS);
|
|
1587
1587
|
devDeps["@bensandee/config"] = isWorkspacePackage(ctx, "@bensandee/config") ? "workspace:*" : "0.10.2";
|
|
1588
|
-
devDeps["@bensandee/tooling"] = isWorkspacePackage(ctx, "@bensandee/tooling") ? "workspace:*" : "0.50.
|
|
1588
|
+
devDeps["@bensandee/tooling"] = isWorkspacePackage(ctx, "@bensandee/tooling") ? "workspace:*" : "0.50.1";
|
|
1589
1589
|
if (ctx.config.useEslintPlugin) devDeps["@bensandee/eslint-plugin"] = isWorkspacePackage(ctx, "@bensandee/eslint-plugin") ? "workspace:*" : "0.12.0";
|
|
1590
1590
|
if (ctx.config.formatter === "oxfmt") devDeps["oxfmt"] = {
|
|
1591
1591
|
"@changesets/cli": "2.30.0",
|
|
@@ -3359,7 +3359,7 @@ async function runGenerators(ctx) {
|
|
|
3359
3359
|
function generateMigratePrompt(results, config, detected) {
|
|
3360
3360
|
const sections = [];
|
|
3361
3361
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
3362
|
-
sections.push(`# Migration Prompt\n\n_Generated by \`@bensandee/tooling@0.50.
|
|
3362
|
+
sections.push(`# Migration Prompt\n\n_Generated by \`@bensandee/tooling@0.50.1 repo:sync\` on ${timestamp}_\n`);
|
|
3363
3363
|
const changed = results.filter((r) => r.action === "created" || r.action === "updated" || r.action === "archived");
|
|
3364
3364
|
if (changed.length > 0) {
|
|
3365
3365
|
const items = changed.map((r) => {
|
|
@@ -4281,7 +4281,7 @@ async function runVersionMode(executor, config) {
|
|
|
4281
4281
|
};
|
|
4282
4282
|
const existingPr = await findOpenPr(executor, conn, BRANCH);
|
|
4283
4283
|
debug(config, `Existing open PR for ${BRANCH}: ${existingPr === null ? "(none)" : `#${String(existingPr)}`}`);
|
|
4284
|
-
if (existingPr === null) {
|
|
4284
|
+
if (existingPr === null) try {
|
|
4285
4285
|
await createPr(executor, conn, {
|
|
4286
4286
|
title,
|
|
4287
4287
|
head: BRANCH,
|
|
@@ -4293,6 +4293,19 @@ async function runVersionMode(executor, config) {
|
|
|
4293
4293
|
mode: "version",
|
|
4294
4294
|
pr: "created"
|
|
4295
4295
|
};
|
|
4296
|
+
} catch (error) {
|
|
4297
|
+
debug(config, `createPr failed, retrying as update: ${String(error)}`);
|
|
4298
|
+
const racePr = await findOpenPr(executor, conn, BRANCH);
|
|
4299
|
+
if (racePr === null) throw error;
|
|
4300
|
+
await updatePr(executor, conn, racePr, {
|
|
4301
|
+
title,
|
|
4302
|
+
body
|
|
4303
|
+
});
|
|
4304
|
+
log.info(`Updated version PR #${String(racePr)} (recovered from race condition)`);
|
|
4305
|
+
return {
|
|
4306
|
+
mode: "version",
|
|
4307
|
+
pr: "updated"
|
|
4308
|
+
};
|
|
4296
4309
|
}
|
|
4297
4310
|
await updatePr(executor, conn, existingPr, {
|
|
4298
4311
|
title,
|
|
@@ -6437,7 +6450,7 @@ const webhookSendCommand = defineCommand({
|
|
|
6437
6450
|
const main = defineCommand({
|
|
6438
6451
|
meta: {
|
|
6439
6452
|
name: "bst",
|
|
6440
|
-
version: "0.50.
|
|
6453
|
+
version: "0.50.1",
|
|
6441
6454
|
description: "Bootstrap and maintain standardized TypeScript project tooling"
|
|
6442
6455
|
},
|
|
6443
6456
|
subCommands: {
|
|
@@ -6458,7 +6471,7 @@ const main = defineCommand({
|
|
|
6458
6471
|
"webhook:send": webhookSendCommand
|
|
6459
6472
|
}
|
|
6460
6473
|
});
|
|
6461
|
-
console.log(`@bensandee/tooling v0.50.
|
|
6474
|
+
console.log(`@bensandee/tooling v0.50.1`);
|
|
6462
6475
|
async function run() {
|
|
6463
6476
|
await runMain(main);
|
|
6464
6477
|
process.exit(process.exitCode ?? 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bensandee/tooling",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.1",
|
|
4
4
|
"description": "CLI tool to bootstrap and maintain standardized TypeScript project tooling",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"prettier": "3.8.1",
|
|
55
55
|
"release-it": "19.2.4",
|
|
56
56
|
"tsdown": "0.21.7",
|
|
57
|
-
"@bensandee/
|
|
58
|
-
"@bensandee/
|
|
57
|
+
"@bensandee/claude-hooks": "0.7.0",
|
|
58
|
+
"@bensandee/config": "0.10.2"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsdown",
|