prpm 2.1.7 → 2.1.8
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/index.js +5 -6
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -22769,7 +22769,7 @@ async function handleUpgrade(packageName, options = {}) {
|
|
|
22769
22769
|
}
|
|
22770
22770
|
console.log("\u{1F680} Checking for upgrades...\n");
|
|
22771
22771
|
for (const pkg of packagesToUpgrade) {
|
|
22772
|
-
const { packageId, format:
|
|
22772
|
+
const { packageId, format: keyFormat } = parseLockfileKey(pkg.id);
|
|
22773
22773
|
try {
|
|
22774
22774
|
const registryPkg = await client.getPackage(packageId);
|
|
22775
22775
|
if (!registryPkg.latest_version || !pkg.version) {
|
|
@@ -22794,11 +22794,10 @@ ${emoji} Upgrading ${packageId}: ${currentVersion} \u2192 ${latestVersion} (${up
|
|
|
22794
22794
|
` \u26A0\uFE0F This is a major version upgrade and may contain breaking changes`
|
|
22795
22795
|
);
|
|
22796
22796
|
}
|
|
22797
|
-
const
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
}
|
|
22801
|
-
await handleInstall(`${packageId}@${latestVersion}`, installOptions);
|
|
22797
|
+
const installedFormat = pkg.format || keyFormat;
|
|
22798
|
+
await handleInstall(`${packageId}@${latestVersion}`, {
|
|
22799
|
+
as: installedFormat
|
|
22800
|
+
});
|
|
22802
22801
|
upgradedCount++;
|
|
22803
22802
|
} catch (err) {
|
|
22804
22803
|
console.error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "Prompt Package Manager CLI - Install and manage prompt-based files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@octokit/rest": "^22.0.0",
|
|
48
|
-
"@pr-pm/converters": "^2.1.
|
|
49
|
-
"@pr-pm/registry-client": "^2.3.
|
|
50
|
-
"@pr-pm/types": "^2.1.
|
|
48
|
+
"@pr-pm/converters": "^2.1.9",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.8",
|
|
50
|
+
"@pr-pm/types": "^2.1.9",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"commander": "^11.1.0",
|