prpm 0.0.17 ā 0.0.19
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/commands/publish.js +9 -34
- package/package.json +3 -3
package/dist/commands/publish.js
CHANGED
|
@@ -65,23 +65,7 @@ async function findAndLoadManifests() {
|
|
|
65
65
|
let prpmJsonError = null;
|
|
66
66
|
try {
|
|
67
67
|
const content = await (0, promises_1.readFile)(prpmJsonPath, 'utf-8');
|
|
68
|
-
|
|
69
|
-
// Try to parse JSON
|
|
70
|
-
let manifest;
|
|
71
|
-
try {
|
|
72
|
-
manifest = JSON.parse(content);
|
|
73
|
-
}
|
|
74
|
-
catch (parseError) {
|
|
75
|
-
// JSON parse error - provide specific error message
|
|
76
|
-
const error = parseError;
|
|
77
|
-
throw new Error(`Invalid JSON in prpm.json:\n\n` +
|
|
78
|
-
`${error.message}\n\n` +
|
|
79
|
-
`Please check your prpm.json file for syntax errors:\n` +
|
|
80
|
-
` - Missing or extra commas\n` +
|
|
81
|
-
` - Unclosed quotes or brackets\n` +
|
|
82
|
-
` - Invalid JSON syntax\n\n` +
|
|
83
|
-
`You can validate your JSON at https://jsonlint.com/`);
|
|
84
|
-
}
|
|
68
|
+
const manifest = JSON.parse(content);
|
|
85
69
|
// Check if this is a multi-package manifest
|
|
86
70
|
if ('packages' in manifest && Array.isArray(manifest.packages)) {
|
|
87
71
|
const multiManifest = manifest;
|
|
@@ -94,29 +78,20 @@ async function findAndLoadManifests() {
|
|
|
94
78
|
description: pkg.description,
|
|
95
79
|
format: pkg.format,
|
|
96
80
|
files: pkg.files,
|
|
97
|
-
author: pkg.author
|
|
98
|
-
license: pkg.license
|
|
99
|
-
repository: pkg.repository
|
|
100
|
-
homepage: pkg.homepage
|
|
101
|
-
documentation: pkg.documentation
|
|
102
|
-
organization: pkg.organization
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
keywords: pkg.keywords !== undefined ? pkg.keywords : multiManifest.keywords,
|
|
81
|
+
author: pkg.author ?? multiManifest.author,
|
|
82
|
+
license: pkg.license ?? multiManifest.license,
|
|
83
|
+
repository: pkg.repository ?? multiManifest.repository,
|
|
84
|
+
homepage: pkg.homepage ?? multiManifest.homepage,
|
|
85
|
+
documentation: pkg.documentation ?? multiManifest.documentation,
|
|
86
|
+
organization: pkg.organization ?? multiManifest.organization,
|
|
87
|
+
tags: pkg.tags ?? multiManifest.tags,
|
|
88
|
+
keywords: pkg.keywords ?? multiManifest.keywords,
|
|
106
89
|
subtype: pkg.subtype,
|
|
107
90
|
dependencies: pkg.dependencies,
|
|
108
91
|
peerDependencies: pkg.peerDependencies,
|
|
109
92
|
engines: pkg.engines,
|
|
110
93
|
main: pkg.main,
|
|
111
94
|
};
|
|
112
|
-
// Debug: Log inheritance only if DEBUG env var is set
|
|
113
|
-
if (process.env.DEBUG) {
|
|
114
|
-
console.log(`\nš Package ${pkg.name} inheritance:`);
|
|
115
|
-
console.log(` - Package-level private: ${pkg.private}`);
|
|
116
|
-
console.log(` - Top-level private: ${multiManifest.private}`);
|
|
117
|
-
console.log(` - Inherited private: ${packageWithDefaults.private}`);
|
|
118
|
-
console.log('');
|
|
119
|
-
}
|
|
120
95
|
return validateManifest(packageWithDefaults);
|
|
121
96
|
});
|
|
122
97
|
return { manifests: validatedManifests, source: 'prpm.json (multi-package)' };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Prompt Package Manager CLI - Install and manage prompt-based files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@octokit/rest": "^22.0.0",
|
|
48
|
-
"@pr-pm/registry-client": "^1.2.
|
|
49
|
-
"@pr-pm/types": "^0.1.
|
|
48
|
+
"@pr-pm/registry-client": "^1.2.13",
|
|
49
|
+
"@pr-pm/types": "^0.1.13",
|
|
50
50
|
"ajv": "^8.17.1",
|
|
51
51
|
"ajv-formats": "^3.0.1",
|
|
52
52
|
"commander": "^11.1.0",
|