Build composable Camino packages with explicit type and source dependencies
This commit is contained in:
@@ -3,7 +3,7 @@ import path from "node:path";
|
||||
import { loadQuixosLock, type GitSource } from "../resource-lock/index.js";
|
||||
|
||||
export type AuthoringResource = {
|
||||
kind: "workspace" | "interface" | "package";
|
||||
kind: "workspace" | "interface" | "package" | "build";
|
||||
directory: string;
|
||||
resourceId?: string;
|
||||
source?: GitSource;
|
||||
@@ -31,7 +31,7 @@ export async function authoringContext(start: string) {
|
||||
if (typeof entry.directory === "string" && path.isAbsolute(entry.directory))
|
||||
entry.directory = path.relative(workbench, entry.directory);
|
||||
if (
|
||||
!["interface", "package"].includes(entry.kind) ||
|
||||
!["interface", "package", "build"].includes(entry.kind) ||
|
||||
!entry.source ||
|
||||
!/^resources\/[A-Za-z0-9][A-Za-z0-9._-]*$/.test(entry.directory)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user