viteboard 0.1.3 → 0.1.4
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.
|
@@ -628,7 +628,7 @@ export function createContentApiPlugin() {
|
|
|
628
628
|
const overlap = manifest.projects.find((project) => project.id !== projectId && (isNestedPath(project.rootPath, absRoot) || isNestedPath(absRoot, project.rootPath)));
|
|
629
629
|
if (overlap) return send(res, 409, { error: overlapError(overlap, absRoot) });
|
|
630
630
|
if (!manifest.projects.some((project) => project.id === projectId)) {
|
|
631
|
-
manifest.projects.push({ id: projectId, label: String(label ?? path.basename(absRoot) || "Project"), rootPath: absRoot });
|
|
631
|
+
manifest.projects.push({ id: projectId, label: String(label ?? (path.basename(absRoot) || "Project")), rootPath: absRoot });
|
|
632
632
|
await saveManifest(manifest);
|
|
633
633
|
}
|
|
634
634
|
return send(res, 200, await toWorkspaceResponse(await getWorkspace()));
|
package/package.json
CHANGED