prpm 2.1.38 → 2.1.39

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/README.md CHANGED
@@ -14,7 +14,7 @@ prpm install collections/nextjs-pro # Entire Next.js setup in one command
14
14
  ```
15
15
  Installs 20 packages: backend-architect, cloud-architect, database-architect, and more
16
16
 
17
- 7,5000+ cross platform packages
17
+ 7,500+ cross platform packages
18
18
 
19
19
  [Docs](https://docs.prpm.dev) | [Search Packages](https://prpm.dev/search) | [Search Collections](https://prpm.dev/search?tab=collections)
20
20
 
package/dist/index.js CHANGED
@@ -18015,6 +18015,7 @@ This could indicate:
18015
18015
  if (options.as && format && format !== pkg.format && effectiveSubtype !== "snippet" && !isMCPToEditor) {
18016
18016
  console.log(` \u{1F504} Converting from ${pkg.format} to ${format}...`);
18017
18017
  let sourceContent;
18018
+ let mainFileIndex = 0;
18018
18019
  if (extractedFiles.length === 1) {
18019
18020
  sourceContent = extractedFiles[0].content;
18020
18021
  } else {
@@ -18024,6 +18025,7 @@ This could indicate:
18024
18025
  `Could not identify main file for multi-file ${pkg.format} ${pkg.subtype} package. Expected files like SKILL.md, agent.md, or similar main entry points.`
18025
18026
  );
18026
18027
  }
18028
+ mainFileIndex = extractedFiles.indexOf(mainFile);
18027
18029
  console.log(` \u{1F4C4} Using main file: ${mainFile.name}`);
18028
18030
  sourceContent = mainFile.content;
18029
18031
  }
@@ -18175,10 +18177,16 @@ This could indicate:
18175
18177
  if (!convertedContent) {
18176
18178
  throw new CLIError("Conversion failed: No content generated");
18177
18179
  }
18178
- extractedFiles = [{
18179
- name: extractedFiles[0].name,
18180
- content: convertedContent
18181
- }];
18180
+ if (extractedFiles.length === 1) {
18181
+ extractedFiles = [{
18182
+ name: extractedFiles[0].name,
18183
+ content: convertedContent
18184
+ }];
18185
+ } else {
18186
+ extractedFiles = extractedFiles.map(
18187
+ (file, index) => index === mainFileIndex ? { ...file, content: convertedContent } : file
18188
+ );
18189
+ }
18182
18190
  console.log(` \u2713 Converted from ${pkg.format} to ${format}`);
18183
18191
  }
18184
18192
  const locationSupportedFormats = ["agents.md", "cursor"];
@@ -18600,7 +18608,7 @@ This could indicate:
18600
18608
  destDir = import_path15.default.join(locationOverride, relativeDestDir);
18601
18609
  console.log(` \u{1F4C1} Installing Cursor package to custom location: ${destDir}`);
18602
18610
  }
18603
- const isCursorConversion = effectiveFormat === "cursor" && pkg.format === "claude" && pkg.subtype === "skill";
18611
+ const isCursorConversion = effectiveFormat === "cursor" && pkg.format === "claude" && pkg.subtype === "skill" && !needsProgressiveDisclosureMulti;
18604
18612
  const nativeSubtypeConfig = getSubtypeConfig(effectiveFormat, effectiveSubtype);
18605
18613
  const usesNativePackageSubdirectory = !needsProgressiveDisclosureMulti && Boolean(nativeSubtypeConfig == null ? void 0 : nativeSubtypeConfig.usesPackageSubdirectory);
18606
18614
  const packageDir = effectiveFormat === "claude" && effectiveSubtype === "skill" ? destDir : isCursorConversion ? destDir : needsProgressiveDisclosureMulti ? destDir : usesNativePackageSubdirectory ? destDir : `${destDir}/${packageName}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prpm",
3
- "version": "2.1.38",
3
+ "version": "2.1.39",
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.39",
49
- "@pr-pm/registry-client": "^2.3.38",
50
- "@pr-pm/types": "^2.1.39",
48
+ "@pr-pm/converters": "^2.1.40",
49
+ "@pr-pm/registry-client": "^2.3.39",
50
+ "@pr-pm/types": "^2.1.40",
51
51
  "ajv": "^8.17.1",
52
52
  "ajv-formats": "^3.0.1",
53
53
  "chalk": "^5.6.2",