pubm 0.0.0-alpha.10 → 0.0.0-alpha.13

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/bin/cli.js CHANGED
@@ -1183,17 +1183,12 @@ More information: ${link("npm naming rules", "https://github.com/npm/validate-np
1183
1183
  }
1184
1184
  };
1185
1185
  var jsrPublishTasks = {
1186
- title: "jsr",
1187
- task: (_, parentTask) => parentTask.newListr([
1188
- {
1189
- title: "Running jsr publish",
1190
- task: async (_2, task) => {
1191
- const jsr = await jsrRegistry();
1192
- task.output = "Publishing on jsr...";
1193
- await jsr.publish();
1194
- }
1195
- }
1196
- ])
1186
+ title: "Running jsr publish",
1187
+ task: async (_, task) => {
1188
+ const jsr = await jsrRegistry();
1189
+ task.output = "Publishing on jsr...";
1190
+ await jsr.publish();
1191
+ }
1197
1192
  };
1198
1193
 
1199
1194
  // src/tasks/npm.ts
@@ -1227,32 +1222,27 @@ More information: ${link("npm naming rules", "https://github.com/npm/validate-np
1227
1222
  }
1228
1223
  };
1229
1224
  var npmPublishTasks = {
1230
- title: "npm",
1231
- task: (_, parentTask) => parentTask.newListr([
1232
- {
1233
- title: "Running npm publish",
1234
- task: async (_2, task) => {
1235
- const npm = await npmRegistry();
1236
- task.output = "Publishing on npm...";
1237
- let result = await npm.publish();
1225
+ title: "Running npm publish",
1226
+ task: async (_, task) => {
1227
+ const npm = await npmRegistry();
1228
+ task.output = "Publishing on npm...";
1229
+ let result = await npm.publish();
1230
+ if (!result) {
1231
+ task.title = "Running npm publish (OTP code needed)";
1232
+ while (!result) {
1233
+ result = await npm.publish(
1234
+ await task.prompt(ListrEnquirerPromptAdapter2).run({
1235
+ type: "password",
1236
+ message: "npm OTP code"
1237
+ })
1238
+ );
1238
1239
  if (!result) {
1239
- task.title = "Running npm publish (OTP code needed)";
1240
- while (!result) {
1241
- result = await npm.publish(
1242
- await task.prompt(ListrEnquirerPromptAdapter2).run({
1243
- type: "password",
1244
- message: "npm OTP code"
1245
- })
1246
- );
1247
- if (!result) {
1248
- task.output = "2FA failed";
1249
- }
1250
- }
1251
- task.title = "Running npm publish (2FA passed)";
1240
+ task.output = "2FA failed";
1252
1241
  }
1253
1242
  }
1243
+ task.title = "Running npm publish (2FA passed)";
1254
1244
  }
1255
- ])
1245
+ }
1256
1246
  };
1257
1247
 
1258
1248
  // src/tasks/prerequisites-check.ts
@@ -1677,7 +1667,7 @@ async function run(options2) {
1677
1667
  title: "Pushing tags to GitHub",
1678
1668
  task: async (_, task) => {
1679
1669
  const git2 = new Git();
1680
- const result = await git2.push();
1670
+ const result = await git2.push("--follow-tags");
1681
1671
  if (!result) {
1682
1672
  task.title += " (Only tags were pushed because the release branch is protected. Please push the branch manually.)";
1683
1673
  await git2.push("--tags");
package/dist/index.cjs CHANGED
@@ -1213,17 +1213,12 @@ More information: ${link("npm naming rules", "https://github.com/npm/validate-np
1213
1213
  }
1214
1214
  };
1215
1215
  var jsrPublishTasks = {
1216
- title: "jsr",
1217
- task: (_, parentTask) => parentTask.newListr([
1218
- {
1219
- title: "Running jsr publish",
1220
- task: async (_2, task) => {
1221
- const jsr = await jsrRegistry();
1222
- task.output = "Publishing on jsr...";
1223
- await jsr.publish();
1224
- }
1225
- }
1226
- ])
1216
+ title: "Running jsr publish",
1217
+ task: async (_, task) => {
1218
+ const jsr = await jsrRegistry();
1219
+ task.output = "Publishing on jsr...";
1220
+ await jsr.publish();
1221
+ }
1227
1222
  };
1228
1223
 
1229
1224
  // src/tasks/npm.ts
@@ -1257,32 +1252,27 @@ More information: ${link("npm naming rules", "https://github.com/npm/validate-np
1257
1252
  }
1258
1253
  };
1259
1254
  var npmPublishTasks = {
1260
- title: "npm",
1261
- task: (_, parentTask) => parentTask.newListr([
1262
- {
1263
- title: "Running npm publish",
1264
- task: async (_2, task) => {
1265
- const npm = await npmRegistry();
1266
- task.output = "Publishing on npm...";
1267
- let result = await npm.publish();
1255
+ title: "Running npm publish",
1256
+ task: async (_, task) => {
1257
+ const npm = await npmRegistry();
1258
+ task.output = "Publishing on npm...";
1259
+ let result = await npm.publish();
1260
+ if (!result) {
1261
+ task.title = "Running npm publish (OTP code needed)";
1262
+ while (!result) {
1263
+ result = await npm.publish(
1264
+ await task.prompt(import_prompt_adapter_enquirer2.ListrEnquirerPromptAdapter).run({
1265
+ type: "password",
1266
+ message: "npm OTP code"
1267
+ })
1268
+ );
1268
1269
  if (!result) {
1269
- task.title = "Running npm publish (OTP code needed)";
1270
- while (!result) {
1271
- result = await npm.publish(
1272
- await task.prompt(import_prompt_adapter_enquirer2.ListrEnquirerPromptAdapter).run({
1273
- type: "password",
1274
- message: "npm OTP code"
1275
- })
1276
- );
1277
- if (!result) {
1278
- task.output = "2FA failed";
1279
- }
1280
- }
1281
- task.title = "Running npm publish (2FA passed)";
1270
+ task.output = "2FA failed";
1282
1271
  }
1283
1272
  }
1273
+ task.title = "Running npm publish (2FA passed)";
1284
1274
  }
1285
- ])
1275
+ }
1286
1276
  };
1287
1277
 
1288
1278
  // src/tasks/prerequisites-check.ts
@@ -1708,7 +1698,7 @@ async function run(options) {
1708
1698
  title: "Pushing tags to GitHub",
1709
1699
  task: async (_, task) => {
1710
1700
  const git2 = new Git();
1711
- const result = await git2.push();
1701
+ const result = await git2.push("--follow-tags");
1712
1702
  if (!result) {
1713
1703
  task.title += " (Only tags were pushed because the release branch is protected. Please push the branch manually.)";
1714
1704
  await git2.push("--tags");
package/dist/index.js CHANGED
@@ -1177,17 +1177,12 @@ More information: ${link("npm naming rules", "https://github.com/npm/validate-np
1177
1177
  }
1178
1178
  };
1179
1179
  var jsrPublishTasks = {
1180
- title: "jsr",
1181
- task: (_, parentTask) => parentTask.newListr([
1182
- {
1183
- title: "Running jsr publish",
1184
- task: async (_2, task) => {
1185
- const jsr = await jsrRegistry();
1186
- task.output = "Publishing on jsr...";
1187
- await jsr.publish();
1188
- }
1189
- }
1190
- ])
1180
+ title: "Running jsr publish",
1181
+ task: async (_, task) => {
1182
+ const jsr = await jsrRegistry();
1183
+ task.output = "Publishing on jsr...";
1184
+ await jsr.publish();
1185
+ }
1191
1186
  };
1192
1187
 
1193
1188
  // src/tasks/npm.ts
@@ -1221,32 +1216,27 @@ More information: ${link("npm naming rules", "https://github.com/npm/validate-np
1221
1216
  }
1222
1217
  };
1223
1218
  var npmPublishTasks = {
1224
- title: "npm",
1225
- task: (_, parentTask) => parentTask.newListr([
1226
- {
1227
- title: "Running npm publish",
1228
- task: async (_2, task) => {
1229
- const npm = await npmRegistry();
1230
- task.output = "Publishing on npm...";
1231
- let result = await npm.publish();
1219
+ title: "Running npm publish",
1220
+ task: async (_, task) => {
1221
+ const npm = await npmRegistry();
1222
+ task.output = "Publishing on npm...";
1223
+ let result = await npm.publish();
1224
+ if (!result) {
1225
+ task.title = "Running npm publish (OTP code needed)";
1226
+ while (!result) {
1227
+ result = await npm.publish(
1228
+ await task.prompt(ListrEnquirerPromptAdapter2).run({
1229
+ type: "password",
1230
+ message: "npm OTP code"
1231
+ })
1232
+ );
1232
1233
  if (!result) {
1233
- task.title = "Running npm publish (OTP code needed)";
1234
- while (!result) {
1235
- result = await npm.publish(
1236
- await task.prompt(ListrEnquirerPromptAdapter2).run({
1237
- type: "password",
1238
- message: "npm OTP code"
1239
- })
1240
- );
1241
- if (!result) {
1242
- task.output = "2FA failed";
1243
- }
1244
- }
1245
- task.title = "Running npm publish (2FA passed)";
1234
+ task.output = "2FA failed";
1246
1235
  }
1247
1236
  }
1237
+ task.title = "Running npm publish (2FA passed)";
1248
1238
  }
1249
- ])
1239
+ }
1250
1240
  };
1251
1241
 
1252
1242
  // src/tasks/prerequisites-check.ts
@@ -1671,7 +1661,7 @@ async function run(options) {
1671
1661
  title: "Pushing tags to GitHub",
1672
1662
  task: async (_, task) => {
1673
1663
  const git2 = new Git();
1674
- const result = await git2.push();
1664
+ const result = await git2.push("--follow-tags");
1675
1665
  if (!result) {
1676
1666
  task.title += " (Only tags were pushed because the release branch is protected. Please push the branch manually.)";
1677
1667
  await git2.push("--tags");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pubm",
3
- "version": "0.0.0-alpha.10",
3
+ "version": "0.0.0-alpha.13",
4
4
  "engines": {
5
5
  "node": ">=18",
6
6
  "git": ">=2.11.0"