prpm 1.1.6 → 1.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.
Files changed (2) hide show
  1. package/dist/index.js +19 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -13872,12 +13872,27 @@ async function validatePackageFiles(manifest) {
13872
13872
  if (skipFiles.includes(filePath)) {
13873
13873
  return false;
13874
13874
  }
13875
+ const skipDirs = ["examples/", "example/", "tests/", "__tests__/", "docs/", "doc/"];
13876
+ if (skipDirs.some((dir) => filePath.includes(dir))) {
13877
+ return false;
13878
+ }
13875
13879
  if (formatType === "cursor") {
13876
13880
  return filePath.includes(".cursorrules") || filePath.endsWith(".mdc");
13877
13881
  } else if (formatType === "claude") {
13878
- return filePath.endsWith("SKILL.md") || filePath.endsWith(".clinerules") || filePath.includes(".claude/");
13882
+ if (manifest.subtype === "skill") {
13883
+ return filePath.endsWith("SKILL.md");
13884
+ }
13885
+ if (filePath.endsWith(".json")) {
13886
+ return false;
13887
+ }
13888
+ if (manifest.subtype === "agent") {
13889
+ return filePath.includes(".claude/agents/") && filePath.endsWith(".md");
13890
+ } else if (manifest.subtype === "slash-command") {
13891
+ return filePath.includes(".claude/commands/") && filePath.endsWith(".md");
13892
+ }
13893
+ return filePath.endsWith(".md") && !filePath.endsWith(".json");
13879
13894
  } else if (formatType === "continue") {
13880
- return filePath.includes(".continue/");
13895
+ return filePath.includes(".continue/") && filePath.endsWith(".json");
13881
13896
  } else if (formatType === "windsurf") {
13882
13897
  return filePath.includes(".windsurf/rules");
13883
13898
  } else if (formatType === "agents-md") {
@@ -14493,7 +14508,8 @@ ${"=".repeat(60)}`);
14493
14508
  }
14494
14509
  }
14495
14510
  }
14496
- if (collections.length > 0) {
14511
+ const shouldPublishCollections = !options.package || options.collection;
14512
+ if (collections.length > 0 && shouldPublishCollections) {
14497
14513
  let filteredCollections = collections;
14498
14514
  if (options.collection) {
14499
14515
  filteredCollections = collections.filter((c) => c.id === options.collection);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prpm",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
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": "^1.1.6",
49
- "@pr-pm/registry-client": "^2.1.6",
50
- "@pr-pm/types": "^1.1.6",
48
+ "@pr-pm/converters": "^1.1.7",
49
+ "@pr-pm/registry-client": "^2.1.7",
50
+ "@pr-pm/types": "^1.1.7",
51
51
  "ajv": "^8.17.1",
52
52
  "ajv-formats": "^3.0.1",
53
53
  "commander": "^11.1.0",