prpm 1.1.5 → 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.
- package/dist/index.js +36 -4
- 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
|
-
|
|
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") {
|
|
@@ -14414,11 +14429,27 @@ ${"=".repeat(60)}`);
|
|
|
14414
14429
|
break;
|
|
14415
14430
|
}
|
|
14416
14431
|
console.log("\u{1F680} Publishing to registry...");
|
|
14432
|
+
let publishAsAuthor;
|
|
14433
|
+
if ((userInfo == null ? void 0 : userInfo.is_admin) && manifest.author) {
|
|
14434
|
+
publishAsAuthor = typeof manifest.author === "string" ? manifest.author : manifest.author.name;
|
|
14435
|
+
console.log(` \u{1F510} Admin override: Publishing as author "${publishAsAuthor}"`);
|
|
14436
|
+
}
|
|
14417
14437
|
if (selectedOrgId) {
|
|
14418
14438
|
console.log(` Publishing as organization: ${(_b = userInfo.organizations.find((org) => org.id === selectedOrgId)) == null ? void 0 : _b.name}`);
|
|
14419
14439
|
console.log(` Organization ID: ${selectedOrgId}`);
|
|
14420
14440
|
}
|
|
14421
|
-
const
|
|
14441
|
+
const publishOptions = {};
|
|
14442
|
+
if (selectedOrgId) {
|
|
14443
|
+
publishOptions.orgId = selectedOrgId;
|
|
14444
|
+
}
|
|
14445
|
+
if (publishAsAuthor) {
|
|
14446
|
+
publishOptions.publishAsAuthor = publishAsAuthor;
|
|
14447
|
+
}
|
|
14448
|
+
const result = await client.publish(
|
|
14449
|
+
manifest,
|
|
14450
|
+
tarball,
|
|
14451
|
+
Object.keys(publishOptions).length > 0 ? publishOptions : void 0
|
|
14452
|
+
);
|
|
14422
14453
|
let webappUrl;
|
|
14423
14454
|
const registryUrl = config.registryUrl || "https://registry.prpm.dev";
|
|
14424
14455
|
if (registryUrl.includes("localhost") || registryUrl.includes("127.0.0.1")) {
|
|
@@ -14477,7 +14508,8 @@ ${"=".repeat(60)}`);
|
|
|
14477
14508
|
}
|
|
14478
14509
|
}
|
|
14479
14510
|
}
|
|
14480
|
-
|
|
14511
|
+
const shouldPublishCollections = !options.package || options.collection;
|
|
14512
|
+
if (collections.length > 0 && shouldPublishCollections) {
|
|
14481
14513
|
let filteredCollections = collections;
|
|
14482
14514
|
if (options.collection) {
|
|
14483
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.
|
|
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.
|
|
49
|
-
"@pr-pm/registry-client": "^2.1.
|
|
50
|
-
"@pr-pm/types": "^1.1.
|
|
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",
|