@vibecuting/component-project-helper 0.1.18 → 0.1.20
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/package.json
CHANGED
|
@@ -85,6 +85,10 @@ function sanitizeFileName(name: string): string {
|
|
|
85
85
|
return name.replace(/[^a-zA-Z0-9._-]+/g, '-')
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
function toRelativePath(projectRoot: string, absolutePath: string): string {
|
|
89
|
+
return path.relative(projectRoot, absolutePath) || '.'
|
|
90
|
+
}
|
|
91
|
+
|
|
88
92
|
function getMetaFilePath(projectRoot: string): string {
|
|
89
93
|
return path.join(projectRoot, '.vibecuting', 'video-resource-meta.generated.ts')
|
|
90
94
|
}
|
|
@@ -238,11 +242,11 @@ export async function updateComponentSkills(
|
|
|
238
242
|
|
|
239
243
|
const manifestContents = JSON.stringify(
|
|
240
244
|
{
|
|
241
|
-
projectRoot,
|
|
242
|
-
docsDir,
|
|
243
|
-
sourceMetaFile: getMetaFilePath(projectRoot),
|
|
245
|
+
projectRoot: '.',
|
|
246
|
+
docsDir: toRelativePath(projectRoot, docsDir),
|
|
247
|
+
sourceMetaFile: toRelativePath(projectRoot, getMetaFilePath(projectRoot)),
|
|
244
248
|
packageFingerprint: videoResourceMeta.packageFingerprint ?? null,
|
|
245
|
-
files: generatedDocs.map((doc) => doc.filePath),
|
|
249
|
+
files: generatedDocs.map((doc) => toRelativePath(projectRoot, doc.filePath)),
|
|
246
250
|
resources: resources.map((resource) => ({
|
|
247
251
|
packageName: resource.packageName,
|
|
248
252
|
exportName: resource.exportName,
|