pubm 0.1.6 → 0.1.7
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 +19 -7
- package/dist/index.cjs +19 -7
- package/dist/index.js +19 -7
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -6976,10 +6976,8 @@ var requiredConditionsCheckTask = (options) => createListr({
|
|
|
6976
6976
|
task: async (_2, parentTask2) => parentTask2.newListr(
|
|
6977
6977
|
[
|
|
6978
6978
|
{
|
|
6979
|
-
enabled: (ctx) => collectRegistries(ctx).
|
|
6980
|
-
|
|
6981
|
-
),
|
|
6982
|
-
title: "Verifying if npm are installed",
|
|
6979
|
+
enabled: (ctx) => collectRegistries(ctx).includes("npm"),
|
|
6980
|
+
title: "Verifying if npm is installed",
|
|
6983
6981
|
task: async () => {
|
|
6984
6982
|
const npm = await npmRegistry();
|
|
6985
6983
|
if (!await npm.isInstalled()) {
|
|
@@ -7274,12 +7272,26 @@ ${repositoryUrl}/compare/${lastRev}...${latestTag}`;
|
|
|
7274
7272
|
}
|
|
7275
7273
|
]
|
|
7276
7274
|
).run(ctx);
|
|
7277
|
-
const
|
|
7278
|
-
const
|
|
7275
|
+
const registries = collectRegistries(ctx);
|
|
7276
|
+
const parts = [];
|
|
7277
|
+
if (registries.includes("npm")) {
|
|
7278
|
+
const npmPackageName = (await getPackageJson()).name;
|
|
7279
|
+
parts.push(`${color.bold(npmPackageName)} on ${color.green("npm")}`);
|
|
7280
|
+
}
|
|
7281
|
+
if (registries.includes("jsr")) {
|
|
7282
|
+
const jsrPackageName = (await getJsrJson()).name;
|
|
7283
|
+
parts.push(`${color.bold(jsrPackageName)} on ${color.yellow("jsr")}`);
|
|
7284
|
+
}
|
|
7285
|
+
if (registries.includes("crates")) {
|
|
7286
|
+
const crateNames = ctx.packages?.filter((pkg) => pkg.registries.includes("crates")).map((pkg) => pkg.path) ?? ["crate"];
|
|
7287
|
+
for (const name of crateNames) {
|
|
7288
|
+
parts.push(`${color.bold(name)} on ${color.red("crates.io")}`);
|
|
7289
|
+
}
|
|
7290
|
+
}
|
|
7279
7291
|
console.log(
|
|
7280
7292
|
`
|
|
7281
7293
|
|
|
7282
|
-
\u{1F680} Successfully published ${
|
|
7294
|
+
\u{1F680} Successfully published ${parts.join(", ")} ${color.blueBright(`v${ctx.version}`)} \u{1F680}
|
|
7283
7295
|
`
|
|
7284
7296
|
);
|
|
7285
7297
|
} catch (e2) {
|
package/dist/index.cjs
CHANGED
|
@@ -6544,10 +6544,8 @@ var requiredConditionsCheckTask = (options) => createListr({
|
|
|
6544
6544
|
task: async (_2, parentTask2) => parentTask2.newListr(
|
|
6545
6545
|
[
|
|
6546
6546
|
{
|
|
6547
|
-
enabled: (ctx) => collectRegistries(ctx).
|
|
6548
|
-
|
|
6549
|
-
),
|
|
6550
|
-
title: "Verifying if npm are installed",
|
|
6547
|
+
enabled: (ctx) => collectRegistries(ctx).includes("npm"),
|
|
6548
|
+
title: "Verifying if npm is installed",
|
|
6551
6549
|
task: async () => {
|
|
6552
6550
|
const npm = await npmRegistry();
|
|
6553
6551
|
if (!await npm.isInstalled()) {
|
|
@@ -6842,12 +6840,26 @@ ${repositoryUrl}/compare/${lastRev}...${latestTag}`;
|
|
|
6842
6840
|
}
|
|
6843
6841
|
]
|
|
6844
6842
|
).run(ctx);
|
|
6845
|
-
const
|
|
6846
|
-
const
|
|
6843
|
+
const registries = collectRegistries(ctx);
|
|
6844
|
+
const parts = [];
|
|
6845
|
+
if (registries.includes("npm")) {
|
|
6846
|
+
const npmPackageName = (await getPackageJson()).name;
|
|
6847
|
+
parts.push(`${color.bold(npmPackageName)} on ${color.green("npm")}`);
|
|
6848
|
+
}
|
|
6849
|
+
if (registries.includes("jsr")) {
|
|
6850
|
+
const jsrPackageName = (await getJsrJson()).name;
|
|
6851
|
+
parts.push(`${color.bold(jsrPackageName)} on ${color.yellow("jsr")}`);
|
|
6852
|
+
}
|
|
6853
|
+
if (registries.includes("crates")) {
|
|
6854
|
+
const crateNames = ctx.packages?.filter((pkg) => pkg.registries.includes("crates")).map((pkg) => pkg.path) ?? ["crate"];
|
|
6855
|
+
for (const name of crateNames) {
|
|
6856
|
+
parts.push(`${color.bold(name)} on ${color.red("crates.io")}`);
|
|
6857
|
+
}
|
|
6858
|
+
}
|
|
6847
6859
|
console.log(
|
|
6848
6860
|
`
|
|
6849
6861
|
|
|
6850
|
-
\u{1F680} Successfully published ${
|
|
6862
|
+
\u{1F680} Successfully published ${parts.join(", ")} ${color.blueBright(`v${ctx.version}`)} \u{1F680}
|
|
6851
6863
|
`
|
|
6852
6864
|
);
|
|
6853
6865
|
} catch (e2) {
|
package/dist/index.js
CHANGED
|
@@ -6508,10 +6508,8 @@ var requiredConditionsCheckTask = (options) => createListr({
|
|
|
6508
6508
|
task: async (_2, parentTask2) => parentTask2.newListr(
|
|
6509
6509
|
[
|
|
6510
6510
|
{
|
|
6511
|
-
enabled: (ctx) => collectRegistries(ctx).
|
|
6512
|
-
|
|
6513
|
-
),
|
|
6514
|
-
title: "Verifying if npm are installed",
|
|
6511
|
+
enabled: (ctx) => collectRegistries(ctx).includes("npm"),
|
|
6512
|
+
title: "Verifying if npm is installed",
|
|
6515
6513
|
task: async () => {
|
|
6516
6514
|
const npm = await npmRegistry();
|
|
6517
6515
|
if (!await npm.isInstalled()) {
|
|
@@ -6806,12 +6804,26 @@ ${repositoryUrl}/compare/${lastRev}...${latestTag}`;
|
|
|
6806
6804
|
}
|
|
6807
6805
|
]
|
|
6808
6806
|
).run(ctx);
|
|
6809
|
-
const
|
|
6810
|
-
const
|
|
6807
|
+
const registries = collectRegistries(ctx);
|
|
6808
|
+
const parts = [];
|
|
6809
|
+
if (registries.includes("npm")) {
|
|
6810
|
+
const npmPackageName = (await getPackageJson()).name;
|
|
6811
|
+
parts.push(`${color.bold(npmPackageName)} on ${color.green("npm")}`);
|
|
6812
|
+
}
|
|
6813
|
+
if (registries.includes("jsr")) {
|
|
6814
|
+
const jsrPackageName = (await getJsrJson()).name;
|
|
6815
|
+
parts.push(`${color.bold(jsrPackageName)} on ${color.yellow("jsr")}`);
|
|
6816
|
+
}
|
|
6817
|
+
if (registries.includes("crates")) {
|
|
6818
|
+
const crateNames = ctx.packages?.filter((pkg) => pkg.registries.includes("crates")).map((pkg) => pkg.path) ?? ["crate"];
|
|
6819
|
+
for (const name of crateNames) {
|
|
6820
|
+
parts.push(`${color.bold(name)} on ${color.red("crates.io")}`);
|
|
6821
|
+
}
|
|
6822
|
+
}
|
|
6811
6823
|
console.log(
|
|
6812
6824
|
`
|
|
6813
6825
|
|
|
6814
|
-
\u{1F680} Successfully published ${
|
|
6826
|
+
\u{1F680} Successfully published ${parts.join(", ")} ${color.blueBright(`v${ctx.version}`)} \u{1F680}
|
|
6815
6827
|
`
|
|
6816
6828
|
);
|
|
6817
6829
|
} catch (e2) {
|